From patchwork Mon Jan 30 12:18:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92847 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1409255qgi; Mon, 30 Jan 2017 04:30:40 -0800 (PST) X-Received: by 10.99.188.10 with SMTP id q10mr23538014pge.106.1485779440507; Mon, 30 Jan 2017 04:30:40 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si12463843pla.66.2017.01.30.04.30.40; Mon, 30 Jan 2017 04:30:40 -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 S1753148AbdA3Maj (ORCPT + 4 others); Mon, 30 Jan 2017 07:30:39 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:23651 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752996AbdA3Mai (ORCPT ); Mon, 30 Jan 2017 07:30:38 -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 <0OKL00BN0E82IU50@mailout1.w1.samsung.com>; Mon, 30 Jan 2017 12:19:14 +0000 (GMT) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170130121914eucas1p11c1c09aefad3621b98b36230612adf59~ei_ezr2CY1710817108eucas1p1x; Mon, 30 Jan 2017 12:19:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id FD.94.30614.14F2F885; Mon, 30 Jan 2017 12:19:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121913eucas1p22838794c26581e0b1757f2610ce9b32d~ei_d-s6zD1369813698eucas1p2K; Mon, 30 Jan 2017 12:19:13 +0000 (GMT) X-AuditID: cbfec7f1-f793f6d000007796-4d-588f2f411c9b Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 90.B3.10233.04F2F885; Mon, 30 Jan 2017 12:19:12 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKL00IHCE7WJ0B0@eusync3.samsung.com>; Mon, 30 Jan 2017 12:19:13 +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 v3 1/5] soc: samsung: pm_domains: Use full names in subdomains registration log Date: Mon, 30 Jan 2017 13:18:56 +0100 Message-id: <1485778740-30337-2-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485778740-30337-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrPIsWRmVeSWpSXmKPExsWy7djP87pO+v0RBsdWsFpsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYInisklJzcksSy3St0vgytjRvoi9YANnxfS789gbGF+zdzFyckgImEjs+bKMCcIW k7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V8BD4v392UwQ6+QkTh6bDDaUU8BT4uvqZWC2EFDNp6vnmScw 8i5gZFjFKJJaWpybnltspFecmFtcmpeul5yfu4kRGNjbjv3csoOx613wIUYBDkYlHt4bwn0R QqyJZcWVuYcYJTiYlUR4T6r2RwjxpiRWVqUW5ccXleakFh9iNAU6aiKzlGhyPjDq8kriDU0M zS0NjYwtLMyNjJTEead+uBIuJJCeWJKanZpakFoE08fEwSnVwNjiz5WUq1BmcCafRf3Il/UP nJ/9uSD4x/iT6Ks5Sfv40hSX7a8NiNwc5yZvwRsdWbx0h/H8/ebbNRJ2uk8x/Pvv+9UDa2dn PKkJNT0hMPXm7BsX5+8tebC+fuKSB45h3fPffDqow75t1e17AlL6795Mr1I++Eb/wufyyyvT u6svXNZar7W4iElGiaU4I9FQi7moOBEAm/0H3IICAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130121913eucas1p22838794c26581e0b1757f2610ce9b32d 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: 20170130121913eucas1p22838794c26581e0b1757f2610ce9b32d X-RootMTR: 20170130121913eucas1p22838794c26581e0b1757f2610ce9b32d References: <1485778740-30337-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 Mon Jan 30 12:18:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92845 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1409199qgi; Mon, 30 Jan 2017 04:30:33 -0800 (PST) X-Received: by 10.99.173.14 with SMTP id g14mr23773478pgf.176.1485779433165; Mon, 30 Jan 2017 04:30:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si12463843pla.66.2017.01.30.04.30.32; Mon, 30 Jan 2017 04:30:33 -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 S1752758AbdA3Mab (ORCPT + 4 others); Mon, 30 Jan 2017 07:30:31 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:42382 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752523AbdA3Maa (ORCPT ); Mon, 30 Jan 2017 07:30:30 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKL006FME837L50@mailout4.w1.samsung.com>; Mon, 30 Jan 2017 12:19:15 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121914eucas1p214dc8c7450cb703adb77d410f18cf047~ei_fLiB_o1369913699eucas1p2j; Mon, 30 Jan 2017 12:19:14 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id 8D.E5.09557.24F2F885; Mon, 30 Jan 2017 12:19:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170130121913eucas1p187c10b4ad4b3551c0100b492374f42bb~ei_ecAktz1710317103eucas1p1_; Mon, 30 Jan 2017 12:19:13 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-1c-588f2f42643f Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 51.B3.10233.04F2F885; Mon, 30 Jan 2017 12:19:12 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKL00IHCE7WJ0B0@eusync3.samsung.com>; Mon, 30 Jan 2017 12:19:13 +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 v3 2/5] soc: samsung: pm_domains: Remove unused name field Date: Mon, 30 Jan 2017 13:18:57 +0100 Message-id: <1485778740-30337-3-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485778740-30337-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsWy7djP87pO+v0RBsvOylpsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYInisklJzcksSy3St0vgytg9+zVbQTdPxb5NPewNjGc4uxg5OSQETCTWHTrGCGGL SVy4t56ti5GLQ0hgKaPEjT3bWCGcz4wSK6ecZofp6Hl8CapqGaPExierWCCcBiaJ5297WUCq 2AQMJbredrGB2CIC9hK3nyxjByliFtjNJHGzbSlYkbCAl0TLxulgRSwCqhJ9p0+AxXkFPCQe 3rwNtU5O4uSxyawgNqeAp8TX1cvAbpIQ+M4mceHpSaAGDiBHVmLTAWaIeheJC4eeQ/UKS7w6 vgXKlpG4PLmbBcLuZ5RoatWGsGcwSpx7ywthW0scPn4RbBezAJ/EpG3TmSHG80p0tAlBmB4S 31+KQVQ7SqxqPgT1+xxGiX0X77JOYJRZwMiwilEktbQ4Nz212FivODG3uDQvXS85P3cTIzCW T/87/mkH49cTVocYBTgYlXh4bwj3RQixJpYVV+YeYpTgYFYS4T2p2h8hxJuSWFmVWpQfX1Sa k1p8iFGag0VJnHfPgivhQgLpiSWp2ampBalFMFkmDk6pBsYT87o1r3q1nX9/vXVN0P1Wm8ON s5sdLXou3ZkltP/AN3nXR2uY1tj2tHpoVRjvuzbZsX1L7IKQvtSsJedi3swR4XxuPdP+uuC7 8zIb1ydf3d98+ABbZ2z24tnRNzN2qFbtvXZs7ffvhZe2FEXLHJvBOqvdP+/pnQ1VgSvZCyMr 16sKhJSe+hWjxFKckWioxVxUnAgAoMd83eECAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrPLMWRmVeSWpSXmKPExsVy+t/xq7oO+v0RBosnKVtsnLGe1eL6l+es FpPuT2CxePN2DZPF+fMb2C0+9x5htJhxfh+Txdojd9ktDr9pZ3Xg9Ni0qpPNY0v/XXaPvi2r GD0+b5ILYIlys8lITUxJLVJIzUvOT8nMS7dVCg1x07VQUshLzE21VYrQ9Q0JUlIoS8wpBfKM DNCAg3OAe7CSvl2CW8bu2a/ZCrp5KvZt6mFvYDzD2cXIySEhYCLR8/gSG4QtJnHh3nogm4tD SGAJo8TCbceZIZwmJommR+9YQarYBAwlut52gXWICNhL3H6yjB2kiFlgL5PE5akvmEASwgJe Ei0bp4MVsQioSvSdPsECYvMKeEg8vHmbHWKdnMTJY5PBhnIKeEp8Xb0MzBYCqvl09TzzBEbe BYwMqxhFUkuLc9Nzi430ihNzi0vz0vWS83M3MQIDe9uxn1t2MHa9Cz7EKMDBqMTDe0O4L0KI NbGsuDL3EKMEB7OSCO9J1f4IId6UxMqq1KL8+KLSnNTiQ4ymQEdNZJYSTc4HRl1eSbyhiaG5 paGRsYWFuZGRkjjv1A9XwoUE0hNLUrNTUwtSi2D6mDg4pRoYzdKPV3zPFvMQFfP++4797QYJ +YzfzyfnKi5fOCPyZcv3nxvfVFRVF1d6TuJ6YWOw5CwvB8e3G7Ln1th1H9gpbLRiw5uft0/O 4TXVTf/zvt7uiV/c4VOHLvWtkHvesluqerbTnuDAt5Okl/26kv990krXM4GlVxWjJu5lPZM/ U5LPRvU857EfEkosxRmJhlrMRcWJAMH4YTKCAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130121913eucas1p187c10b4ad4b3551c0100b492374f42bb 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: 20170130121913eucas1p187c10b4ad4b3551c0100b492374f42bb X-RootMTR: 20170130121913eucas1p187c10b4ad4b3551c0100b492374f42bb References: <1485778740-30337-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 Mon Jan 30 12:18:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92846 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1409231qgi; Mon, 30 Jan 2017 04:30:38 -0800 (PST) X-Received: by 10.99.109.143 with SMTP id i137mr23622646pgc.11.1485779438190; Mon, 30 Jan 2017 04:30:38 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w31si12463843pla.66.2017.01.30.04.30.37; Mon, 30 Jan 2017 04:30:38 -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 S1752783AbdA3Mah (ORCPT + 4 others); Mon, 30 Jan 2017 07:30:37 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:18855 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752523AbdA3Mag (ORCPT ); Mon, 30 Jan 2017 07:30:36 -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 <0OKL00DIRE8EZW50@mailout3.w1.samsung.com>; Mon, 30 Jan 2017 12:19:26 +0000 (GMT) Received: from eusmges5.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121925eucas1p20bd6ddce3c170057d203c03b9cac0973~ei_pQBIkS1632816328eucas1p2d; Mon, 30 Jan 2017 12:19:25 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges5.samsung.com (EUCPMTA) with SMTP id B9.D1.17477.D4F2F885; Mon, 30 Jan 2017 12:19:25 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121924eucas1p24f99bd1ca38a37d88d54aae96d0e141f~ei_oNVoXa0678706787eucas1p2w; Mon, 30 Jan 2017 12:19:24 +0000 (GMT) X-AuditID: cbfec7f5-f79d06d000004445-fe-588f2f4d17f6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 51.24.06687.58F2F885; Mon, 30 Jan 2017 12:20:21 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKL00IHCE7WJ0B0@eusync3.samsung.com>; Mon, 30 Jan 2017 12:19:14 +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 v3 3/5] soc: samsung: pm_domains: Remove message about failed memory allocation Date: Mon, 30 Jan 2017 13:18:58 +0100 Message-id: <1485778740-30337-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485778740-30337-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker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8lITUxJLVJIzUvOT8nMS7dVCg1x07VQUshLzE21VYrQ9Q0JUlIoS8wpBfKM DNCAg3OAe7CSvl2CW8bc7VEFD1krOjonsTQw3mfpYuTkkBAwkZiz9zIbhC0mceHeeiCbi0NI YAmjxIIje9ghnCYmidbdnUwgVWwChhJdb7vAOkQE7CVuP1kGVsQssJdJ4vLUF2BFwgKJEpc2 vwJawcHBIqAq0fGvCCTMK+AhMfH6Y6htchInj01mBbE5BTwlvq5eBmYLAdV8unqeeQIj7wJG hlWMIqmlxbnpucWGesWJucWleel6yfm5mxiBQb3t2M/NOxgvbQw+xCjAwajEw3tDuC9CiDWx rLgy9xCjBAezkgjvSdX+CCHelMTKqtSi/Pii0pzU4kOMpkA3TWSWEk3OB0ZcXkm8oYmhuaWh kbGFhbmRkZI4b8mHK+FCAumJJanZqakFqUUwfUwcnFINjHUnT1gG1P+9YtAUwTNXLV9twat9 0UdXd+TvsjsZWPtkrseUat4tdZ/OXvaUvT3lyNMlYZazz4itlwvJ8k/rfNl/R/+I4i3xRNmW eNO0/PunP92c6RM6h/vMdXlb8a3bGH8uNp+SavzL42PVS+mZDX9PHH3bbnhW2Md17+/iayL6 by5s7O5KMlNiKc5INNRiLipOBAB8cCSKgAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130121924eucas1p24f99bd1ca38a37d88d54aae96d0e141f 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: 20170130121924eucas1p24f99bd1ca38a37d88d54aae96d0e141f X-RootMTR: 20170130121924eucas1p24f99bd1ca38a37d88d54aae96d0e141f References: <1485778740-30337-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 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-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 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 Mon Jan 30 12:18:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92848 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1409902qgi; Mon, 30 Jan 2017 04:32:12 -0800 (PST) X-Received: by 10.99.113.18 with SMTP id m18mr23796579pgc.115.1485779532430; Mon, 30 Jan 2017 04:32:12 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si8383810pgi.404.2017.01.30.04.32.12; Mon, 30 Jan 2017 04:32:12 -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 S1753373AbdA3McG (ORCPT + 13 others); Mon, 30 Jan 2017 07:32:06 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:23731 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753292AbdA3Mbe (ORCPT ); Mon, 30 Jan 2017 07:31:34 -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 <0OKL00BN2E84IU50@mailout1.w1.samsung.com>; Mon, 30 Jan 2017 12:19:16 +0000 (GMT) Received: from eusmges4.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121916eucas1p29c907dc6c0401afb36ca47ea23f485e3~ei_gdhpHM3189431894eucas1p2w; Mon, 30 Jan 2017 12:19:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges4.samsung.com (EUCPMTA) with SMTP id 5B.E0.28517.34F2F885; Mon, 30 Jan 2017 12:19:15 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121915eucas1p23aa4f4be912bcd64f9521f6e6b51132f~ei_f2QyEi0678706787eucas1p2n; Mon, 30 Jan 2017 12:19:15 +0000 (GMT) X-AuditID: cbfec7f4-f79716d000006f65-47-588f2f43baeb Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id D2.24.06687.68F2F885; Mon, 30 Jan 2017 12:20:22 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKL00IHCE7WJ0B0@eusync3.samsung.com>; Mon, 30 Jan 2017 12:19:15 +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 , devicetree@vger.kernel.org, Rob Herring Subject: [PATCH v3 4/5] soc: samsung: pm_domains: Read domain name from the new label property Date: Mon, 30 Jan 2017 13:18:59 +0100 Message-id: <1485778740-30337-5-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485778740-30337-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGIsWRmVeSWpSXmKPExsWy7djPc7rO+v0RBl3bTSw2zljPanH9y3NW i/lHzrFaTLo/gcXizds1TBbnz29gt/jce4TRYsb5fUwWa4/cZbdo3XuE3eLwm3ZWB26PTas6 2Ty29N9l9+jbsorR4/MmuQCWKC6blNSczLLUIn27BK6My9e5Co6LVcz+f4GtgfGUUBcjJ4eE gInEj+dP2CBsMYkL99YD2VwcQgJLGSXebTjBDOF8ZpS4sPYLO0zHotttUFXLGCXed39iBUkI CTQwSWx4ngxiswkYSnS97QIbKyJgL3H7yTJ2kAZmgd9MEru/N4MlhAUSJK4v/wzUzMHBIqAq se9qJkiYV8BD4vDxTcwQy+QkTh6bDDafU8BT4uvqZawgcyQE2tklNt9YwATSKyEgK7HpAFS9 i8TPzf9YIWxhiVfHt0AdLSPR2XGQCcLuZ5RoatWGsGcwSpx7ywthWwPtvQjWyyzAJzFp23Rm iPG8Eh1t0NDykPi17SDUKkeJc+sOQANoDqPE7FPXGCcwyixgZFjFKJJaWpybnlpsolecmFtc mpeul5yfu4kRGNun/x3/soNx8TGrQ4wCHIxKPLw3hPsihFgTy4orcw8xSnAwK4nwnlTtjxDi TUmsrEotyo8vKs1JLT7EKM3BoiTOu2fB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G6XokCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130121915eucas1p23aa4f4be912bcd64f9521f6e6b51132f 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: 20170130121915eucas1p23aa4f4be912bcd64f9521f6e6b51132f X-RootMTR: 20170130121915eucas1p23aa4f4be912bcd64f9521f6e6b51132f References: <1485778740-30337-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 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 support for human readable names defined in 'label' property. Such names are visible to userspace and makes debugging much easier. When no 'label' property is found, driver keeps using the name constructed from full node name. Suggested-by: Krzysztof Kozlowski Signed-off-by: Marek Szyprowski --- Documentation/devicetree/bindings/power/pd-samsung.txt | 4 ++++ drivers/soc/samsung/pm_domains.c | 12 ++++++++++-- 2 files changed, 14 insertions(+), 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/Documentation/devicetree/bindings/power/pd-samsung.txt b/Documentation/devicetree/bindings/power/pd-samsung.txt index fb08c8d62733..549f7dee9b9d 100644 --- a/Documentation/devicetree/bindings/power/pd-samsung.txt +++ b/Documentation/devicetree/bindings/power/pd-samsung.txt @@ -13,6 +13,8 @@ Required Properties: must be 0. Optional Properties: +- label: Human readable string with domain name. Will be visible in userspace + to let user to distinguish between multiple domains in SoC. - clocks: List of clock handles. The parent clocks of the input clocks to the devices in this power domain are set to oscclk before power gating and restored back after powering on a domain. This is required for @@ -39,6 +41,7 @@ Example: compatible = "samsung,exynos4210-pd"; reg = <0x10023C00 0x10>; #power-domain-cells = <0>; + label = "LCD0"; }; mfc_pd: power-domain@10044060 { @@ -47,6 +50,7 @@ Example: clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_USER_ACLK333>; clock-names = "oscclk", "clk0"; #power-domain-cells = <0>; + label = "MFC"; }; See Documentation/devicetree/bindings/power/power_domain.txt for description diff --git a/drivers/soc/samsung/pm_domains.c b/drivers/soc/samsung/pm_domains.c index 5a0a46bcbe18..a6a5d807cc2b 100644 --- a/drivers/soc/samsung/pm_domains.c +++ b/drivers/soc/samsung/pm_domains.c @@ -142,6 +142,15 @@ static int exynos_pd_power_off(struct generic_pm_domain *domain) { }, }; +static __init const char *exynos_get_domain_name(struct device_node *node) +{ + const char *name; + + if (of_property_read_string(node, "label", &name) < 0) + name = strrchr(node->full_name, '/') + 1; + return kstrdup_const(name, GFP_KERNEL); +} + static __init int exynos4_pm_init_power_domain(void) { struct device_node *np; @@ -159,8 +168,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); From patchwork Mon Jan 30 12:19:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 92844 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1405102qgi; Mon, 30 Jan 2017 04:19:32 -0800 (PST) X-Received: by 10.99.66.193 with SMTP id p184mr23653241pga.213.1485778772640; Mon, 30 Jan 2017 04:19:32 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f13si12480670pfj.142.2017.01.30.04.19.32; Mon, 30 Jan 2017 04:19:32 -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 S1752959AbdA3MTb (ORCPT + 13 others); Mon, 30 Jan 2017 07:19:31 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:29055 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752776AbdA3MTX (ORCPT ); Mon, 30 Jan 2017 07:19:23 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OKL00CO9E841K50@mailout2.w1.samsung.com>; Mon, 30 Jan 2017 12:19:17 +0000 (GMT) Received: from eusmges3.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170130121916eucas1p2ca1f5ded5946ac66ee6abcfa139381bd~ei_g2j6H-0678706787eucas1p2q; Mon, 30 Jan 2017 12:19:16 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3.samsung.com (EUCPMTA) with SMTP id EE.E5.09557.44F2F885; Mon, 30 Jan 2017 12:19:16 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170130121915eucas1p1ee68039795d5ee4a05990fe6e27c5fcc~ei_gGNWhN1710317103eucas1p1-; Mon, 30 Jan 2017 12:19:15 +0000 (GMT) X-AuditID: cbfec7f2-f790f6d000002555-22-588f2f44ead6 Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 24.24.06687.68F2F885; Mon, 30 Jan 2017 12:20:22 +0000 (GMT) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OKL00IHCE7WJ0B0@eusync3.samsung.com>; Mon, 30 Jan 2017 12:19:15 +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 v3 5/5] arm: dts: exynos: Add labels to all existing power domains Date: Mon, 30 Jan 2017 13:19:00 +0100 Message-id: <1485778740-30337-6-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1485778740-30337-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsWy7djP87ou+v0RBl2rBS02zljPanH9y3NW i0n3J7BYvHm7hsni/PkN7Bafe48wWsw4v4/JYu2Ru+wWh9+0szpwemxa1cnmsaX/LrtH35ZV jB6fN8kFsERx2aSk5mSWpRbp2yVwZRxb18hUsEC1omXZIbYGxquyXYycHBICJhKnZ/5jhbDF JC7cW8/WxcjFISSwlFFi6rvXUM5nRonVa/eywXTs/dvIDpFYxijxafEUdpCEkEADk8SG58kg NpuAoUTX2y6wBhEBe4nbT5aBNTAL7GaSuNm2lAUkISwQIrH893wmEJtFQFXi172XYIN4BTwk tq8+DXWTnMTJY5PBbE4BT4mvq5exggySEPjOJnGz6wpzFyMHkCMrsekAM0S9i8SH2R/ZIWxh iVfHt0DZMhKdHQeZIOx+RommVm0IewajxLm3vBC2tcTh4x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ap M8dbQ9miTL22bJzB/PrimSerWv/ZVpxSlS70M+GUcDfd3HF2zv6gsL4PLsfz5irmHNY4NWv/ 37QZU4LmVpo99T3LpGYvoxS7bpfLs3Jlk7N7YhPeXtf0cO9Ik7JgPHpIf02vvtuZ5pu6dXfO pBUsjZU9l6kwV4mlOCPRUIu5qDgRAGAvjgSBAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170130121915eucas1p1ee68039795d5ee4a05990fe6e27c5fcc 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: 20170130121915eucas1p1ee68039795d5ee4a05990fe6e27c5fcc X-RootMTR: 20170130121915eucas1p1ee68039795d5ee4a05990fe6e27c5fcc References: <1485778740-30337-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 Provide human readable names for all power domains defined in Exynos SoCs. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos4.dtsi | 7 +++++++ arch/arm/boot/dts/exynos4210.dtsi | 1 + arch/arm/boot/dts/exynos4412.dtsi | 1 + arch/arm/boot/dts/exynos5250.dtsi | 3 +++ arch/arm/boot/dts/exynos5420.dtsi | 5 +++++ 5 files changed, 17 insertions(+) -- 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/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi index 8fb0e00dd1be..18def1c774d5 100644 --- a/arch/arm/boot/dts/exynos4.dtsi +++ b/arch/arm/boot/dts/exynos4.dtsi @@ -102,18 +102,21 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10023C40 0x20>; #power-domain-cells = <0>; + label = "MFC"; }; pd_g3d: g3d-power-domain@10023C60 { compatible = "samsung,exynos4210-pd"; reg = <0x10023C60 0x20>; #power-domain-cells = <0>; + label = "G3D"; }; pd_lcd0: lcd0-power-domain@10023C80 { compatible = "samsung,exynos4210-pd"; reg = <0x10023C80 0x20>; #power-domain-cells = <0>; + label = "LCD0"; }; pd_tv: tv-power-domain@10023C20 { @@ -121,24 +124,28 @@ reg = <0x10023C20 0x20>; #power-domain-cells = <0>; power-domains = <&pd_lcd0>; + label = "TV"; }; pd_cam: cam-power-domain@10023C00 { compatible = "samsung,exynos4210-pd"; reg = <0x10023C00 0x20>; #power-domain-cells = <0>; + label = "CAM"; }; pd_gps: gps-power-domain@10023CE0 { compatible = "samsung,exynos4210-pd"; reg = <0x10023CE0 0x20>; #power-domain-cells = <0>; + label = "GPS"; }; pd_gps_alive: gps-alive-power-domain@10023D00 { compatible = "samsung,exynos4210-pd"; reg = <0x10023D00 0x20>; #power-domain-cells = <0>; + label = "GPS alive"; }; gic: interrupt-controller@10490000 { diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 7f3a18c8f60f..f9408188f97f 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -86,6 +86,7 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10023CA0 0x20>; #power-domain-cells = <0>; + label = "LCD1"; }; l2c: l2-cache-controller@10502000 { diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 4f7b5a1a848c..235bbb69ad7c 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -172,6 +172,7 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10023CA0 0x20>; #power-domain-cells = <0>; + label = "ISP"; }; l2c: l2-cache-controller@10502000 { diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 0e04460a815a..79c9c885613a 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -115,18 +115,21 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10044000 0x20>; #power-domain-cells = <0>; + label = "GSC"; }; pd_mfc: mfc-power-domain@10044040 { compatible = "samsung,exynos4210-pd"; reg = <0x10044040 0x20>; #power-domain-cells = <0>; + label = "MFC"; }; pd_disp1: disp1-power-domain@100440A0 { compatible = "samsung,exynos4210-pd"; reg = <0x100440A0 0x20>; #power-domain-cells = <0>; + label = "DISP1"; clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_ACLK200_DISP1_SUB>, <&clock CLK_MOUT_ACLK300_DISP1_SUB>; diff --git a/arch/arm/boot/dts/exynos5420.dtsi b/arch/arm/boot/dts/exynos5420.dtsi index 0154c2e373f8..7dc9dc82afd8 100644 --- a/arch/arm/boot/dts/exynos5420.dtsi +++ b/arch/arm/boot/dts/exynos5420.dtsi @@ -277,6 +277,7 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10044000 0x20>; #power-domain-cells = <0>; + label = "GSC"; clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_USER_ACLK300_GSCL>, <&clock CLK_GSCL0>, <&clock CLK_GSCL1>; @@ -287,6 +288,7 @@ compatible = "samsung,exynos4210-pd"; reg = <0x10044020 0x20>; #power-domain-cells = <0>; + label = "ISP"; }; mfc_pd: power-domain@10044060 { @@ -297,18 +299,21 @@ <&clock CLK_ACLK333>; clock-names = "oscclk", "clk0","asb0"; #power-domain-cells = <0>; + label = "MFC"; }; msc_pd: power-domain@10044120 { compatible = "samsung,exynos4210-pd"; reg = <0x10044120 0x20>; #power-domain-cells = <0>; + label = "MSC"; }; disp_pd: power-domain@100440C0 { compatible = "samsung,exynos4210-pd"; reg = <0x100440C0 0x20>; #power-domain-cells = <0>; + label = "DISP"; clocks = <&clock CLK_FIN_PLL>, <&clock CLK_MOUT_USER_ACLK200_DISP1>, <&clock CLK_MOUT_USER_ACLK300_DISP1>,