Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755554AbbBJM50 (ORCPT ); Tue, 10 Feb 2015 07:57:26 -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 X-AuditID: cbfec7f5-b7fc86d0000066b7-cd-54d9ff9f2d86 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1488 Lines: 40 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 --- 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; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/