ACPI: Move AMBA bus scan handling into arm64 specific directory
Subsystems (2)
PATCH 1/1 ACPI: Move AMBA bus scan handling into arm64 specific directory
Commit fcea0ccf4fd7 ("ACPI: bus: Consolidate all arm specific initialisation into acpi_arm_init()") moved all of the ARM-specific initialization into acpi_arm_init(). However, acpi_amba.c being outside of drivers/acpi/arm64 got ignored and hence acpi_amba_init() was not moved into acpi_arm_init().
Move the AMBA platform bus support into arm64 specific folder and make acpi_amba_init() part of acpi_arm_init().
---
drivers/acpi/Makefile | 1 -
drivers/acpi/arm64/Makefile | 1 +
drivers/acpi/{acpi_amba.c => arm64/amba.c} | 2 +-
drivers/acpi/arm64/init.c | 2 ++
drivers/acpi/arm64/init.h | 1 +
drivers/acpi/internal.h | 5 -----
drivers/acpi/scan.c | 1 -
7 files changed, 5 insertions(+), 8 deletions(-)
rename drivers/acpi/{acpi_amba.c => arm64/amba.c} (99%)Hi Rafael and others,
While I was trying to just add drivers/acpi/acpi_amba.c under ACPI for ARM64 entry in the MAINTAINERS, I realised it could be moved as part of acpi_arm_init() which got completely missed last time. So I took that path instead of add the file in the entry explicitly.
This may have to wait until the coresight changes land or if those changes can be applied as git understands the file movement this can be applied.
Regards,
Sudeep
drivers/acpi/Makefile +0 -1
@@ -50,7 +50,6 @@ acpi-$(CONFIG_PCI) += acpi_lpss.o acpi-y += acpi_apd.o acpi-y += acpi_platform.o acpi-y += acpi_pnp.o -acpi-$(CONFIG_ARM_AMBA) += acpi_amba.o acpi-y += power.o acpi-y += event.o acpi-y += evged.o
drivers/acpi/arm64/Makefile +1 -0
@@ -3,4 +3,5 @@ obj-$(CONFIG_ACPI_AGDI) += agdi.o obj-$(CONFIG_ACPI_IORT) += iort.o obj-$(CONFIG_ACPI_GTDT) += gtdt.o obj-$(CONFIG_ACPI_APMT) += apmt.o +obj-$(CONFIG_ARM_AMBA) += amba.o obj-y += dma.o init.o
drivers/acpi/arm64/amba.c renamed from drivers/acpi/acpi_amba.c +1 -1
@@ -17,7 +17,7 @@#include <linux/kernel.h> #include <linux/module.h> -#include "internal.h" +#include "init.h" static const struct acpi_device_id amba_id_list[] = { {"ARMH0061" ,0 },/* PL061 GPIO Device */
drivers/acpi/arm64/init.c +2 -0
@@ -10,4 +10,6 @@ void __init acpi_arm_init(void)acpi_apmt_init ();if (IS_ENABLED (CONFIG_ACPI_IORT ))acpi_iort_init (); +if (IS_ENABLED (CONFIG_ARM_AMBA )) +acpi_amba_init (); }
drivers/acpi/arm64/init.h +1 -0
@@ -4,3 +4,4 @@void __init acpi_agdi_init (void );void __init acpi_apmt_init (void );void __init acpi_iort_init (void ); +void __init acpi_amba_init (void );
drivers/acpi/internal.h +0 -5
@@ -28,11 +28,6 @@ void acpi_processor_init(void);void acpi_platform_init (void );void acpi_pnp_init (void );void acpi_int340x_thermal_init (void ); -#ifdef CONFIG_ARM_AMBA -void acpi_amba_init (void ); -#else -static inline void acpi_amba_init (void ) {} -#endif int acpi_sysfs_init (void );void acpi_gpe_apply_masked_gpes (void );void acpi_container_init (void );
drivers/acpi/scan.c +0 -1
@@ -2615,7 +2615,6 @@ void __init acpi_scan_init(void)acpi_watchdog_init ();acpi_pnp_init ();acpi_int340x_thermal_init (); -acpi_amba_init ();acpi_init_lpit ();acpi_scan_add_handler (&generic_device_handler);
Signature · 1 line
2.41.0
Quoted 7 lines · Sudeep Holla
Commit
fcea0ccf4fd7("ACPI: bus: Consolidate all arm specific initialisation intoacpi_arm_init()") moved all of the ARM-specific initialization intoacpi_arm_init(). However,acpi_amba.cbeing outside ofdrivers/acpi/arm64got ignored and henceacpi_amba_init()was not moved intoacpi_arm_init().
Quoted 7 lines
Move the AMBA platform bus support into arm64 specific folder and make
acpi_amba_init()part ofacpi_arm_init().Cc Lorenzo Pieralisi <[email protected]>Cc Hanjun Guo <[email protected]>Cc Rafael J. Wysocki <[email protected]>Signed-off-by Sudeep Holla <[email protected]>
or please let me know if you want me to take care of this.
Quoted 113 lines
--- drivers/acpi/Makefile | 1 - drivers/acpi/arm64/Makefile | 1 + drivers/acpi/{acpi_amba.c => arm64/amba.c} | 2 +- drivers/acpi/arm64/init.c | 2 ++ drivers/acpi/arm64/init.h | 1 + drivers/acpi/internal.h | 5 ----- drivers/acpi/scan.c | 1 - 7 files changed, 5 insertions(+), 8 deletions(-) rename drivers/acpi/{acpi_amba.c => arm64/amba.c} (99%)Hi Rafael and others,
While I was trying to just add
drivers/acpi/acpi_amba.cunder ACPI for ARM64 entry in theMAINTAINERS, I realised it could be moved as part ofacpi_arm_init()which got completely missed last time. So I took that path instead of add the file in the entry explicitly.This may have to wait until the coresight changes land or if those changes can be applied as git understands the file movement this can be applied.
Regards,
Sudeepdrivers/acpi/Makefile +0
-1@@ -50,7 +50,6 @@ acpi-$(CONFIG_PCI) += acpi_lpss.o acpi-y += acpi_apd.o acpi-y += acpi_platform.o acpi-y += acpi_pnp.o -acpi-$(CONFIG_ARM_AMBA) += acpi_amba.o acpi-y += power.o acpi-y += event.o acpi-y += evged.odrivers/acpi/arm64/Makefile +1
-0@@ -3,4 +3,5 @@ obj-$(CONFIG_ACPI_AGDI) += agdi.o obj-$(CONFIG_ACPI_IORT) += iort.o obj-$(CONFIG_ACPI_GTDT) += gtdt.o obj-$(CONFIG_ACPI_APMT) += apmt.o +obj-$(CONFIG_ARM_AMBA) += amba.o obj-y += dma.o init.odrivers/acpi/arm64/amba.c renamed from drivers/acpi/acpi_amba.c +1
-1@@ -17,7 +17,7 @@#include <linux/kernel.h> #include <linux/module.h> -#include "internal.h" +#include "init.h" static const struct acpi_device_id amba_id_list[] = { {"ARMH0061" ,0 },/* PL061 GPIO Device */ drivers/acpi/arm64/init.c +2
-0@@ -10,4 +10,6 @@ void __init acpi_arm_init(void)acpi_apmt_init ();if (IS_ENABLED (CONFIG_ACPI_IORT ))acpi_iort_init (); +if (IS_ENABLED (CONFIG_ARM_AMBA )) +acpi_amba_init (); }drivers/acpi/arm64/init.h +1
-0@@ -4,3 +4,4 @@void __init acpi_agdi_init (void );void __init acpi_apmt_init (void );void __init acpi_iort_init (void ); +void __init acpi_amba_init (void );drivers/acpi/internal.h +0
-5@@ -28,11 +28,6 @@ void acpi_processor_init(void);void acpi_platform_init (void );void acpi_pnp_init (void );void acpi_int340x_thermal_init (void ); -#ifdef CONFIG_ARM_AMBA -void acpi_amba_init (void ); -#else -static inline void acpi_amba_init (void ) {} -#endif int acpi_sysfs_init (void );void acpi_gpe_apply_masked_gpes (void );void acpi_container_init (void );drivers/acpi/scan.c +0
-2@@ -2615,7 +2615,6 @@ void __init acpi_scan_init(void)acpi_watchdog_init ();acpi_pnp_init ();acpi_int340x_thermal_init (); -acpi_amba_init ();acpi_init_lpit ();acpi_scan_add_handler (&generic_device_handler); --2.41.0
Quoted 11 lines · Rafael J. Wysocki
Quoted 10 lines · Sudeep Holla
Commit
fcea0ccf4fd7("ACPI: bus: Consolidate all arm specific initialisation intoacpi_arm_init()") moved all of the ARM-specific initialization intoacpi_arm_init(). However,acpi_amba.cbeing outside ofdrivers/acpi/arm64got ignored and henceacpi_amba_init()was not moved intoacpi_arm_init().Move the AMBA platform bus support into arm64 specific folder and make
acpi_amba_init()part ofacpi_arm_init().
Quoted 9 lines
Quoted 4 lines
Cc Lorenzo Pieralisi <[email protected]>Cc Hanjun Guo <[email protected]>Cc Rafael J. Wysocki <[email protected]>Signed-off-by Sudeep Holla <[email protected]>or please let me know if you want me to take care of this.
Since all the change are in drivers/acpi, I prefer you take this. But for next merge window, the only issue I see is the conflict with the coresight change that triggered this work. But git should be able to manage that or I can check with Greg, I am fine either way. Let me know your opinion/preference.
Signature · 2 lines
Regards, Sudeep
Quoted 20 lines · Sudeep Holla
Quoted 18 lines · Rafael J. Wysocki
Quoted 7 lines · Sudeep Holla
Commit
fcea0ccf4fd7("ACPI: bus: Consolidate all arm specific initialisation intoacpi_arm_init()") moved all of the ARM-specific initialization intoacpi_arm_init(). However,acpi_amba.cbeing outside ofdrivers/acpi/arm64got ignored and henceacpi_amba_init()was not moved intoacpi_arm_init().Quoted 7 lines
Move the AMBA platform bus support into arm64 specific folder and make
acpi_amba_init()part ofacpi_arm_init().Cc Lorenzo Pieralisi <[email protected]>Cc Hanjun Guo <[email protected]>Cc Rafael J. Wysocki <[email protected]>Signed-off-by Sudeep Holla <[email protected]>
Quoted 8 lines
Quoted 2 lines
or please let me know if you want me to take care of this.
Since all the change are in
drivers/acpi, I prefer you take this. But for next merge window, the only issue I see is the conflict with the coresight change that triggered this work. But git should be able to manage that or I can check with Greg, I am fine either way. Let me know your opinion/preference.
Applied as 6.6 material, thanks!