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: 10752817 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 CB6821399 for ; Tue, 8 Jan 2019 20:06:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCE6B2807B for ; Tue, 8 Jan 2019 20:06:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B104C28D5E; Tue, 8 Jan 2019 20:06:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6452C2807B for ; Tue, 8 Jan 2019 20:06:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732291AbfAHUF1 (ORCPT ); Tue, 8 Jan 2019 15:05:27 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:40959 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731251AbfAHUF0 (ORCPT ); Tue, 8 Jan 2019 15:05:26 -0500 Received: by mail-lf1-f68.google.com with SMTP id v5so3891556lfe.7; Tue, 08 Jan 2019 12:05:24 -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=tn5yJVuRCRLftmM1kKKoMFT1cNJMJnXmsDp9IJj0IzcWPYBIfaFlCePlvjZ4aygH8j niONiR6DN46rFr9Yoggvu15D80m9dJjfnVpKFSqLxcKGMYREUrQYgyRJyYag99gXiBw6 IaZHtuBNGoSJ0NcbVNr5nxl2agIzGhEPE3hxgg8yWmigoylClIskCsgTTm0L2W7VM4wZ IRx4y1DyP6l0zCJcEZi9TVHZl4vVD+O0n+uN4AIscJcaj8oGTkncJ4h/vmFVhrTnzOog 8eJ4McB3dZHAg+15HNCIzcauqIDQJM1o1Fs+d/dat7uu+yHEc3kEhOub4nXoxV8CP7Cm UoDw== X-Gm-Message-State: AJcUukd5DwM21iqetKqWRIbcVJnAT7Iucgm8pdq2LSlyw5Tbb0ebUhFK RlF8TEFsUoviwpFnd6JC5Uw= 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 Cc: krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Pawe=C5=82_Chmiel?= 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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: 10752815 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 82F7E13B4 for ; Tue, 8 Jan 2019 20:06:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 736482807B for ; Tue, 8 Jan 2019 20:06:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 669EC28D5E; Tue, 8 Jan 2019 20:06:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D3702807B for ; Tue, 8 Jan 2019 20:06:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729462AbfAHUFw (ORCPT ); Tue, 8 Jan 2019 15:05:52 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:42295 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732070AbfAHUF2 (ORCPT ); Tue, 8 Jan 2019 15:05:28 -0500 Received: by mail-lf1-f67.google.com with SMTP id l10so3870515lfh.9; 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=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=YRStbyOHCvwog6RvzclIPeC0qdODU3+6IOlE5reXb046UMlO3lb5xu3o8OjmQNy0X9 aB5neVvVgOdC3n2JQ1FUU4BHELy3Ijr8uuQ40u3294eQ/cXqr4ggGh22qtGo3NXszQQr dtWAR3EM4oVV7adobaj1WaNprYWxVmD7J2OfQEMp26w97PoX2GpCpA6LldUyXowJ6WAm KLhgw7tD67HmNpenGVsnNMbAoOavkwdjuU4zCf4E1dR8u1iPLZPzWkrT94emoGoxihHF zyhU7xw/NQ7HD3J5rKD/xXbfoZI7sM2uzpA1SLNWEpr/Wa2yV8cavmr0AHqnz6LlliLs a1MA== X-Gm-Message-State: AJcUukd+AROHG7cxAQYzhyHxTGxw8Vk4DONT7QN4eZHjpWM5fQPyBCPi UwcjurpaV6wv7s9IZTVIrzM= 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 Cc: krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Pawe=C5=82_Chmiel?= 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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: 10752805 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 790CA1399 for ; Tue, 8 Jan 2019 20:05:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 694D82807B for ; Tue, 8 Jan 2019 20:05:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5DCA128D5E; Tue, 8 Jan 2019 20:05:52 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0480B2807B for ; Tue, 8 Jan 2019 20:05:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732878AbfAHUFb (ORCPT ); Tue, 8 Jan 2019 15:05:31 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:42297 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732418AbfAHUF3 (ORCPT ); Tue, 8 Jan 2019 15:05:29 -0500 Received: by mail-lf1-f68.google.com with SMTP id l10so3870571lfh.9; Tue, 08 Jan 2019 12:05:27 -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=WsU3x7FCjVx8jLeZR2J4LrBF2Q1GQSAbyph+SCkR/S3olCcAZZFMDVMJeDb8NZnFFL NpHPbgRhTQTU54hgqR++vZ/n3oYpi4ShY8qDylRngPjPEZfHpBxden2rfJ2iXQUwqfSA aDV/oSPYnPXONEGyUelYSfosp9gn2XArWOjk7FFvZb9WbdoJU3YUaGfQ5y5oKmn7Xzqf o2t7+g/qHGJkVNgkRSFaUO7xcX6llZj4XBmPjbCjnSCu8vclwB4QsmrANvZk18/e3hKK N6YHG76gR+7fWTAHEK0nPWLcuMbqIAK62JgDLGGBkanEMxrcaUk9Rzp3hQnnL8dMtMmf Jq4A== X-Gm-Message-State: AJcUukcKUuK0yEDTXmn/6C/lfKMQ2Tpopie+8M5K34QGPOEwHgk7reAj WvhAjDFNzTAbVJ/q7PaZoFnlMQ1vxwl/3g== 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 Cc: krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Pawe=C5=82_Chmiel?= 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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: 10752803 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 7E3141399 for ; Tue, 8 Jan 2019 20:05:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 701B42807B for ; Tue, 8 Jan 2019 20:05:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 636CB28D44; Tue, 8 Jan 2019 20:05:50 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EDD428D44 for ; Tue, 8 Jan 2019 20:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732893AbfAHUFb (ORCPT ); Tue, 8 Jan 2019 15:05:31 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:43573 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732413AbfAHUFa (ORCPT ); Tue, 8 Jan 2019 15:05:30 -0500 Received: by mail-lj1-f193.google.com with SMTP id q2-v6so4483094lji.10; 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=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=W8jz+z1FU+pQmOZsPm1WhRXwNuAvK4By+5vh0O/Wtgp8GsvYTn6WAAGy6Lbf7uLgtP dC8erHffmXvm54fvjmhQU3gxWkjZQr/mKSuZ9F437KUa/mcVGezm8MTh8OEf4kUqbnZC 5iNemEbtblTmC713kImbrd9yKkDWGvSENsSgUvgnQ2I6l23QRI49NzixC31sA6EruUmW SfzZNayuxAGnM1wLcDZVGGcLWVEqUMbnEdRlmG8hdhY0BrVqy0HChfhm3Mz1dGC6PrgH q+UXsrEDqLwqRu01Zfgil5LScNI5SLPHn77CvVuoSt1reTrgNY5Fd1MzDsu1nqU+2EhO PJPw== X-Gm-Message-State: AJcUukfQHjmnqEXG/Rzfeo2kL8RLRByvAmCjTUMC2MxHCIo8sN3D9aPe I1P1pTo9xVAtGFQzJTfKyzE= 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 Cc: krzk@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, viresh.kumar@linaro.org, rjw@rjwysocki.net, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Pawe=C5=82_Chmiel?= 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 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.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