File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2077,11 +2077,22 @@ static void acpi_scan_init_hotplug(struct acpi_device *adev)
2077
2077
}
2078
2078
}
2079
2079
2080
+ u32 __weak arch_acpi_add_auto_dep (acpi_handle handle ) { return 0 ; }
2081
+
2080
2082
static u32 acpi_scan_check_dep (acpi_handle handle )
2081
2083
{
2082
2084
struct acpi_handle_list dep_devices ;
2083
2085
u32 count = 0 ;
2084
2086
2087
+ /*
2088
+ * Some architectures like RISC-V need to add dependencies for
2089
+ * all devices which use GSI to the interrupt controller so that
2090
+ * interrupt controller is probed before any of those devices.
2091
+ * Instead of mandating _DEP on all the devices, detect the
2092
+ * dependency and add automatically.
2093
+ */
2094
+ count += arch_acpi_add_auto_dep (handle );
2095
+
2085
2096
/*
2086
2097
* Check for _HID here to avoid deferring the enumeration of:
2087
2098
* 1. PCI devices.
Original file line number Diff line number Diff line change @@ -994,6 +994,7 @@ static inline void acpi_put_acpi_dev(struct acpi_device *adev)
994
994
int acpi_wait_for_acpi_ipmi (void );
995
995
996
996
int acpi_scan_add_dep (acpi_handle handle , struct acpi_handle_list * dep_devices );
997
+ u32 arch_acpi_add_auto_dep (acpi_handle handle );
997
998
#else /* CONFIG_ACPI */
998
999
999
1000
static inline int register_acpi_bus_type (void * bus ) { return 0 ; }
You can’t perform that action at this time.
0 commit comments