diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-01-17 12:34:08 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-01-19 03:15:42 -0500 |
commit | a912a7584ec39647fb032c1001eb69746f27b1d3 (patch) | |
tree | 0d0edb9df1358c071a02c0e0e4ef506b78b0a69f | |
parent | 1da2fd61d956a01ead87173a8367e5c664617f7b (diff) |
x86/platform/intel-mid: Move PCI initialization to arch_init()
ACPI redefines x86_init.pci.init when enabled. Though we still need special
treatment for MID platforms.
Move our specific callback to x86_init.pci.arch_init() and, by calling
acpi_noirq_set(), take back a control over IRQ assignment.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-acpi@vger.kernel.org
Link: http://lkml.kernel.org/r/20180117173409.88136-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/pci/intel_mid_pci.c | 1 | ||||
-rw-r--r-- | arch/x86/platform/intel-mid/intel-mid.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c index 511921045312..43867bc85368 100644 --- a/arch/x86/pci/intel_mid_pci.c +++ b/arch/x86/pci/intel_mid_pci.c | |||
@@ -300,6 +300,7 @@ int __init intel_mid_pci_init(void) | |||
300 | pci_root_ops = intel_mid_pci_ops; | 300 | pci_root_ops = intel_mid_pci_ops; |
301 | pci_soc_mode = 1; | 301 | pci_soc_mode = 1; |
302 | /* Continue with standard init */ | 302 | /* Continue with standard init */ |
303 | acpi_noirq_set(); | ||
303 | return 1; | 304 | return 1; |
304 | } | 305 | } |
305 | 306 | ||
diff --git a/arch/x86/platform/intel-mid/intel-mid.c b/arch/x86/platform/intel-mid/intel-mid.c index 86676cec99a1..2c67bae6bb53 100644 --- a/arch/x86/platform/intel-mid/intel-mid.c +++ b/arch/x86/platform/intel-mid/intel-mid.c | |||
@@ -194,7 +194,7 @@ void __init x86_intel_mid_early_setup(void) | |||
194 | x86_platform.calibrate_tsc = intel_mid_calibrate_tsc; | 194 | x86_platform.calibrate_tsc = intel_mid_calibrate_tsc; |
195 | x86_platform.get_nmi_reason = intel_mid_get_nmi_reason; | 195 | x86_platform.get_nmi_reason = intel_mid_get_nmi_reason; |
196 | 196 | ||
197 | x86_init.pci.init = intel_mid_pci_init; | 197 | x86_init.pci.arch_init = intel_mid_pci_init; |
198 | x86_init.pci.fixup_irqs = x86_init_noop; | 198 | x86_init.pci.fixup_irqs = x86_init_noop; |
199 | 199 | ||
200 | legacy_pic = &null_legacy_pic; | 200 | legacy_pic = &null_legacy_pic; |