From patchwork Wed Mar 11 09:54:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5983041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 558E2BF440 for ; Wed, 11 Mar 2015 09:57:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 78331202AE for ; Wed, 11 Mar 2015 09:57:48 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A87222028D for ; Wed, 11 Mar 2015 09:57:47 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVdMJ-0000Yw-Hy; Wed, 11 Mar 2015 09:55:23 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YVdMB-0007eC-CO for linux-arm-kernel@lists.infradead.org; Wed, 11 Mar 2015 09:55:16 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL100DTCL1ZG200@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 11 Mar 2015 09:58:48 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-d7-550010506c10 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 42.13.07834.05010055; Wed, 11 Mar 2015 09:52:16 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NL1008XPKV2AX00@eusync1.samsung.com>; Wed, 11 Mar 2015 09:54:41 +0000 (GMT) From: Krzysztof Kozlowski To: Kukjin Kim , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: EXYNOS: Use platform device name as power domain name Date: Wed, 11 Mar 2015 10:54:32 +0100 Message-id: <1426067672-21589-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCJMWRmVeSWpSXmKPExsVy+t/xy7oBAgyhBtOPGFv8nXSM3eLo7wKL 1y8MLfofv2a22PT4GqvF5V1z2CxmnN/HZHHq+mc2izOrbrE7cHr8/jWJ0ePB1P9MHn+fX2fx 2LSqk81j85J6jysnmlg9+rasYvT4vEkugCOKyyYlNSezLLVI3y6BK6Nz1hr2gh7uit7Zp9kb GG9zdDFyckgImEjMPveCGcIWk7hwbz1bFyMXh5DAUkaJzluf2SGcPiaJkx8WM4FUsQkYS2xe vgSsSkSgi1Fi1pbfbCAJZoGXjBIHDkSD2MICfhK7Jr9h6WLk4GARUJVYfz4RJMwr4C5x/dAt JohtchInj01mncDIvYCRYRWjaGppckFxUnquoV5xYm5xaV66XnJ+7iZGSEh92cG4+JjVIUYB DkYlHt6b0f9ChFgTy4orcw8xSnAwK4nw9vEzhArxpiRWVqUW5ccXleakFh9iZOLglGpgXDR7 yZ3JrNcFns/mel7ZuZUxdOGyZJ/SEwWLF29MY3wXEeXca6X0xMy33Kkn9PQH2ZznB/mm/t9x ry1or/ZcGRfFc3xllz7JvmnYyHRzceiV+PZ/E+cWGk54dK01vKq0+/673TNZrduUkhJVonnn Fd54x1JnuKKtPIfvnapzTmbXyuyjPGtLlViKMxINtZiLihMB+EhOLwcCAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150311_025515_567072_ABB1C341 X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Olof Johansson , Krzysztof Kozlowski , Arnd Bergmann , Javier Martinez Canillas , Sergei Shtylyov X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The power domain nodes in DTS may be very generic (e.g. "power-domain" for Exynos 5420) making it very hard to debug: $ cat /sys/kernel/debug/pm_genpd/pm_genpd_summary domain status slaves power-domain on Use platform device name instead so the names will be a little more user friendly: domain status slaves 100440e0.power-domain on Signed-off-by: Krzysztof Kozlowski Suggested-by: Javier Martinez Canillas Suggested-by: Sergei Shtylyov Reviewed-by: Javier Martinez Canillas Reviewed-by: Chanwoo Choi Reviewed-by: Kevin Hilman --- Notes: Changes since v1: 1. Add Javier's reviewed-by. arch/arm/mach-exynos/pm_domains.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c index 37266a826437..84e1d9f4d76c 100644 --- a/arch/arm/mach-exynos/pm_domains.c +++ b/arch/arm/mach-exynos/pm_domains.c @@ -125,7 +125,7 @@ static __init int exynos4_pm_init_power_domain(void) return -ENOMEM; } - pd->pd.name = kstrdup(np->name, GFP_KERNEL); + pd->pd.name = kstrdup(dev_name(dev), GFP_KERNEL); pd->name = pd->pd.name; pd->base = of_iomap(np, 0); pd->pd.power_off = exynos_pd_power_off;