Skip to contentSkip to conversation

bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

PATCH New Rob Clark 6 participants 7 messages Jun 13, 2017 – Jun 16, 2017 Arm Qualcomm mailing list

lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

---
 drivers/bus/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/Kconfig +0 -1
index 0a52da4..b83c535 100644
@@ -121,7 +121,6 @@ config QCOM_EBI2
 config SIMPLE_PM_BUS
 	bool "Simple Power-Managed Bus Driver"
 	depends on OF && PM
-	depends on ARCH_RENESAS || COMPILE_TEST
 	help
 	  Driver for transparent busses that don't need a real driver, but
 	  where the bus controller is part of a PM domain, or under the control
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

+cc Geert, Simon, linux-pm

Quoted 4 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

This is in line with Geert's previous comments on how to utilize simple-pm-bus to describe this hardware.

Regards,
Bjorn

Quoted 20 lines
---
 drivers/bus/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/Kconfig +0 -1
index 0a52da4..b83c535 100644
@@ -121,7 +121,6 @@ config QCOM_EBI2
 config SIMPLE_PM_BUS
 	bool "Simple Power-Managed Bus Driver"
 	depends on OF && PM
-	depends on ARCH_RENESAS || COMPILE_TEST
 	help
 	  Driver for transparent busses that don't need a real driver, but
 	  where the bus controller is part of a PM domain, or under the control
Signature · 1 line
2.9.4
#2 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

Quoted 9 lines · Bjorn Andersson

+cc Geert, Simon, linux-pm

Quoted 4 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

Quoted 4 lines

This is in line with Geert's previous comments on how to utilize simple-pm-bus to describe this hardware.

No objection here,

Quoted 25 lines

Regards,
Bjorn

Quoted 20 lines
---
 drivers/bus/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/Kconfig +0 -1
index 0a52da4..b83c535 100644
@@ -121,7 +121,6 @@ config QCOM_EBI2
 config SIMPLE_PM_BUS
 	bool "Simple Power-Managed Bus Driver"
 	depends on OF && PM
-	depends on ARCH_RENESAS || COMPILE_TEST
 	help
 	  Driver for transparent busses that don't need a real driver, but
 	  where the bus controller is part of a PM domain, or under the control
Signature · 1 line
2.9.4
#3 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

In reply to Rob Clark

Hi Rob,

Quoted 3 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

At that time, Renesas SoCs were the only users of it.

Actually at that time I wanted the functionality of simpe-pm-bus to be included in simple-bus, but the DT maintainers didn't see the merits of that.

Quoted 1 line

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

In reply to Rob Clark
Quoted 14 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

---
 drivers/bus/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/bus/Kconfig +0 -0
index 0a52da4..b83c535 100644

drivers/bus/Kconfig config QCOM_EBI2 · line 124

Quoted 4 lines
drivers/bus/Kconfig +0 -1
@@ -121,7 +121,6 @@ config QCOM_EBI2
 config SIMPLE_PM_BUS
 	bool "Simple Power-Managed Bus Driver"
 	depends on OF && PM
-	depends on ARCH_RENESAS || COMPILE_TEST

Do you really want to drop COMPILE_TEST?

#5 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

Hi Andy,

Quoted 10 lines · Andy Gross
Quoted 9 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

---
 drivers/bus/Kconfig | 1 -
 1 file changed, 1 deletion(-)
Quoted 11 lines

drivers/bus/Kconfig config QCOM_EBI2 · line 124

Quoted 9 lines
drivers/bus/Kconfig +0 -1
index 0a52da4..b83c535 100644
@@ -121,7 +121,6 @@ config QCOM_EBI2
 config SIMPLE_PM_BUS
      bool "Simple Power-Managed Bus Driver"
      depends on OF && PM
-     depends on ARCH_RENESAS || COMPILE_TEST

Do you really want to drop COMPILE_TEST?

As dummies are available for all pm_*() and of_*() used by simple-pm-bus.c, I think the COMPILE_TEST can be moved one line up, i.e.

    depends on (OF && PM) || COMPILE_TEST

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#6 lore raw

PATCH 1/1 bus: SIMPLE_PM_BUS does not depend on ARCH_RENESAS

In reply to Rob Clark
Quoted 6 lines · Rob Clark

In fact, it is needed for PCI to work on msm8996 (and probably other things). No idea why it was depending on renesas but that doesn't make any sense. So drop the dependency.

---

I also couldn't find a reason why this was strictly limited, but it in the device
tree sources we ship in the kernel, it is so far only used for Renesas machines, so it's not currently a bug either.