From patchwork Fri Jan 27 10:47:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92600 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp142542obz; Fri, 27 Jan 2017 02:50:19 -0800 (PST) X-Received: by 10.84.148.134 with SMTP id k6mr11624813pla.142.1485514219425; Fri, 27 Jan 2017 02:50:19 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si4119696pll.24.2017.01.27.02.50.19; Fri, 27 Jan 2017 02:50:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932747AbdA0Kt4 (ORCPT + 4 others); Fri, 27 Jan 2017 05:49:56 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:10635 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932665AbdA0KsG (ORCPT ); Fri, 27 Jan 2017 05:48:06 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKF00K0IQ03T380@mailout3.w1.samsung.com>; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eusmges1.samsung.com (unknown [203.254.199.239]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170127104802eucas1p231bb68c2dc31c3564aadd72cf6c96f14~dmy-qLB0d0413704137eucas1p22; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1.samsung.com (EUCPMTA) with SMTP id 7B.0F.16908.4652B885; Fri, 27 Jan 2017 10:48:04 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170127104801eucas1p19a61c607387308a59bdf53fac3efba44~dmy_6SW5T1150811508eucas1p1j; Fri, 27 Jan 2017 10:48:01 +0000 (GMT) X-AuditID: cbfec7ef-f79d26d00000420c-93-588b2564536b Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 10.E0.06687.2A52B885; Fri, 27 Jan 2017 10:49:06 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKF003YLPZX2Z80@eusync4.samsung.com>; Fri, 27 Jan 2017 10:48:01 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Javier Martinez Canillas , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Inki Dae Subject: [PATCH 1/4] soc: samsung: pm_domains: Use full names in subdomains registration log Date: Fri, 27 Jan 2017 11:47:49 +0100 Message-id: <1485514072-29502-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djPc7opqt0RBjd2qlhsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYInisklJzcksSy3St0vgytjRvoi9YANnxfS789gbGF+zdzFyckgImEjMbvzICGGL SVy4t56ti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dZILbJSZw8NhlsKKeAp8S5DTNYIZZ5SKxd94B1 AiPvAkaGVYwiqaXFuem5xYZ6xYm5xaV56XrJ+bmbGIFhve3Yz807GC9tDD7EKMDBqMTDGyHf FSHEmlhWXJl7iFGCg1lJhFdXrDtCiDclsbIqtSg/vqg0J7X4EKMp0FETmaVEk/OBMZdXEm9o YmhuaWhkbGFhbmSkJM5b8uFKuJBAemJJanZqakFqEUwfEwenVAOjbKrHg+S8cqu1zwvXPIne Zyq53PDgpNdFvfaWhgtjFkz6qZWyl5t729wrS3zVNvt7Ly9osfyjzvxmTqXxSa+8OxHnYs3+ zBKP4nP0tz9c3vO3kdtj/RoRp79m0xdMXOD0RvKeZogA862vLHvzg+YsqTdQ4BN7H8blKvvf 4v/c4pvhz98wmTcrsRRnJBpqMRcVJwIAooEc4IECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170127104801eucas1p19a61c607387308a59bdf53fac3efba44 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170127104801eucas1p19a61c607387308a59bdf53fac3efba44 X-RootMTR: 20170127104801eucas1p19a61c607387308a59bdf53fac3efba44 References: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Device tree none name for each power domain should be "power-domain", so use a bit more descriptive full node name in messages about subdomain registration. This way the following meaningless message: power-domain has as child subdomain: power-domain. is changed to a bit more meaningful one: /soc/power-domain@105c40a0 has as child subdomain: /soc/power-domain@105c4020. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/pm_domains.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index 15bad1543409..c33196087e9f 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -234,10 +234,10 @@ static __init int exynos4_pm_init_power_domain(void) if (of_genpd_add_subdomain(&parent, &child)) pr_warn("%s failed to add subdomain: %s\n", - parent.np->name, child.np->name); + parent.np->full_name, child.np->full_name); else pr_info("%s has as child subdomain: %s.\n", - parent.np->name, child.np->name); + parent.np->full_name, child.np->full_name); } return 0; From patchwork Fri Jan 27 10:47:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92599 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp142531obz; Fri, 27 Jan 2017 02:50:18 -0800 (PST) X-Received: by 10.84.195.1 with SMTP id i1mr11331351pld.77.1485514218231; Fri, 27 Jan 2017 02:50:18 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si4119696pll.24.2017.01.27.02.50.18; Fri, 27 Jan 2017 02:50:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932742AbdA0Ktz (ORCPT + 4 others); Fri, 27 Jan 2017 05:49:55 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:14722 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932673AbdA0KsG (ORCPT ); Fri, 27 Jan 2017 05:48:06 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKF00G2QQ03RC80@mailout1.w1.samsung.com>; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170127104802eucas1p2211a50779f33bbf2746708a4b3f4a4a4~dmzAPnUxF1156911569eucas1p2k; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id C2.62.30614.2652B885; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170127104801eucas1p2287962bae474ca786644de4ad6a11f57~dmy-dsf3D2697326973eucas1p2X; Fri, 27 Jan 2017 10:48:01 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-75-588b256214be Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 82.60.10233.F552B885; Fri, 27 Jan 2017 10:47:59 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKF003YLPZX2Z80@eusync4.samsung.com>; Fri, 27 Jan 2017 10:48:01 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Javier Martinez Canillas , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Inki Dae Subject: [PATCH 2/4] soc: samsung: pm_domains: Remove unused name field Date: Fri, 27 Jan 2017 11:47:50 +0100 Message-id: <1485514072-29502-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWRXUhTYRjHe3c+NzxxmqJP5gcNhEhcLbs4ZVhS4IwugoqWN23pSa1Nx+Zn VyK2amtp02hY2ir0YjhdSyzQTDaZWbEpCiLid6aUUrmCJLLcjt79nvf5P///874vjUkDeDxd VFzKG4o1Whkpwbv968G0KykW1cHOJzLuhb2T4MZ/LhGcbaYe51ZW20VcMOimuJB1AHH2YJ+I cw1MUZxv5RZxQqz0OO+Qyq66KUp5r8uJlCFP0lk8V3Isn9cWlfOGA5lqSWHPo6+k3hJV2ee5 S1Wjj2IzEtPAHoZ/TS4kcCwMT3eSZiShpWwrAoerQyQUIQShljFie2LOtoCFWcq2IZg3pQqi ahHMdDyPiEhWAeZVMxnmGPY4TH5qo8IijO0RwYSpFQ83otlseNO4FsnG2RSoGfFFhhlWCTMv A7iQlgRD/obIuZjNgYDbToSNgP1Dgv9V++Z+9GaRCJ5+TNCfgmWXmxQ4Gr4MdlECJ8Bog2XL sw5Bzc1Uge0IAquMwBngGxyJZGHsTrB1P8QEewZum6SCRAlNDetbz5UFjnovEi7/GMFscy1R jxIcaIcTxfBlRl0BbzwkN2p0xrLiAnleic6DNn/5w8bgj9fo27ujXsTSSBbFqJLNKimhKTdW 6bwIaEwWw6TFWlRSJl9TdYM3lFw2lGl5oxftoXFZHNPrGLsoZQs0pfx1ntfzhu2uiBbHV6Pm ub16atZ/yaDX0p8DE3HP+BV/nLg2ryIjuJSzQYyavp93qtUXJn75eob72kdzmdTkc0RvIjGy IecqFs/cn5+udL5vVa2te6/+TlS09DueNmYx428NC9casx8sn8ySL1p37R4iixTp6kndkbX0 zNNuPZUd7bPuc1j/DthAhhsLNYr9mMGo+Q+PkvrN4QIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHLMWRmVeSWpSXmKPExsVy+t/xa7rxqt0RBnsvqFpsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYIlys8lITUxJLVJIzUvOT8nMS7dVCg1x07VQUshLzE21VYrQ9Q0JUlIoS8wpBfKM DNCAg3OAe7CSvl2CW8bu2a/ZCrp5KvZt6mFvYDzD2cXIySEhYCLxcNJjZghbTOLCvfVsXYxc HEICSxgl1l+exwiSEBJoYpJ49JQVxGYTMJToetvFBmKLCNhL3H6yjB2kgVlgL5PE5akvmEAS wgLuEnunfAJrZhFQlWi6eBismVfAQ+L+5nMsENvkJE4emwwW5xTwlDi3YQYrxDIPibXrHrBO YORdwMiwilEktbQ4Nz232EivODG3uDQvXS85P3cTIzCstx37uWUHY9e74EOMAhyMSjy8EfJd EUKsiWXFlbmHGCU4mJVEeHXFuiOEeFMSK6tSi/Lji0pzUosPMZoCHTWRWUo0OR8Yc3kl8YYm huaWhkbGFhbmRkZK4rxTP1wJFxJITyxJzU5NLUgtgulj4uCUamD0ur+Gv6fHzGdNStZK2Xkc /14yF/+YoPXw8srjn7mymDs2dHt/e/p6y0J186vTnUvWfa+aeuojZ8CSLV9Vwl9X7irvLW/P N50ZXVz2/93Vhg+n+aa8dQ7eEnPdxcqsIvfuo/XBXmsdOo+vs3I4KnjsKHeamsq7L02lFT+4 F5+LTzK47n5VYJqPEktxRqKhFnNRcSIAcT1MAIECAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170127104801eucas1p2287962bae474ca786644de4ad6a11f57 X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170127104801eucas1p2287962bae474ca786644de4ad6a11f57 X-RootMTR: 20170127104801eucas1p2287962bae474ca786644de4ad6a11f57 References: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Name is now in generic pm domain structure, so there is no need to duplicate it in private data. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/pm_domains.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index c33196087e9f..00e32772655a 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -35,7 +35,6 @@ struct exynos_pm_domain_config { */ struct exynos_pm_domain { void __iomem *base; - char const *name; bool is_off; struct generic_pm_domain pd; struct clk *oscclk; @@ -70,7 +69,7 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) pd->pclk[i] = clk_get_parent(pd->clk[i]); if (clk_set_parent(pd->clk[i], pd->oscclk)) pr_err("%s: error setting oscclk as parent to clock %d\n", - pd->name, i); + domain->name, i); } } @@ -101,7 +100,7 @@ static int exynos_pd_power(struct generic_pm_domain *domain, bool power_on) continue; /* Skip on first power up */ if (clk_set_parent(pd->clk[i], pd->pclk[i])) pr_err("%s: error setting parent to clock%d\n", - pd->name, i); + domain->name, i); } } @@ -170,7 +169,6 @@ static __init int exynos4_pm_init_power_domain(void) return -ENOMEM; } - pd->name = pd->pd.name; pd->base = of_iomap(np, 0); if (!pd->base) { pr_warn("%s: failed to map memory\n", __func__); From patchwork Fri Jan 27 10:47:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92602 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp142568obz; Fri, 27 Jan 2017 02:50:22 -0800 (PST) X-Received: by 10.84.218.133 with SMTP id r5mr11392965pli.90.1485514222751; Fri, 27 Jan 2017 02:50:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si4119696pll.24.2017.01.27.02.50.22; Fri, 27 Jan 2017 02:50:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932750AbdA0KuA (ORCPT + 13 others); Fri, 27 Jan 2017 05:50:00 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:34153 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932666AbdA0KsG (ORCPT ); Fri, 27 Jan 2017 05:48:06 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKF000XVQ03XP70@mailout4.w1.samsung.com>; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170127104803eucas1p287d451e303619a3700312c011f209646~dmzAd6txm3216632166eucas1p2k; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 83.62.30614.2652B885; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170127104802eucas1p27facdbb5c2914da740f4d2ea6b87680b~dmy-3Rwoz0413704137eucas1p24; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-77-588b256246b2 Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 43.60.10233.0652B885; Fri, 27 Jan 2017 10:48:00 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKF003YLPZX2Z80@eusync4.samsung.com>; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Javier Martinez Canillas , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Inki Dae Subject: [PATCH 3/4] soc: samsung: pm_domains: Remove message about failed memory allocation Date: Fri, 27 Jan 2017 11:47:51 +0100 Message-id: <1485514072-29502-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7djP87p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IoS8wpBfKM DNCAg3OAe7CSvl2CW8bc7VEFD1krOjonsTQw3mfpYuTkkBAwkfh/ZgIrhC0mceHeejYQW0hg CaPEksVeXYxcQHYTk8TyyZ/BitgEDCW63naBFYkI2EvcfrKMHaSIWWAvk8TlqS+YQBLCAnES H372gRWxCKhKvN99jRHE5hXwkLh+aiLUZjmJk8cmgw3lFPCUOLdhBivEZg+JtesesE5g5F3A yLCKUSS1tDg3PbfYSK84Mbe4NC9dLzk/dxMjMKi3Hfu5ZQdj17vgQ4wCHIxKPLwR8l0RQqyJ ZcWVuYcYJTiYlUR4dcW6I4R4UxIrq1KL8uOLSnNSiw8xmgIdNZFZSjQ5HxhxeSXxhiaG5paG RsYWFuZGRkrivFM/XAkXEkhPLEnNTk0tSC2C6WPi4JRqYFzkbir0d+Hh+sXTeP8mbVcPX6Vz 6vwERoVXq201FBcbNh/u3ZZ/63XU60O8h940TT/v8y1ekfOjqpaOybum4Gk8Nasbs65ZqaR8 OvF4d4dDyk3WWn4Piw+2u56rtPpnT4hK/pq96XfhtL2ebSVb3+hf+ntxgWMfc1Vo5b8H6UYb +Ko/n2iW81ViKc5INNRiLipOBABYqWUSgAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170127104802eucas1p27facdbb5c2914da740f4d2ea6b87680b X-Msg-Generator: CA X-Sender-IP: 182.198.249.180 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170127104802eucas1p27facdbb5c2914da740f4d2ea6b87680b X-RootMTR: 20170127104802eucas1p27facdbb5c2914da740f4d2ea6b87680b References: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Memory subsystem already prints message about failed memory allocation, there is no need to do it in the drivers. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/pm_domains.c | 2 -- 1 file changed, 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index 00e32772655a..5a0a46bcbe18 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -156,8 +156,6 @@ static __init int exynos4_pm_init_power_domain(void) pd = kzalloc(sizeof(*pd), GFP_KERNEL); if (!pd) { - pr_err("%s: failed to allocate memory for domain\n", - __func__); of_node_put(np); return -ENOMEM; } From patchwork Fri Jan 27 10:47:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92598 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp142489obz; Fri, 27 Jan 2017 02:50:13 -0800 (PST) X-Received: by 10.84.232.70 with SMTP id f6mr11454230pln.113.1485514213752; Fri, 27 Jan 2017 02:50:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z23si4119696pll.24.2017.01.27.02.50.13; Fri, 27 Jan 2017 02:50:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932604AbdA0Ktr (ORCPT + 4 others); Fri, 27 Jan 2017 05:49:47 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:10635 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932679AbdA0KsM (ORCPT ); Fri, 27 Jan 2017 05:48:12 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKF00LXJQ04JC70@mailout3.w1.samsung.com>; Fri, 27 Jan 2017 10:48:04 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170127104803eucas1p179da728317474857f1aeb937455f0eff~dmzAv71NQ2980829808eucas1p1k; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id FD.BF.17477.3652B885; Fri, 27 Jan 2017 10:48:03 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170127104802eucas1p121f5f44f8a047ad9b5118a37f66ea032~dmzAFO9Oc2980829808eucas1p1j; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-1e-588b2563a37c Received: from eusync4.samsung.com ( [203.254.199.214]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 11.E0.06687.3A52B885; Fri, 27 Jan 2017 10:49:07 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync4.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKF003YLPZX2Z80@eusync4.samsung.com>; Fri, 27 Jan 2017 10:48:02 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org Cc: Marek Szyprowski , Sylwester Nawrocki , Krzysztof Kozlowski , Javier Martinez Canillas , Bartlomiej Zolnierkiewicz , Chanwoo Choi , Inki Dae Subject: [PATCH 4/4] soc: samsung: pm_domains: Provide real name for all supported domains Date: Fri, 27 Jan 2017 11:47:52 +0100 Message-id: <1485514072-29502-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsWy7djP87rJqt0RBm9Ws1lsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYInisklJzcksSy3St0vgytjV95epYIFGxc+PW5kbGJ8qdDFyckgImEg0fd7FCmGL SVy4t56ti5GLQ0hgKaPE+01PoZzPjBLPOn+zwnT8fPuMESKxjFFiwYblzBBOA5PExdfP2ECq 2AQMJbredoHZIgL2ErefLGMHKWIW2M0kcbNtKQtIQlggRuLElKtgY1kEVCU2rD7JBGLzCnhI fF10gwVinZzEyWOTwWo4BTwlzm2YAXXGdzaJl2uVuhg5gGxZiU0HmCHCLhI9qxoYIWxhiVfH t7BD2DISnR0HmSDsfkaJplZtCHsGo8S5t7wQtrXE4eMXwcYzC/BJTNo2nRliPK9ER5sQRImH xKvLj6AucJS439MA9qKQwBxGiSN3oiYwyixgZFjFKJJaWpybnlpsqlecmFtcmpeul5yfu4kR GMmn/x3/uoNx6TGrQ4wCHIxKPLwR8l0RQqyJZcWVuYcYJTiYlUR4dcW6I4R4UxIrq1KL8uOL SnNSiw8xSnOwKInz7llwJVxIID2xJDU7NbUgtQgmy8TBKdXA6L3g+baHP71W7Hi2dIKUUMHz vC+R3ze/OfPAa/+FhIKenStPCfXO5Vt54dYGZ+XaZWL9fpGvXmulLThjLaYh38B6Jls1v+DV rGe75Ga9ljt8jvl+yoM+7bT4Bzt+fp/RIrr/z9OiQluRqDAWH+2IxfsvKIs9vvZQz/2F4Tqj kAOT2gpE9/ziCVNiKc5INNRiLipOBAB2fwPB4AIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsVy+t/xa7qLVbsjDM7ulbbYOGM9q8X1L89Z LSbdn8Bi8ebtGiaL8+c3sFt87j3CaDHj/D4mi7VH7rJbHH7TzurA6bFpVSebx5b+u+wefVtW MXp83iQXwBLlZpORmpiSWqSQmpecn5KZl26rFBripmuhpJCXmJtqqxSh6xsSpKRQlphTCuQZ GaABB+cA92AlfbsEt4xdfX+ZChZoVPz8uJW5gfGpQhcjJ4eEgInEz7fPGCFsMYkL99azdTFy cQgJLGGU+H1jPTOE08QksXzyZ1aQKjYBQ4mut11sILaIgL3E7SfL2EGKmAX2MklcnvqCCSQh LBAjcWLKVbAGFgFViQ2rT4LFeQU8JL4uusECsU5O4uSxyWA1nAKeEuc2zACzhYBq1q57wDqB kXcBI8MqRpHU0uLc9NxiQ73ixNzi0rx0veT83E2MwMDeduzn5h2MlzYGH2IU4GBU4uGNkO+K EGJNLCuuzD3EKMHBrCTCqyvWHSHEm5JYWZValB9fVJqTWnyI0RToqInMUqLJ+cCoyyuJNzQx NLc0NDK2sDA3MlIS5y35cCVcSCA9sSQ1OzW1ILUIpo+Jg1OqgXHS55bTyed5GC5H+ORNPOFW GFFyUH6VX0NDuOOcHcYB7z5PC/efL2rsq2+Yr3VXycqh7JBlYsCVc/96Kv84FHsu8548uybR /6nl24tC26KePVL93jOjtu76/aSSSON1NaJWzq2/Q8v2dCnMbH62z6K7gGFpUESsuFD9nPeH /zT03OqadOjFTiWW4oxEQy3mouJEAJ9hGWOCAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170127104802eucas1p121f5f44f8a047ad9b5118a37f66ea032 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1B?= =?utf-8?b?7IK87ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?utf-8?q?Marek_Szyprowski=1BSRPOL-Kernel_=28TP=29=1BSam?= =?utf-8?q?sung_Electronics=1BSenior_Software_Engineer?= X-Sender-Code: =?utf-8?q?C10=1BEHQ=1BC10CD02CD027392?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170127104802eucas1p121f5f44f8a047ad9b5118a37f66ea032 X-RootMTR: 20170127104802eucas1p121f5f44f8a047ad9b5118a37f66ea032 References: <1485514072-29502-1-git-send-email-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Device tree nodes for each power domain should use generic "power-domain" name, so using it as a domain name doesn't give much benefits. This patch adds human readable names for all supported domains, what makes debugging much easier. Signed-off-by: Marek Szyprowski --- drivers/soc/samsung/pm_domains.c | 125 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 123 insertions(+), 2 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index 5a0a46bcbe18..67d385eaab63 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -30,6 +30,17 @@ struct exynos_pm_domain_config { u32 local_pwr_cfg; }; +struct exynos_pm_domain_data { + const char *name; + u32 base; +}; + +struct exynos_pm_domain_soc_data { + const char *compatible; + unsigned int nr_domains; + const struct exynos_pm_domain_data *domains; +}; + /* * Exynos specific wrapper around the generic power domain */ @@ -123,6 +134,91 @@ static int exynos_pd_power_off(struct generic_pm_domain *domain) return exynos_pd_power(domain, false); } +static const struct exynos_pm_domain_data exynos4210_domains[] __initconst = { + { "LCD1", 0x10023CA0 }, +}; + +static const struct exynos_pm_domain_data exynos4412_domains[] __initconst = { + { "CAM", 0x10023C00 }, + { "TV", 0x10023C20 }, + { "MFC", 0x10023C40 }, + { "G3D", 0x10023C60 }, + { "LCD0", 0x10023C80 }, + { "ISP", 0x10023CA0 }, + { "GPS", 0x10023CE0 }, + { "GPS alive", 0x10023D00 }, +}; + +static const struct exynos_pm_domain_data exynos5250_domains[] __initconst = { + { "GSCL", 0x10044000 }, + { "ISP", 0x10044020 }, + { "MFC", 0x10044040 }, + { "G3D", 0x10044060 }, + { "DISP1", 0x100440A0 }, + { "MAU", 0x100440C0 }, +}; + +static const struct exynos_pm_domain_data exynos542x_domains[] __initconst = { + { "SCALER", 0x10044000 }, + { "ISP", 0x10044020 }, + { "MFC", 0x10044060 }, + { "G3D", 0x10044080 }, + { "DISP1", 0x100440C0 }, + { "MAU", 0x100440E0 }, + { "G2D", 0x10044100 }, + { "MSCL", 0x10044120 }, + { "FSYS", 0x10044140 }, + { "PERIC", 0x100441A0 }, + { "CAM", 0x10045100 }, +}; + +static const struct exynos_pm_domain_data exynos5433_domains[] __initconst = { + { "GSCL", 0x105c4000 }, + { "MSCL", 0x105c4040 }, + { "DISP", 0x105c4080 }, + { "MFC", 0x105c4180 }, + { "CAM0", 0x105c4020 }, + { "CAM1", 0x105c40a0 }, + { "ISP", 0x105c4140 }, + { "G2D", 0x105c4120 }, + { "G3D", 0x105c4060 }, + { "AUD", 0x105c40c0 }, + { "FSYS", 0x105c40e0 }, + { "HEVC", 0x105c41c0 }, +}; + +static const struct exynos_pm_domain_soc_data soc_domains_data[] __initconst = { + { /* Exynos3250 uses a subset of 4412 domains */ + .compatible = "samsung,exynos3250", + .nr_domains = ARRAY_SIZE(exynos4412_domains), + .domains = exynos4412_domains, + }, { /* first check samsung,exynos4210 to detect LCD1 domain */ + .compatible = "samsung,exynos4210", + .nr_domains = ARRAY_SIZE(exynos4210_domains), + .domains = exynos4210_domains, + }, { /* remaining domains for Exynos4210 and 4412 */ + .compatible = "samsung,exynos4", + .nr_domains = ARRAY_SIZE(exynos4412_domains), + .domains = exynos4412_domains + }, { + .compatible = "samsung,exynos5250", + .nr_domains = ARRAY_SIZE(exynos5250_domains), + .domains = exynos5250_domains, + }, { + .compatible = "samsung,exynos5420", + .nr_domains = ARRAY_SIZE(exynos542x_domains), + .domains = exynos542x_domains, + }, { + .compatible = "samsung,exynos5800", + .nr_domains = ARRAY_SIZE(exynos542x_domains), + .domains = exynos542x_domains, + }, { + .compatible = "samsung,exynos5433", + .nr_domains = ARRAY_SIZE(exynos5433_domains), + .domains = exynos5433_domains, + }, +}; + static const struct exynos_pm_domain_config exynos4210_cfg __initconst = { .local_pwr_cfg = 0x7, }; @@ -142,6 +238,32 @@ static int exynos_pd_power_off(struct generic_pm_domain *domain) { }, }; +static __init const char *exynos_get_domain_name(struct device_node *np) +{ + const struct exynos_pm_domain_soc_data *soc = soc_domains_data; + const __be32 *reg; + u64 addr; + int i, j; + + + reg = of_get_property(np, "reg", NULL); + if (!reg || (addr = of_translate_address(np, reg)) == OF_BAD_ADDR) + goto not_found; + + for (i = 0; i < ARRAY_SIZE(soc_domains_data); i++, soc++) { + if (!of_machine_is_compatible(soc->compatible)) + continue; + + for (j = 0; j < soc->nr_domains; j++) { + if (soc->domains[j].base == addr) + return kstrdup_const(soc->domains[j].name, + GFP_KERNEL); + } + } +not_found: + return kstrdup_const(strrchr(np->full_name, '/') + 1, GFP_KERNEL); +} + static __init int exynos4_pm_init_power_domain(void) { struct device_node *np; @@ -159,8 +281,7 @@ static __init int exynos4_pm_init_power_domain(void) of_node_put(np); return -ENOMEM; } - pd->pd.name = kstrdup_const(strrchr(np->full_name, '/') + 1, - GFP_KERNEL); + pd->pd.name = exynos_get_domain_name(np); if (!pd->pd.name) { kfree(pd); of_node_put(np);