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: 10756843 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 229BC14E5 for ; Thu, 10 Jan 2019 20:53:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FA5829B26 for ; Thu, 10 Jan 2019 20:53:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0233D29B2C; Thu, 10 Jan 2019 20:53:32 +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 83BE529B26 for ; Thu, 10 Jan 2019 20:53:32 +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=UXZ3W47chcITKa 23VSAASb1gbKzw3oBW09OnhH1cQukTbfL9S0MEQzuPhtg7sFt49t67nW65qZXwQGlxGuNkLgLlU+h wysDQykJ5rNKuE0waFznBiiS8kWaz3haWJ7Bzzov6iKLhk/ZzZsl85Zi6F41PGbMDgoXKkxtIRBP8 NzkbLllZt6ko9JQ+RfTmBzSW8iavB/JXnJBHd+EOjtxzd1jRVdr1UdYvdI5J3rEFkE5VIn+toUzgG fxzeyDSfBr9bn34WxODH6vPUdMwOz49BBtoSDjkTqU0d3Alo+decguRLQvMJoDS0JIWTiTFKMyPR4 I8zbSrLB1OZQESLssIhw==; 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 1ghhKQ-0001w9-HR; Thu, 10 Jan 2019 20:53:26 +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 1ghhKF-0001lz-1M for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2019 20:53:16 +0000 Received: by mail-lf1-x142.google.com with SMTP id i26so9320671lfc.0 for ; 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=Bsw6yQYLJEIJZ+L6QX9LXiJERcr1bS/1xyAoDmqplUyg5wErn7wVTSYweYMpReb7ju 6eUS4on6GtQnFKFckHt9bUKxZK1JcMIIRsOWRwdhYXy6fOKqAfTl0J4VOmqreiiaRCjf CIWjiOaZSUVZdOHJz9ndiI4MZio/SMQcqsEbORGV9qPk0FhUhVBNtQWRXX5FXNimjL7k QTIgcvCvVHkNpim1SzT+vZI3cQj4aQp69/TSJMsLM9gVuUlloRg8mW+5asRiMND2DBNF Zg0gh76sDUAwj794VRF5h/CrvNZjND7LgOHhLZ1fWdqCzUUadJRhZjCnXCemkeI6uNWO vMkA== X-Gm-Message-State: AJcUukd+MSSsh3SKV85KLe7Zz12RHt0jaO9npjY8//oHooSLAkbWlk1A aK0dfyHQCUqK+KVlPwsF6OU= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190110_125315_074880_8ECFD18E X-CRM114-Status: GOOD ( 12.92 ) 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 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: 10756863 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 9DAAA14E5 for ; Thu, 10 Jan 2019 20:53:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BA942785D for ; Thu, 10 Jan 2019 20:53:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FC7C27EED; Thu, 10 Jan 2019 20:53:53 +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 2FB522785D for ; Thu, 10 Jan 2019 20:53:53 +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=QbUXoBbrEitkfVJ/96uv2wvfbpyi64odoGdm1KLKGgM=; b=J1ZkR7VPo7U2yn NT4BUtsnthGVUJyi0dDuzkZm1D+Rhtq0d8vv2AnXrHmFtQEwbdbZ1nqV7UgLdCFUYpuZ9WNXq6Mc0 //FTdd4r0+exnEqsECPt9wp2PPiF7QLunJM2Zq7euqhRqtaR6E5g5PXJWGs1RBvRrCcEXB4iJcsem cKbAbVtbGmweIKHIveDtBzsgbtwh9oyJU7XrcobAUBLuK1IQekfMzj/Z9w32BEovi+arGYF0Nn7oJ VuFBxwDCULrnP3CcAJsVHR0rvLNre8fGNFLL57IqdZesnU4U5JDPOquJkMCLCza/TpATHYCAe1bG9 cI+656YY0Nh7KelKXdbA==; 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 1ghhKo-0002LS-Re; Thu, 10 Jan 2019 20:53:50 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghhKG-0001mS-VC for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2019 20:53:18 +0000 Received: by mail-lj1-x244.google.com with SMTP id x85-v6so10989648ljb.2 for ; Thu, 10 Jan 2019 12:53:16 -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=nROznRN4yAetTjVSPRB/FaA+gf7JGPD99PZuUttvhiCmPfRWDhQr0IMDxJocD5wPSG UPvhm1NIiac4VUtmp44Izg1l4AX2lKsz3l9e49aztD5lKK9zILnZBCuMjfDoAhTrFWA7 hvgs0M20fX2NNgAsgQTsqIGZMWTqQ1qxekuDRp8aEP85Av/nK9I59msgtUzRN57NCiLr DGypISCE6E2PN3ZQ3FCLusC0K0CxWlOr1ULpgy3B7SEE1VAF1cVnvPJcH+D4oKNYV7Za XZfA+ZF/pK61t63fYVKCDRK3vbhFqqHAo2BNQtQxLNoSQUW4AuVTyawGR9vZiV7bs6Um 1Cgw== X-Gm-Message-State: AJcUukePt6GNmYcPXKr7S8NWwWUqhGSlVk4Os+FN2ixrKX+jOhBYoy3m TqBCl7TikgIXpQReWsQNSe8= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190110_125317_002536_7643A779 X-CRM114-Status: GOOD ( 14.01 ) 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 --- 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: 10756865 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 748BB91E for ; Thu, 10 Jan 2019 20:54:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62E132785D for ; Thu, 10 Jan 2019 20:54:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56C7127EED; Thu, 10 Jan 2019 20:54:10 +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 068B42785D for ; Thu, 10 Jan 2019 20:54:09 +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=yDwpZRNMo3f25v57MQFa0STy954w/ltDURgWn3ybj50=; b=iURo+ITYRua+pC 00k1A3hYyfDhgrs0gL6BCIFtFyQAiUr3jylFBZFix82YDys2xHXW915SfNCkGFDw4YDhMtu8d715s 4+77bQ2OAM6dDwCgSolva21FWQLO2NVt8iNPjpG2QtqxaSl1LnD8fpPlxsfaoj2qTBkOxdhElOuSf e4UP7+BdKDtKMyfyskaLCMA7s6FSfPOBzqewwYLfIQ+WVQxyut1ff3ipOJKExN7yAJ8uy3W2Cd1s8 v5nAa1/5u1O1wmFH4Mrlr4SWysiwzlR9KRwKfvf2Sg1whmV/vASZzDik+Bo8SA3x6G5ZY+bZhmkCM UO2BEvyYSAIYPrQ0doVw==; 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 1ghhL3-0002YJ-JF; Thu, 10 Jan 2019 20:54:05 +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 1ghhKI-0001nF-8x for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2019 20:53:21 +0000 Received: by mail-lf1-x142.google.com with SMTP id a16so9310932lfg.3 for ; 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=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=eXsscKEPFB41p7FTPFG73fUbK+FbV/PeR7d74P/0ox/92D/PqGrmnrLO8+xDESyfFE eL5GHKwPLS6vJMJK3MwQ55w+9oACVnVEI7OcpkZrk2XSqZZ250TW7iZub0XMFPsk5INz IKhDR432PNhaFEwTsaNpiV4NubAFE4a36suf/l569YaF05xChm1dMo+pka500YODTutp PA26oGxzTOiXVQCQegtZX1wx71SuwBuEpl69AVFqQ1YCQkDM+nkddVyMYuj4Wdv2S0yP DVb3mdkRAMEBu5nclBCPACMbsos5hTRSQGC3rAvfK/H/MV9R4LTJIbzH4N4jA/QW4mXA fOlg== X-Gm-Message-State: AJcUukennKvbADvg15JImdiBPuE2bxS5lfHEOSmW3d1Z7r8836QL5RkU cQJFm+0JBZD1URSY2j969Sw= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190110_125318_641293_13C70B2C X-CRM114-Status: GOOD ( 15.38 ) 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 --- 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: 10756867 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 59E0514E5 for ; Thu, 10 Jan 2019 20:54:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47E0729B26 for ; Thu, 10 Jan 2019 20:54:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 39AF829B2C; Thu, 10 Jan 2019 20:54:22 +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 A110929B26 for ; Thu, 10 Jan 2019 20:54:21 +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=EKABhMMO0xLvAl 46wvpGZlfv+vjCWbGMRY5y9Z2WEahPbfo/hUrE+M1Mu36LH9j+Che+U3Wgn9rm556AadGoU0COua/ lSIrizs+jMqyMNBXt9MkudcR4YgkX7Yf2LCTZ7nIKgkos0BnVYme+yIbjfZ1AfIQybxkFGf6/2wr1 Fjz8KbDAmJR+oEFAAC8aqTr2yOPdE8VeOmkieggiLB6rdNCpibvkPT7LwizCEiflS129ctzidnYCM r/eqHUs2BNCKfZC1k//QEi6LKgsyxcILBlu9NluPeGOypmlAnETm/ENpsWapD8+00fVOuuI2tjVlg 4lUsXxnBjpPg8ot0z+eQ==; 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 1ghhLG-0002kh-2C; Thu, 10 Jan 2019 20:54:18 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ghhKK-0001o0-5u for linux-arm-kernel@lists.infradead.org; Thu, 10 Jan 2019 20:53:23 +0000 Received: by mail-lf1-x144.google.com with SMTP id y14so9267131lfg.13 for ; Thu, 10 Jan 2019 12:53:19 -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=oTbMUQKID8NXvukgu7j/hc91BsXKGimbsgq8DCBpRzAki1W9s9I6SucJhtgsdV5pdk vdvScLuyl2OOsaOx2RH/vBUM5+GycFFYrAlqeagwlogIyHacMrNCPtrquLzrTezANXD7 Eju1MjnL2QU+USqvLAm/h0DgT5Wxq9/PLJtnXKchoFem9kQn5D14GXe9ONJM8PQYDFc9 Ie8wrpKSbuQCn2A138Exhb65roYY/LhSk1ZePbHTVLY6NforFt7tZUIx5xcDWafxK2Zq yX/I44eFXz2TV1aMHzXeWbOj73iEr0JjK3j/LIFR9sWbpJ6xAVWQg0xu4UBWW9XlS4z5 Rewg== X-Gm-Message-State: AJcUukfQHxKCwDafTHHwkN7u7sYaySvYcC/S6o+1KXszHdn+KXW2U7IS EMvnmblpDOWCWOGoe93zhac= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190110_125320_553588_A18A459C X-CRM114-Status: GOOD ( 11.31 ) 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