Skip to contentSkip to conversation

HISI LPC: Add Kconfig MFD_CORE dependency

PATCH Superseded John Garry 2 participants 5 messages Apr 19, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

John Garry

author
#0 lore raw

PATCH 1/1 HISI LPC: Add Kconfig MFD_CORE dependency

For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this dependency, so add it.

Fixes e0aa1563f894 ("HISI LPC: Add ACPI support")
Reported-and-tested-by Tan Xiaojun <[email protected]>
drivers/bus/Kconfig +1 -0
index d1c0b60..6dc177b 100644
@@ -33,6 +33,7 @@ config HISILICON_LPC
 	bool "Support for ISA I/O space on HiSilicon Hip06/7"
 	depends on ARM64 && (ARCH_HISI || COMPILE_TEST)
 	select INDIRECT_PIO
+	select MFD_CORE if ACPI
 	help
 	  Driver to enable I/O access to devices attached to the Low Pin
 	  Count bus on the HiSilicon Hip06/7 SoC.
Signature · 1 line
1.9.1
#1 lore raw
Quoted 9 lines · John Garry

For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this dependency, so add it.

Fixes e0aa1563f894 ("HISI LPC: Add ACPI support")
Reported-and-tested-by Tan Xiaojun <[email protected]>

Can you explain the specific dependency? Normally MFD_CORE gets selected by an MFD driver but not other drivers.

Arnd

author
#2 lore raw
Quoted 7 lines · Arnd Bergmann
Quoted 6 lines · John Garry

For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this dependency, so add it.

Quoted 7 lines
Quoted 3 lines
Fixes e0aa1563f894 ("HISI LPC: Add ACPI support")
Reported-and-tested-by Tan Xiaojun <[email protected]>

Can you explain the specific dependency? Normally MFD_CORE gets selected by an MFD driver but not other drivers.

For each device on the LPC bus we create an MFD.

The reason we do this is that we need to set the resources of the derived MFD, as we should not modify the original ACPI device created in ACPI scan. Details are in the log for e0aa1563f894.

Shall I update commit message updated with this info? Or were you just interested in the motivation for using MFD?

Thanks,
John

Quoted 4 lines

Arnd

.

#3 lore raw
Quoted 19 lines · John Garry
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · John Garry

For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this dependency, so add it.

Quoted 8 lines
Quoted 3 lines
Fixes e0aa1563f894 ("HISI LPC: Add ACPI support")
Reported-and-tested-by Tan Xiaojun <[email protected]>

Can you explain the specific dependency? Normally MFD_CORE gets selected by an MFD driver but not other drivers.

Quoted 8 lines

For each device on the LPC bus we create an MFD.

The reason we do this is that we need to set the resources of the derived MFD, as we should not modify the original ACPI device created in ACPI scan. Details are in the log for e0aa1563f894.

Shall I update commit message updated with this info? Or were you just interested in the motivation for using MFD?

I think it would be good to update the description. I had missed the part where an LPC device becomes a platform_device through an mfd_cell rather than becoming a device with bus_type=&isa_bus_type as I think was the case in earlier versions of your patch series.

Arnd

author
#4 lore raw
Quoted 26 lines · Arnd Bergmann
Quoted 25 lines · John Garry
Quoted 9 lines · Arnd Bergmann
Quoted 7 lines · John Garry

For ACPI support of the HiSilicon LPC driver we depend on MFD_CORE config.

Currently the HiSi LPC Kconfig entry does not define this dependency, so add it.

Quoted 8 lines
Quoted 3 lines
Fixes e0aa1563f894 ("HISI LPC: Add ACPI support")
Reported-and-tested-by Tan Xiaojun <[email protected]>

Can you explain the specific dependency? Normally MFD_CORE gets selected by an MFD driver but not other drivers.

For each device on the LPC bus we create an MFD.

The reason we do this is that we need to set the resources of the derived MFD, as we should not modify the original ACPI device created in ACPI scan. Details are in the log for e0aa1563f894.

Quoted 8 lines
Quoted 2 lines

Shall I update commit message updated with this info? Or were you just interested in the motivation for using MFD?

I think it would be good to update the description. I had missed the part where an LPC device becomes a platform_device through an mfd_cell rather than becoming a device with bus_type=&isa_bus_type as I think was the case in earlier versions of your patch series.

OK, fine. FYI, this was originally discussed here: https://lkml.org/lkml/2017/6/13/602

BTW, as for merging patches for this driver, it would seem the right place for it to go through arm/soc tree (obviously depending on dependencies). Since xuwei is away this week, could you kindly pick up v2 for fixes?

Thanks,
John

Quoted 4 lines

Arnd

.