All of lore.kernel.org
 help / color / mirror / Atom feed
* [GIT PULL] Renesas ARM Based SoC PM Cleanups for v3.18
@ 2014-09-11  0:57 ` Simon Horman
  0 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2014-09-11  0:57 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Olof, Hi Kevin, Hi Arnd,

Please consider these Renesas ARM based SoC PM cleanups for v3.18.


The following changes since commit 7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9:

  Linux 3.17-rc1 (2014-08-16 10:40:26 -0600)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-pm-cleanups-for-v3.18

for you to fetch changes up to 834720dbf03819a8b2d0ba5fbe01d008267f9da6:

  ARM: shmobile: armadillo800eva legacy: Use rmobile_add_devices_to_domains() (2014-09-09 11:16:08 +0900)

----------------------------------------------------------------
Renesas ARM Based SoC PM Cleanups for v3.18

* Make domain_devices[] static __initdata
* Add and use rmobile_add_devices_to_domain

----------------------------------------------------------------
Geert Uytterhoeven (5):
      ARM: shmobile: mackerel: Make domain_devices[] static __initdata
      ARM: shmobile: sh7372: Make domain_devices[] static __initdata
      ARM: shmobile: r8a7740: Use rmobile_add_devices_to_domains()
      ARM: shmobile: r8a7740: Clean up pm domain table
      ARM: shmobile: armadillo800eva legacy: Use rmobile_add_devices_to_domains()

 arch/arm/mach-shmobile/board-armadillo800eva.c |  8 ++++++--
 arch/arm/mach-shmobile/board-mackerel.c        |  2 +-
 arch/arm/mach-shmobile/pm-r8a7740.c            | 10 ++++------
 arch/arm/mach-shmobile/setup-r8a7740.c         | 26 +++++++++++++++-----------
 arch/arm/mach-shmobile/setup-sh7372.c          |  2 +-
 5 files changed, 27 insertions(+), 21 deletions(-)

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH 3/5] ARM: shmobile: r8a7740: Use rmobile_add_devices_to_domains()
@ 2014-08-29 13:26 Geert Uytterhoeven
  0 siblings, 0 replies; 15+ messages in thread
From: Geert Uytterhoeven @ 2014-08-29 13:26 UTC (permalink / raw)
  To: linux-sh

Use a table and the rmobile_add_devices_to_domains() helper function to
add all platform devices to their power domains at once, which is more
size-efficient than calling rmobile_add_device_to_domain() explicitly
for all devices individually.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 arch/arm/mach-shmobile/setup-r8a7740.c |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index daea3a344121..8894e1b7ab0e 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -745,6 +745,19 @@ static void r8a7740_i2c_workaround(struct platform_device *pdev)
 
 void __init r8a7740_add_standard_devices(void)
 {
+	static struct pm_domain_device domain_devices[] __initdata = {
+		{ "A3SP", &scif0_device },
+		{ "A3SP", &scif1_device },
+		{ "A3SP", &scif2_device },
+		{ "A3SP", &scif3_device },
+		{ "A3SP", &scif4_device },
+		{ "A3SP", &scif5_device },
+		{ "A3SP", &scif6_device },
+		{ "A3SP", &scif7_device },
+		{ "A3SP", &scif8_device },
+		{ "A3SP", &i2c1_device },
+	};
+
 	/* I2C work-around */
 	r8a7740_i2c_workaround(&i2c0_device);
 	r8a7740_i2c_workaround(&i2c1_device);
@@ -758,17 +771,8 @@ void __init r8a7740_add_standard_devices(void)
 			     ARRAY_SIZE(r8a7740_late_devices));
 
 	/* add devices to PM domain  */
-
-	rmobile_add_device_to_domain("A3SP",	&scif0_device);
-	rmobile_add_device_to_domain("A3SP",	&scif1_device);
-	rmobile_add_device_to_domain("A3SP",	&scif2_device);
-	rmobile_add_device_to_domain("A3SP",	&scif3_device);
-	rmobile_add_device_to_domain("A3SP",	&scif4_device);
-	rmobile_add_device_to_domain("A3SP",	&scif5_device);
-	rmobile_add_device_to_domain("A3SP",	&scif6_device);
-	rmobile_add_device_to_domain("A3SP",	&scif7_device);
-	rmobile_add_device_to_domain("A3SP",	&scif8_device);
-	rmobile_add_device_to_domain("A3SP",	&i2c1_device);
+	rmobile_add_devices_to_domains(domain_devices,
+				       ARRAY_SIZE(domain_devices));
 }
 
 void __init r8a7740_add_early_devices(void)
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-09-11  8:19 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-11  0:57 [GIT PULL] Renesas ARM Based SoC PM Cleanups for v3.18 Simon Horman
2014-09-11  0:57 ` Simon Horman
2014-09-11  0:57 ` [PATCH 1/5] ARM: shmobile: mackerel: Make domain_devices[] static __initdata Simon Horman
2014-09-11  0:57   ` Simon Horman
2014-09-11  0:57 ` [PATCH 2/5] ARM: shmobile: sh7372: " Simon Horman
2014-09-11  0:57   ` Simon Horman
2014-09-11  0:57 ` [PATCH 3/5] ARM: shmobile: r8a7740: Use rmobile_add_devices_to_domains() Simon Horman
2014-09-11  0:57   ` Simon Horman
2014-09-11  0:57 ` [PATCH 4/5] ARM: shmobile: r8a7740: Clean up pm domain table Simon Horman
2014-09-11  0:57   ` Simon Horman
2014-09-11  0:57 ` [PATCH 5/5] ARM: shmobile: armadillo800eva legacy: Use rmobile_add_devices_to_domains() Simon Horman
2014-09-11  0:57   ` Simon Horman
2014-09-11  8:19 ` [GIT PULL] Renesas ARM Based SoC PM Cleanups for v3.18 Arnd Bergmann
2014-09-11  8:19   ` Arnd Bergmann
  -- strict thread matches above, loose matches on Subject: below --
2014-08-29 13:26 [PATCH 3/5] ARM: shmobile: r8a7740: Use rmobile_add_devices_to_domains() Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.