From patchwork Thu Jan 10 20:52:12 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: 10756857 X-Patchwork-Delegate: viresh.linux@gmail.com 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 9CCBF91E for ; Thu, 10 Jan 2019 20:53:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C66429B26 for ; Thu, 10 Jan 2019 20:53:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8052129B2C; Thu, 10 Jan 2019 20:53:43 +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 2A69029B26 for ; Thu, 10 Jan 2019 20:53:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730646AbfAJUxR (ORCPT ); Thu, 10 Jan 2019 15:53:17 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37050 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730574AbfAJUxR (ORCPT ); Thu, 10 Jan 2019 15:53:17 -0500 Received: by mail-lf1-f66.google.com with SMTP id y11so9308103lfj.4; Thu, 10 Jan 2019 12:53:14 -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=qEylvC1tIWWrajc6u8JkeM6spEmKlLzZhCxFWzYOs5PkStF7o5brriirrKqXYMPUMY RkKy/7hYSADhegHFVrKBOa/m97rTucc2ldHDy439dQUEoPfLhoVrfmB8dZYHK2bRmVFj Vz0xPpOdrKoXQwmhtZ79+R8U0qaV5GZMxSkAv8rt4NU0fYq9/GQ2ZjjUZ6eTbR2T9P9h XxCo91nbt05U9F7bHC6lPuc/XlJ5kmaza1JzkXph30K5UeBpbgatGdM4c5FwTZVYJMjP 0ApEx5WvDWu7fxFGl8KexsRMWUGEFTNLxNN/bc2Lpx0BPlVFkAg5C03OWcIIK5K5Nkti /nxg== 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=RBmXRhIkXfkK+4YFdNjLQtANK+jvXwI+iUnzMTdBh/6HR2FwziYv8x2N/sYwML3Yx9 492QWdcbFN3wm9ODYPvOK++QOxr0pp16LJVPYVVHoMquKb4F3+MAZEJEC03/usER6rts fuV1cq2xZ36/7rtvXSzgQlKMB0HNLvfUTRIaNJs3ph6S5bzI77hR6m9JC8YdbKvW7GKY HgA1EVSqToqNBZp9IfQ6pxs5AkCQiZKgnZhl+wy2x3yNQJ2d8c4qcPvG0YsEmK0HKj7P YUQgO5A3OagMgdsI568BqSzGvGu8nIvBrJr3AvBiPJjluOY6Y/3OJl1VH1IrqU51464T nq2g== X-Gm-Message-State: AJcUukcy/CtpnzuRFr5BH/6XaAC7rLcLypNAD/vFTyHACswbxFgh6izn xtHC11SxBGhU1nR9vZM2ZGI= X-Google-Smtp-Source: ALg8bN6ZHHz3k1uF66q/M+s39R9kCKkICx9Zi3c+pYrJ6cC8iJmhLtwjwql25urZvdAOxm4reiHdTg== X-Received: by 2002:a19:10a4:: with SMTP id 36mr6698911lfq.60.1547153593330; Thu, 10 Jan 2019 12:53:13 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:5dc1:592c:c674:2869]) by smtp.googlemail.com with ESMTPSA id z7-v6sm15389690lji.42.2019.01.10.12.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 12:53:12 -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 v2 1/4] ARM: dts: s5pv210: Add dmc nodes Date: Thu, 10 Jan 2019 21:52:12 +0100 Message-Id: <20190110205215.22030-2-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110205215.22030-1-pawel.mikolaj.chmiel@gmail.com> References: <20190110205215.22030-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 Thu Jan 10 20:52:13 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: 10756847 X-Patchwork-Delegate: viresh.linux@gmail.com 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 5581017E1 for ; Thu, 10 Jan 2019 20:53:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4599629B26 for ; Thu, 10 Jan 2019 20:53:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3975C29B37; Thu, 10 Jan 2019 20:53:39 +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 EE77729B2A for ; Thu, 10 Jan 2019 20:53:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730714AbfAJUxV (ORCPT ); Thu, 10 Jan 2019 15:53:21 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43160 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730607AbfAJUxR (ORCPT ); Thu, 10 Jan 2019 15:53:17 -0500 Received: by mail-lj1-f194.google.com with SMTP id q2-v6so10946307lji.10; Thu, 10 Jan 2019 12:53:15 -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=+SD/OC2mkph624S4bKD3nSN6vMhl6eg9eqmNC9NaBYg=; b=somvAXwFWVUInL8qU/Be8IdSbgDkR4UaG91kcTe3n8czAmA1mzk7gJ66uxFpI8hWx9 IUOy9kXQtxiTGMzW4PAfI3Kpcvt5ANS99Gk6ImDv6q40PuVPxio/CBOsXUyxGG5xzdEy 3qQv7zz38P83fi0E9RwOijcf7y2i6Rl0Fr8DJBSynNZ46gsWkSklwJA5736cB0Av8xoE +7gJoweqGrdbFWA/Yr2KVkfLxda8UUu+ROgf7FCrQIlD+0gVKta/xXMu5JGRl+xJtG0Z 5qgFAKtnsuplwxD7Dpa/17EKWwaVCW6duIaY1XoVQ/h/uXMPDjMXz/9kyPJdLK09G1cW 6q8w== 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=+SD/OC2mkph624S4bKD3nSN6vMhl6eg9eqmNC9NaBYg=; b=O5ahyR9rCvHIC6D0VoY4o1YM8836kqBk0LhlU6LroUhK59PrehkaEoXuiqRdjXzDku vadeR6dpQO5MYkhhY4AEHA5kmTMIdrmDfoMQGv9/2jdog6IWJm7oz9ZozeFPh27vrj9M EVPmmX9bbtdSmpZ7/TX+mNtYeN1MBgkF6v654ABhpbcfEpDN5HFNjLPbc0mNd6fomvxa R3Bhvj8HOCb6I3lv2rtiqh0UkR0wclY9yXxocQ6LvaG2IecZMNhSOAFS7YBSeQNgO5EM LgwB7fkMEtRiprHdjo9pMMMFW8j5kQ13fc4CZGzqej0xS7wu0ifgNuyP1Kr++hZB4c5p 86dg== X-Gm-Message-State: AJcUukctg2FMEb8lBD1FwHb4xrAVXuPqsGdPLtwKs0j14ow2aRYVSGO9 dup3QhFisNG8o6opMV+8m34= X-Google-Smtp-Source: ALg8bN5OhNydl/YWlWYGi+wVoxty4MjReSUNdvKbqB3yWLq4KH0DXd1xC7lsMDC1i783piOK1c0mig== X-Received: by 2002:a2e:9783:: with SMTP id y3-v6mr6788109lji.167.1547153594941; Thu, 10 Jan 2019 12:53:14 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:5dc1:592c:c674:2869]) by smtp.googlemail.com with ESMTPSA id z7-v6sm15389690lji.42.2019.01.10.12.53.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 12:53:14 -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 v2 2/4] cpufreq: s5pv210: Don't flood kernel log after cpufreq change Date: Thu, 10 Jan 2019 21:52:13 +0100 Message-Id: <20190110205215.22030-3-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110205215.22030-1-pawel.mikolaj.chmiel@gmail.com> References: <20190110205215.22030-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 --- Changes from v1: - Added Acked-by --- 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 Thu Jan 10 20:52:14 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: 10756855 X-Patchwork-Delegate: viresh.linux@gmail.com 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 4E3DD17E1 for ; Thu, 10 Jan 2019 20:53:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E0B429B26 for ; Thu, 10 Jan 2019 20:53:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 326E929B2C; Thu, 10 Jan 2019 20:53:41 +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 D847E29B26 for ; Thu, 10 Jan 2019 20:53:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729459AbfAJUxV (ORCPT ); Thu, 10 Jan 2019 15:53:21 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45413 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730669AbfAJUxT (ORCPT ); Thu, 10 Jan 2019 15:53:19 -0500 Received: by mail-lf1-f65.google.com with SMTP id b20so9258368lfa.12; Thu, 10 Jan 2019 12:53:17 -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=pV8kbDyRB/8qZ90lJTc0lEk+FaV2Ra/kqeVF/E8Hnfk=; b=Htf7k0ExehzCaF3zhHh1dRJbDHstaIkx5+nKHbbc/ILqAjuqaUwe3koIB3cNj44gz2 ZwF0a1qw6466nImj6AWCNYVaJdU0eXFGt6hVW2tW/n6Db5HoOaqLFVTWnulK4rMHo6Q8 saKPC9Pv/qlO+joFcR3ASl0LCqDVgoAWDWRhxz8JScyXXxDt5zQbW4LkHBbKBTfSRfam S2rH4mnhsuT5xDuyvYWeSvpj2VL23FZunTRa6t18CsuqH2gu/7q/Igb53u9n5Cqmrj0Y EP5sYVhOQ2c1w4Gwji6GfVl/y+MJwSuyCwubB7fzG44E5g3khbFVV9PhOr6Ab/gnxmvU aybw== 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=pV8kbDyRB/8qZ90lJTc0lEk+FaV2Ra/kqeVF/E8Hnfk=; b=l+AWFj54GPo6xRdkIzUU3k+r+vouYTCGtjUZiCbUFPoOxt3Wy1eIGvpJp2x1l/AXck 8vyn3upj6Uz5gWeIo0uQMGITSvWL4PGiu8YOZ4SC3BVziOPUgZBxlEVtqMsp8UGBjTtK ENMXiD66LoPjsAGf9aEtE8bPNS8eWgmVcjdm5ztODlDh70ABoAF3HuLVLWOz+Rth4MB+ TewHNNuvDrUG/Ehq0VKerPw+hZUrp7fgzkfN4rxSeVWKDxYXhcMhjLSl6nyGAQRwDdLg jephbvQyl1AydAtcKmO0IECua10SW7xfVRrpnw2cC0ANQkMTlugNcY/ADkAOdptUzfms 4P7Q== X-Gm-Message-State: AJcUukfUxjUQkYJ9Jl0orXe52h6inVrGbhbQ+qVTsCswxRLeKAxFSOEr DLQotzdWTZc4tCsRHgENOW0= X-Google-Smtp-Source: ALg8bN5+qL67TTptupCRMWOWMH6hxida6ZissbV6ggdz+24+VlshN7ushnka9oUaZ9ltQc93hn1ACg== X-Received: by 2002:a19:d5:: with SMTP id 204mr6311233lfa.116.1547153596596; Thu, 10 Jan 2019 12:53:16 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:5dc1:592c:c674:2869]) by smtp.googlemail.com with ESMTPSA id z7-v6sm15389690lji.42.2019.01.10.12.53.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 12:53:16 -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 v2 3/4] cpufreq: s5pv210: Defer probe if getting regulators fail Date: Thu, 10 Jan 2019 21:52:14 +0100 Message-Id: <20190110205215.22030-4-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110205215.22030-1-pawel.mikolaj.chmiel@gmail.com> References: <20190110205215.22030-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 --- Changes from v1: - Fix compilation error - Reorganize code so it's smaller --- drivers/cpufreq/s5pv210-cpufreq.c | 32 ++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/drivers/cpufreq/s5pv210-cpufreq.c b/drivers/cpufreq/s5pv210-cpufreq.c index f51697f1e0b3..6df95941ba96 100644 --- a/drivers/cpufreq/s5pv210-cpufreq.c +++ b/drivers/cpufreq/s5pv210-cpufreq.c @@ -594,6 +594,25 @@ 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 (IS_ERR(arm_regulator)) { + if (PTR_ERR(arm_regulator) == -EPROBE_DEFER) + pr_debug("vddarm regulator not ready, defer\n"); + else + pr_err("failed to get regulator vddarm\n"); + return PTR_ERR(arm_regulator); + } + + int_regulator = regulator_get(NULL, "vddint"); + if (IS_ERR(int_regulator)) { + if (PTR_ERR(int_regulator) == -EPROBE_DEFER) + pr_debug("vddint regulator not ready, defer\n"); + else + pr_err("failed to get regulator vddint\n"); + regulator_put(arm_regulator); + 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 +652,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 Thu Jan 10 20:52:15 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: 10756851 X-Patchwork-Delegate: viresh.linux@gmail.com 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 0089D14E5 for ; Thu, 10 Jan 2019 20:53:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E487929B26 for ; Thu, 10 Jan 2019 20:53:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8B1429B2C; Thu, 10 Jan 2019 20:53:39 +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 9AB2C29B26 for ; Thu, 10 Jan 2019 20:53:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730702AbfAJUxV (ORCPT ); Thu, 10 Jan 2019 15:53:21 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40469 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730574AbfAJUxU (ORCPT ); Thu, 10 Jan 2019 15:53:20 -0500 Received: by mail-lf1-f67.google.com with SMTP id v5so9302703lfe.7; Thu, 10 Jan 2019 12:53:18 -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=CjrkIM7BBTZSRBJobpknJiZPTJU+pWStblRgDCGvIVSFYmeF8Dnz0JCLPNXYGFBJ2c 5o+YvOuESHL8dY4RS8c0o1kAfJBaNzYdocDRTiLa/ADvs14oRcmd0AGMp2qJpf0bW0ZE trmGj2gXokwcGmxiik/0Y20U1LZIkXI0EvzltO+MVeXJSPKRaeptRxqJ21ZlpWH99ZUv f+hRpNmVObSMIbaQHg7ehKLsqrndLkWJSTIPk9n3oNLEx41eZj3qBohamSs6bb5Pi4mL ulTRXpuIQ/fJBwFMyutuCklpBALlN3FbTiUwRPH92EX0T6WTNAWuYzLtrJoTL/EPYC5M xP7w== 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=RoZd1W1Q94T8AckG9rhR7HNtINi199VbRKRT/h0jjH5TV6sxmPiaeWUapJwkb/mafP ds009RiX2Halj3Hi9EtWAq0tA3CXejFr7L1qwLtNRE/6KVAILe1PIqm7Ri2IRU/AqOeS Nd4HTh2KHRMT8pJimlviqn0fLC6L2FMWtxR9Lfn5KI/6qaAKmlIthbQt2TmSdje9Vz3F R22SodNVW0ZhSpT87rP67VqjsGmuUMP89WE0n4i4oFdvVCTx06D+wEmHw0pKHBYf88cc e0sNYtDmfq3eq0d6Rko4PwTf1zToOaJmOXdYB5a4P+N86j+p1uPFFww4tm8LNpFiKsvw 18IA== X-Gm-Message-State: AJcUukdvKJ1O70YHG8IRwVXO2rjh93yqN0g2kT/5ICAohCCSadtvdVZf bSGJDt42C9o8/4pTqA28fTw= X-Google-Smtp-Source: ALg8bN7adZ008RPmP0J1BWFEJu9/vRj31EhA6mkS1SlBCjLbIJYaMRKGnl7f69G+9tJtXMhStxu3Mw== X-Received: by 2002:a19:a9d2:: with SMTP id s201mr6402487lfe.154.1547153598199; Thu, 10 Jan 2019 12:53:18 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:5dc1:592c:c674:2869]) by smtp.googlemail.com with ESMTPSA id z7-v6sm15389690lji.42.2019.01.10.12.53.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Jan 2019 12:53:17 -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 v2 4/4] ARM: defconfig: s5pv210: Add cpufreq support Date: Thu, 10 Jan 2019 21:52:15 +0100 Message-Id: <20190110205215.22030-5-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190110205215.22030-1-pawel.mikolaj.chmiel@gmail.com> References: <20190110205215.22030-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