From patchwork Tue Jan 8 20:05:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10752799 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE0FA1399 for ; Tue, 8 Jan 2019 20:05:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A97A528D11 for ; Tue, 8 Jan 2019 20:05:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D9AF28D3B; Tue, 8 Jan 2019 20:05:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 53C2E28D11 for ; Tue, 8 Jan 2019 20:05:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HRShPn6KwnDqXlijSlckUikzPb1UsSOrex8NLqeIODw=; b=dWesV7/cjeVxOv 1NwHc2Tt/RUbBnYprDp73OLTVTLgVPKUPvBhgOpw1TGWaBj+xnNEu9YGahS+e6EcHsuXtuSRU++Cx lDeLM49Xk16G/gWQSzod6By1dSp5ZMjoaR17Rm5TyHUaxudUeOipFSuZ9MBU+/yFkr99C7DWqQOv+ wNcWWIG9nLYxZdoCWy+cSV7/Gl82WfV/fruvMu6XAgJYvrlfcgRiZKsogcJnN4rNalhdJKsT0P5mG ldHGI5cCHTZ5gEiuInu5HXxjBP4hCw20ujCTcDhcqwo+f4czQ/TWmn50aDQhRxr8Sv6cM/4qdKeWN zGCJr9DsKGmUek4lvfGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxd3-0000Yj-1u; Tue, 08 Jan 2019 20:05:37 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxcr-0000NC-5A for linux-arm-kernel@lists.infradead.org; Tue, 08 Jan 2019 20:05:26 +0000 Received: by mail-lf1-x143.google.com with SMTP id b20so3870810lfa.12 for ; Tue, 08 Jan 2019 12:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CKLSuDSiUbomGh4I8Fz1drCWaMjb7DVbiuB6C0KO3NA=; b=an2949SnqLLfU9Rs8eDpBYidaG72QIHQzb2Ogy6sXdZ+kOrIYpD8CNdBAwAd6sdQIJ 4t4Xnw8T56Y5w03EzA4iuaOYaLQ65QgHyIw3gKOmeifjc9XwchaEqtTbumVGgMyy/jr4 H3Vm8UPEV3QxdwS3LnsWHD8lmbOd2TMuFbXtFyha3N2aVXCKBtLJhPIgNSdZy69uret6 VMzD24DhRQUgua0SNZ6Esruu2ykCyI0OlupqV0jqC6I2Gp4rNeeZuqQDI44Uc1lqZ6CG Fl4xIWU+Y0ESq6R+TaQTZwUwuUJH2ZZTNO2hG6JQt+12KA/SUjX0zyhxC0vfWAT/OXV+ AKTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CKLSuDSiUbomGh4I8Fz1drCWaMjb7DVbiuB6C0KO3NA=; b=imiVM1CDQdC+WAH+UFxtHzW+209jhEmiLrNew1hPgh3BCfDaQiC25WOlHPrT8XZhNH tfnEw5b+EiDElUhORdvyYsc9jR134Ex+xKKvj116v3M9zfGsZkmEfeZR4fvyKeA5FN47 G54TIjYkNFs1jBZ8O3A6l+z2hVShmxd2UvSKs35lKP9aZy2v5AfRIQvGM0M2KcOriycz f/N09s0rSIretpMTzdmIzMJd7uCS5r1kizu+d8jki19YKsQxocwHRKYayjfsEwaYeLgg n2yL5tedBRL9PFbWRO+ZvzOtPeLhx6RnAbPV4sDgTXI/Qx5Z/qoLW0iNY3retAejsg4H sPKw== X-Gm-Message-State: AJcUukf+k3OP7FgXEUwGTjNTvpFNBGxcv/OsAFJBQUxpNmE/mNyFqjOo WBW0nWYe7VUQ9WP2eoXOYXk= X-Google-Smtp-Source: ALg8bN46YCS0ZU8VbXtL9n20S6AqiEI4hOlXxP6D+RREGvAHL54MhaFThRMF+As/6EnUqsBWpGg7AQ== X-Received: by 2002:a19:c70a:: with SMTP id x10mr1823599lff.88.1546977923517; Tue, 08 Jan 2019 12:05:23 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:d033:e708:8ec7:810d]) by smtp.googlemail.com with ESMTPSA id y23-v6sm14486768ljk.95.2019.01.08.12.05.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 12:05:22 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: kgene@kernel.org Subject: [PATCH 1/4] ARM: dts: s5pv210: Add dmc nodes Date: Tue, 8 Jan 2019 21:05:06 +0100 Message-Id: <20190108200509.30494-2-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> References: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190108_120525_194526_A7B4B8F1 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux@armlinux.org.uk, krzk@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit adds dmc nodes, which are needed by s5pv210 cpufreq driver to work. Signed-off-by: Paweł Chmiel --- arch/arm/boot/dts/s5pv210.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/s5pv210.dtsi b/arch/arm/boot/dts/s5pv210.dtsi index e9613418228d..2d55a3a6e79e 100644 --- a/arch/arm/boot/dts/s5pv210.dtsi +++ b/arch/arm/boot/dts/s5pv210.dtsi @@ -25,6 +25,8 @@ aliases { csis0 = &csis0; + dmc0 = &dmc0; + dmc1 = &dmc1; fimc0 = &fimc0; fimc1 = &fimc1; fimc2 = &fimc2; @@ -521,6 +523,16 @@ status = "disabled"; }; + dmc0: dmc@f0000000 { + compatible = "samsung,s5pv210-dmc"; + reg = <0xf0000000 0x1000>; + }; + + dmc1: dmc@f1400000 { + compatible = "samsung,s5pv210-dmc"; + reg = <0xf1400000 0x1000>; + }; + g2d: g2d@fa000000 { compatible = "samsung,s5pv210-g2d"; reg = <0xfa000000 0x1000>; From patchwork Tue Jan 8 20:05:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10752825 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0CA781399 for ; Tue, 8 Jan 2019 20:06:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE8142807B for ; Tue, 8 Jan 2019 20:06:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E25E828D5E; Tue, 8 Jan 2019 20:06:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 75F7C2807B for ; Tue, 8 Jan 2019 20:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DXEE+ypV2JXpVPGmJ5MLhFdWFXdWojG2TjWckEknHRc=; b=SxroQcB7+C7SYi 80CwTn5pc2JTz9s/j74j+0SdFvfTaVNyZbORogB3G5E2Khs+i0TnxXMAcEHeVfZhdherXwzl2cR1k uJJDOfmXDwOcIawasoaW6BbF4p61MmpzEPd4p/FrwWWEapQKDhgga84BhEcFbU1Uv0NT730+WJWZh h6xHye1yMV/iHMEnrJMyFwWUfa9zIuvwQt9swqskMaVwudQ/Tj8Qi37DKxCPSaRDD3nSGNpej+H7z 1svQt7trmgOgFwz3C9AcycQf3o2tzCQYVOEEWrmo42Hey2m68c/x53TIyfyIPXlPIJScQPAgiBevg pKMEyd3Q3GGk19w+nJZQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxdc-00019O-C3; Tue, 08 Jan 2019 20:06:12 +0000 Received: from mail-lf1-x143.google.com ([2a00:1450:4864:20::143]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxcs-0000Np-OZ for linux-arm-kernel@lists.infradead.org; Tue, 08 Jan 2019 20:05:30 +0000 Received: by mail-lf1-x143.google.com with SMTP id y14so3858697lfg.13 for ; Tue, 08 Jan 2019 12:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=guPCTwuWnn47rPONmcgssOljllOslnow0b18H5K7mjI=; b=LIXyMLEBheOJO3UAd9rTK0qeugFaM2RBAkfmNV0KTvKGlnkjD8AM+hWkuZ2ALCY0AV X/YOpK6l9DlwYTpfVIPLQ45RCkVeGW7xOYw5AKBUudMZ7uwcqmdhIsflNSqiOfrQ3muS 9g1PbWTm7BPsElNOaTEO3j+vGh1WubrQCuuxoiFDY833BRGvkWxQjZv3NWkV2rnJ5qua hZP6SA/82NckRg2twRkmDdj47lOUrTzGEvn4zhcLaNX6ci2iEbdNONNPhz529vtmiUeR wqergCCjpmbR0PQz8Xq4OzD/YGMT2npObu/ulteYwyCJUd0DsXbOvPjAiE/vm8iJFci/ pPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=guPCTwuWnn47rPONmcgssOljllOslnow0b18H5K7mjI=; b=VJADRDnuaMpcWMI2Q2/VeVba0NL+PPgxeTaX2pvHwtjnpNln3oZWn6XDOzV4SB6FBO d4a4nVRw3bdyEYz/6wmuVYzo4cTT0UMhcQGwlmIvt8wsm8Im/LKJQOV9iQyJMbN4NfMy 9Vx8gXI3HnUkKtvGW1ven182VfcHUlLF4ybtTwceS8jrcMmWy7GFQA4z5gpQJhUvOIj1 SuFWsteuPCQReGoe8rB8G5e7T4Jl9eYQE8lwOAzlkiwDhN5eh/GJ9GIwDYkbfHHs1rJC bi29ku0Arz4ENFzCAP/ZxhhjPVsHZGWCsBu+7kEkuqA8VVHUqXnfHnnD7OIHwHG/MGwV GxyA== X-Gm-Message-State: AJcUukcPAzZuLaoHkQJ8qJxxx2TxTmabgLSKSt3OD4wjvNWYdb7rEl1N OeTZjYXA+gfqFzykE04hidI= X-Google-Smtp-Source: ALg8bN5Tg3hlmHVJyiBjR7tOBcXM6cK0vSXgZxUTEU4dG4QVgn9I3JC31Hr6TBOtFWvOVpy3xQxK0w== X-Received: by 2002:a19:e01e:: with SMTP id x30mr1778838lfg.89.1546977925100; Tue, 08 Jan 2019 12:05:25 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:d033:e708:8ec7:810d]) by smtp.googlemail.com with ESMTPSA id y23-v6sm14486768ljk.95.2019.01.08.12.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 12:05:24 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: kgene@kernel.org Subject: [PATCH 2/4] cpufreq: s5pv210: Don't flood kernel log after cpufreq change Date: Tue, 8 Jan 2019 21:05:07 +0100 Message-Id: <20190108200509.30494-3-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> References: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190108_120527_013549_5AA8C305 X-CRM114-Status: GOOD ( 13.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux@armlinux.org.uk, krzk@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit replaces printk with pr_debug, so we don't flood kernel log. Signed-off-by: Paweł Chmiel Acked-by: Krzysztof Kozlowski --- drivers/cpufreq/s5pv210-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index dbecd7667db2..f51697f1e0b3 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -481,7 +481,7 @@ static int s5pv210_target(struct cpufreq_policy *policy, unsigned int index) arm_volt, arm_volt_max); } - printk(KERN_DEBUG "Perf changed[L%d]\n", index); + pr_debug("Perf changed[L%d]\n", index); exit: mutex_unlock(&set_freq_lock); From patchwork Tue Jan 8 20:05:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10752827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 23D6C1399 for ; Tue, 8 Jan 2019 20:06:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13CDC2807B for ; Tue, 8 Jan 2019 20:06:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0834A28D54; Tue, 8 Jan 2019 20:06:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F401A28D44 for ; Tue, 8 Jan 2019 20:06:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=lSP96ZhHhxyXasJDtJRizS0fvPJhjCmodn1BbqPo2qE=; b=QPD0ePi05zUB42 oLCCK0XYWSR/5ma564zhD5+sEb+kHmlbmXoh8V3ARs72qDt0Blx4gRy1aN504KOeiue+mcn8Vjfot fX1YaRzpZ6EwIiEWWDKH9yN1b3wY9a3uT1ObApp48RbCDJpj7PGkG9JufJo7ZlgB4hVhPt/UgZ5NP Sj8jzHvDZGBuXo7TFCSlocHmUNInOQjy0Nm8veZYoDGi6qr0QQvTL7MLlYU2XrAEMAleaEJQs02Q4 ws0tMxA+66hZFM7QHZlDORbYV2jVXyui4PhKK4ObVyCuZOnqBjlNTQK27g2GJmr2lKI/lSvOMW9qT 765BxtCbPjOqNMCZZhng==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxdr-0001Oo-BY; Tue, 08 Jan 2019 20:06:27 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxcu-0000Ov-Om for linux-arm-kernel@lists.infradead.org; Tue, 08 Jan 2019 20:05:33 +0000 Received: by mail-lf1-x142.google.com with SMTP id i26so3913851lfc.0 for ; Tue, 08 Jan 2019 12:05:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nLRztxJAeC5B0+rbtnhFFtucRRJLwQz+ndZxADHnDTU=; b=UKAEwXL9hYyXEhhP0NaziiUWYqtM6BZnjtuY+YV4w3EzYgVDCGF3EV88PHcZqc+mdj kC1+FienrQZD3XyfAczMzbeAcbTJxyBsWlvBk4Vbve7llKXm/9t+zIy4BQi1m622tmCm 25pwUNv1EFNO00GYU9IPFFQrPrcnBrZal6T0s2Rg/iUuKCX29JhDRvBrqLzBfDrKXVoo h81FLSoQEcCFH13fIo5ttsZ/7y8cob+nd8JLbaOQ8XGsiLmK04Y0Jd1HRIhlgtY9S2wl C26jgTV29SW98g1h2mBR9enBj0IY/cgyQgj7cU1frTbBatiPf9hZtfnXezqThHppiczR 0yYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nLRztxJAeC5B0+rbtnhFFtucRRJLwQz+ndZxADHnDTU=; b=GUA7VbCReb03NOIZvPd0XIJ1nzQYHzJH8hhNOZTxGf75k2IE1b9LVm7GeijwkaBgxJ s0fWloclGMbZ719IG4MfUU8rZPjDpa7Kc322ZAk8j4+lHcpZtPTa7HBEQKMJbIKAajhG N2KZeSHewgPKNx2o9VzQLj/kQw8m2UeHya4TaIxHQjkb8CZv6Bj6iRwntIYTdm2AytSI CNlh+S5XD7WnfeFEp6X6dzPQc1A51gC3heEtnaeS22UGF7Fy/kHW+A7oqlJJ9t0bW4Dt Y4jTzbM9ZfteiVqUePyCqLzp5qm9BXBTcOkFE25o+9RH1j9VIvFYP6BpYebxukXsM13b CyWg== X-Gm-Message-State: AJcUukc247OAeg9V+ObHp1+/0AeWp4nC/f84sDLojMq/HKUH/+A9ATxz F/02H3BgIFROhC/2XNhu9bU= X-Google-Smtp-Source: ALg8bN4IdbHawsPUgv2UefkEeNdV4W9bb30hNxa2Lb9Non7jT4OuwfzlsfKBZFvMSSdHmRw4GLI39g== X-Received: by 2002:a19:4ed9:: with SMTP id u86mr1752659lfk.78.1546977926750; Tue, 08 Jan 2019 12:05:26 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:d033:e708:8ec7:810d]) by smtp.googlemail.com with ESMTPSA id y23-v6sm14486768ljk.95.2019.01.08.12.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 12:05:26 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: kgene@kernel.org Subject: [PATCH 3/4] cpufreq: s5pv210: Defer probe if getting regulators fail Date: Tue, 8 Jan 2019 21:05:08 +0100 Message-Id: <20190108200509.30494-4-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> References: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190108_120529_065160_A2B062E6 X-CRM114-Status: GOOD ( 14.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux@armlinux.org.uk, krzk@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There is possibility, that when probing driver, regulators are not yet initialized. In this case we should return EPROBE_DEFER and wait till they're initialized, since they're required currently for cpufreq driver to work. Also move regulator initialization code at beginning of probe, so we can defer as fast as posibble. Signed-off-by: Paweł Chmiel --- drivers/cpufreq/s5pv210-cpufreq.c | 33 +++++++++++++++++++------------ 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index f51697f1e0b3..2d0e4dc7ede7 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -594,6 +594,26 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) * this whole driver as soon as S5PV210 gets migrated to use * cpufreq-dt driver. */ + arm_regulator = regulator_get(NULL, "vddarm"); + if (PTR_ERR(arm_regulator) == -EPROBE_DEFER) { + pr_dbg("vddarm regulator not ready, defer\n"); + return -EPROBE_DEFER; + } else if (IS_ERR(arm_regulator)) { + pr_err("failed to get regulator vddarm\n"); + return PTR_ERR(arm_regulator); + } + + int_regulator = regulator_get(NULL, "vddint"); + if (PTR_ERR(int_regulator == -EPROBE_DEFER) { + regulator_put(arm_regulator); + pr_dbg("vddint regulator not ready, defer\n"); + return -EPROBE_DEFER; + } else if (IS_ERR(int_regulator)) { + regulator_put(arm_regulator); + pr_err("failed to get regulator vddint\n"); + return PTR_ERR(int_regulator); + } + np = of_find_compatible_node(NULL, NULL, "samsung,s5pv210-clock"); if (!np) { pr_err("%s: failed to find clock controller DT node\n", @@ -633,19 +653,6 @@ static int s5pv210_cpufreq_probe(struct platform_device *pdev) } } - arm_regulator = regulator_get(NULL, "vddarm"); - if (IS_ERR(arm_regulator)) { - pr_err("failed to get regulator vddarm\n"); - return PTR_ERR(arm_regulator); - } - - int_regulator = regulator_get(NULL, "vddint"); - if (IS_ERR(int_regulator)) { - pr_err("failed to get regulator vddint\n"); - regulator_put(arm_regulator); - return PTR_ERR(int_regulator); - } - register_reboot_notifier(&s5pv210_cpufreq_reboot_notifier); return cpufreq_register_driver(&s5pv210_driver); From patchwork Tue Jan 8 20:05:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10752811 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2B4541399 for ; Tue, 8 Jan 2019 20:05:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B5AA2807B for ; Tue, 8 Jan 2019 20:05:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0F76A28D54; Tue, 8 Jan 2019 20:05:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BF0882807B for ; Tue, 8 Jan 2019 20:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XsxPJz+9aBI+QD+CsLDG6kGjCAZ3j/zNQB4cctlwR+s=; b=qTMpuDA+VzWKuI l44Aw1pnlQRR8fZ6AeXI9wrakDogYr0ijuolZ7IWlZugW1I/OJyJrz71BxASNKFE85Q89JaSFe1Y2 lMUjWzMCATIl+fbsXM5fdbuzfOv4p2IEThV9xmmzEtRAyHmrA5LZ29MeiTKGdiAni1bmzqOSm+Swp 4LMSf5OjhXPo0zNRXAzXp+4QjzMf0BxvneXpYgjyzPAQ3A2mictwRheIpEBSVtcMKPd9hDLMEW9Ug Qpz7pR63enWLLRE5jXXogphew9t3y6bk/96eLYuRjiG6ScOZ3mRFfgMuQxQ4hTzuRlw5xPIr8G3+w g6geP0tn6nAGre4cxwqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxdL-0000vD-SN; Tue, 08 Jan 2019 20:05:55 +0000 Received: from mail-lj1-x243.google.com ([2a00:1450:4864:20::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggxcw-0000QK-1J for linux-arm-kernel@lists.infradead.org; Tue, 08 Jan 2019 20:05:33 +0000 Received: by mail-lj1-x243.google.com with SMTP id q2-v6so4483093lji.10 for ; Tue, 08 Jan 2019 12:05:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KjuAmgjHlhPWg7vZv/M0TlOMAshH0WF7o8w6mNSkFXw=; b=u1R4WoItDbfO6hhHhsjLfP7o7pC7bq+5OE70Y3mc1vKCha4OdZYEpjXJbUWrFatenH UjWL1dq+TwAHuGoV/VfZsUS0FxaaxBF9Jd7FBdNhzHdaCW2eq5mMLIX4l6gg6Rl+Sh8n r3ddpAJ6TfFOgFx4b1LCe7n865Kcq+OwAkT9th8YQvGABZE5xkaele7YBs1TT7tLA4SI tRJFICpi6FTtvxju9xECpA9+ozkfkwf9Sa7sU/RV+ylrCeq7PeQwR5sx8g/bkvToaO9P 8dbGPJNYtBuPgLm3bPxbvktiN9cmmod3WfQGBgmlhTUWDhOsUuLJaInMy4Q10c7shjAX J4Hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KjuAmgjHlhPWg7vZv/M0TlOMAshH0WF7o8w6mNSkFXw=; b=idV6c+QwoTUtyMWWhjBMlVBnIVTTLVnRZdXYFgNgkFl1bddYSMIe2FvpDq5H4U1cwb LN4tYujhGASVmd7KBk9fTG87OWEKlqsoNaF/PujqLcDWSk6YX0rcR/EbPgCk4UV+SgIF 9bI9eiiCho1XLxVrf7o9Lx/odxn59g/khuwVOeS5A39pWDnl++BmOZWoRMkCDIxuC4WN dpjGq/Dvm6jbZbfcfsk+RrVhi5GdZpxQqLR8k/pra3Qx+2DC6fZsi47s0AZvJByVFEmq pNz0GMnRACD2Rgk/LhzXlT656kqxeoU0/s34ed4AhU7DkynOgjFClgTtV1VjD5T9OxT9 vQsQ== X-Gm-Message-State: AJcUukdy0gEwA+R7QCRLkTLQeTuYU35wVJEVMHOjEo+NvINVKKlOWc2N dFBEGD+q4KfFRlq0bjmSczE= X-Google-Smtp-Source: ALg8bN5pT46pkrxZpK7o+mLATemc0Niur+ce7kuw8r+G1YGgUn7ukO1fkhqYJIVugFOyvbwxKsnDoQ== X-Received: by 2002:a2e:4218:: with SMTP id p24-v6mr1826784lja.58.1546977927995; Tue, 08 Jan 2019 12:05:27 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:d033:e708:8ec7:810d]) by smtp.googlemail.com with ESMTPSA id y23-v6sm14486768ljk.95.2019.01.08.12.05.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 12:05:27 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: kgene@kernel.org Subject: [PATCH 4/4] ARM: defconfig: s5pv210: Add cpufreq support Date: Tue, 8 Jan 2019 21:05:09 +0100 Message-Id: <20190108200509.30494-5-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> References: <20190108200509.30494-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190108_120530_517128_6928386D X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux@armlinux.org.uk, krzk@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, =?utf-8?q?Pawe=C5=82_Chmiel?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This commit enables cpufreq support for all s5pv210 devices. Signed-off-by: Paweł Chmiel --- arch/arm/configs/s5pv210_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/configs/s5pv210_defconfig b/arch/arm/configs/s5pv210_defconfig index 951196bdf008..fd4f28aabda6 100644 --- a/arch/arm/configs/s5pv210_defconfig +++ b/arch/arm/configs/s5pv210_defconfig @@ -11,6 +11,12 @@ CONFIG_ARCH_S5PV210=y CONFIG_VMSPLIT_2G=y CONFIG_ARM_APPENDED_DTB=y CONFIG_CMDLINE="root=/dev/ram0 rw ramdisk=8192 initrd=0x20800000,8M console=ttySAC1,115200 init=/linuxrc" +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=m +CONFIG_CPU_FREQ_GOV_USERSPACE=m +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=m CONFIG_VFP=y CONFIG_NEON=y CONFIG_MODULES=y