aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2016-09-08 06:32:31 -0400
committerIngo Molnar <mingo@kernel.org>2016-09-08 08:07:53 -0400
commit8e522e1d321b12829960c9b26668c92f14c68d7f (patch)
tree8774a3d995d9eba39c40e7ab299c85a1a8908e46
parentf5fbf848303c8704d0e1a1e7cabd08fd0a49552f (diff)
x86/platform/intel-mid: Add Intel Penwell to ID table
Commit: ca22312dc840 ("x86/platform/intel-mid: Extend PWRMU to support Penwell") ... enabled the PWRMU driver on platforms based on Intel Penwell, but unfortunately this is not enough. Add Intel Penwell ID to pci-mid.c driver as well. To avoid confusion in the future add a comment to both drivers. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Fixes: ca22312dc840 ("x86/platform/intel-mid: Extend PWRMU to support Penwell") Link: http://lkml.kernel.org/r/20160908103232.137587-1-andriy.shevchenko@linux.intel.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/platform/intel-mid/pwr.c1
-rw-r--r--drivers/pci/pci-mid.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/platform/intel-mid/pwr.c b/arch/x86/platform/intel-mid/pwr.c
index 2dfe998a5afd..146ed54e92e5 100644
--- a/arch/x86/platform/intel-mid/pwr.c
+++ b/arch/x86/platform/intel-mid/pwr.c
@@ -427,6 +427,7 @@ static const struct mid_pwr_device_info mid_info = {
427 .set_initial_state = mid_set_initial_state, 427 .set_initial_state = mid_set_initial_state,
428}; 428};
429 429
430/* This table should be in sync with the one in drivers/pci/pci-mid.c */
430static const struct pci_device_id mid_pwr_pci_ids[] = { 431static const struct pci_device_id mid_pwr_pci_ids[] = {
431 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_PENWELL), (kernel_ulong_t)&mid_info }, 432 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_PENWELL), (kernel_ulong_t)&mid_info },
432 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_TANGIER), (kernel_ulong_t)&mid_info }, 433 { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_TANGIER), (kernel_ulong_t)&mid_info },
diff --git a/drivers/pci/pci-mid.c b/drivers/pci/pci-mid.c
index b7ea64f63149..55f453de562e 100644
--- a/drivers/pci/pci-mid.c
+++ b/drivers/pci/pci-mid.c
@@ -60,7 +60,12 @@ static struct pci_platform_pm_ops mid_pci_platform_pm = {
60 60
61#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, } 61#define ICPU(model) { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, }
62 62
63/*
64 * This table should be in sync with the one in
65 * arch/x86/platform/intel-mid/pwr.c.
66 */
63static const struct x86_cpu_id lpss_cpu_ids[] = { 67static const struct x86_cpu_id lpss_cpu_ids[] = {
68 ICPU(INTEL_FAM6_ATOM_PENWELL),
64 ICPU(INTEL_FAM6_ATOM_MERRIFIELD), 69 ICPU(INTEL_FAM6_ATOM_MERRIFIELD),
65 {} 70 {}
66}; 71};