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: 5983021 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 CFF12BF440 for ; Wed, 11 Mar 2015 09:54:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECDDF2041E for ; Wed, 11 Mar 2015 09:54:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB3CB2041A for ; Wed, 11 Mar 2015 09:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750981AbbCKJyp (ORCPT ); Wed, 11 Mar 2015 05:54:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:30276 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbbCKJyo (ORCPT ); Wed, 11 Mar 2015 05:54:44 -0400 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>; 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 Cc: Sergei Shtylyov , Javier Martinez Canillas , Arnd Bergmann , Olof Johansson , Krzysztof Kozlowski 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= Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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;