From patchwork Tue Feb 10 12:57:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5806951 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 399E4BF440 for ; Tue, 10 Feb 2015 12:57:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 123B92012E for ; Tue, 10 Feb 2015 12:57:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2F9A22011D for ; Tue, 10 Feb 2015 12:57:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755380AbbBJM5Z (ORCPT ); Tue, 10 Feb 2015 07:57:25 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:38399 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbbBJM5Y (ORCPT ); Tue, 10 Feb 2015 07:57:24 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NJK00KAW46D9P90@mailout2.w1.samsung.com>; Tue, 10 Feb 2015 13:01:25 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-cd-54d9ff9f2d86 Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 5C.C9.26295.F9FF9D45; Tue, 10 Feb 2015 12:54:55 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NJK00HLB3ZIT310@eusync3.samsung.com>; Tue, 10 Feb 2015 12:57:22 +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: Javier Martinez Canillas , Sergei Shtylyov , Krzysztof Kozlowski Subject: [PATCH] ARM: EXYNOS: Use platform device name as power domain name Date: Tue, 10 Feb 2015 13:57:15 +0100 Message-id: <1423573035-21960-1-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t/xq7rz/98MMdhzzcji6O8Ci9cvDC36 H79mttj0+BqrxeVdc9gsZpzfx2RxZtUtdgd2jwdT/zN5/H1+ncVj06pONo/NS+o9+rasYvT4 vEkugC2KyyYlNSezLLVI3y6BK6Pr8Dvmgn+cFav27WVpYHzF3sXIwSEhYCKxdYVzFyMnkCkm ceHeerYuRi4OIYGljBLzb3+CcvqYJA7cncoKUsUmYCyxefkSsISIQBejxKwtv8EcZoHljBLH /q5mBqkSFvCWONt+D8xmEVCV2Hl7HQuIzSvgLnFmxhtmiH1yEiePTWadwMi9gJFhFaNoamly QXFSeq6RXnFibnFpXrpecn7uJkZIsHzdwbj0mNUhRgEORiUe3gtXboQIsSaWFVfmHmKU4GBW EuFl+HQzRIg3JbGyKrUoP76oNCe1+BAjEwenVANjb1L0G9bWPZfXb93wSPVriar4Mofbk2vK Qld9eCt9dfK2S+dDL4urebdyXb7okWw2d3/+matPPW4meXNVyfo8m6n9iO/Vkeb7JU4Jj6om XHhmfjwjSmv9q84/LKHp5vXZHMaMEWdjW81fB/UdjP0pKy7Hws17vjpG0u6g927mYzbNkotb 4k8qsRRnJBpqMRcVJwIAStvT3/QBAAA= 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 --- 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 20f267121b3e..37642ea97d23 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;