OSDN Git Service

platform/x86: p2sb: Move out of X86_PLATFORM_DEVICES dependency
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 18 Jul 2022 14:53:28 +0000 (17:53 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 1 Aug 2022 14:26:38 +0000 (16:26 +0200)
The P2SB library is used for various drivers, including server
platforms. That's why the dependency on X86_PLATFORM_DEVICES
seems superfluous.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220718145328.14374-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/intel/Kconfig
drivers/platform/x86/intel/Makefile
drivers/platform/x86/p2sb.c [moved from drivers/platform/x86/intel/p2sb.c with 100% similarity]

index 6a33c86..f2f98e9 100644 (file)
@@ -1138,3 +1138,15 @@ config WINMATE_FM07_KEYS
          that delivers key events when these buttons are pressed.
 
 endif # X86_PLATFORM_DEVICES
+
+config P2SB
+       bool "Primary to Sideband (P2SB) bridge access support"
+       depends on PCI && X86
+       help
+         The Primary to Sideband (P2SB) bridge is an interface to some
+         PCI devices connected through it. In particular, SPI NOR controller
+         in Intel Apollo Lake SoC is one of such devices.
+
+         The main purpose of this library is to unhide P2SB device in case
+         firmware kept it hidden on some platforms in order to access devices
+         behind it.
index a0e417c..5a428ca 100644 (file)
@@ -119,6 +119,10 @@ obj-$(CONFIG_X86_ANDROID_TABLETS)  += x86-android-tablets.o
 # Intel uncore drivers
 obj-$(CONFIG_INTEL_IPS)                                += intel_ips.o
 
+# Intel miscellaneous drivers
+intel_p2sb-y                           := p2sb.o
+obj-$(CONFIG_P2SB)                     += intel_p2sb.o
+
 # Intel PMIC / PMC / P-Unit devices
 obj-$(CONFIG_INTEL_SCU_IPC)            += intel_scu_ipc.o
 obj-$(CONFIG_INTEL_SCU_PCI)            += intel_scu_pcidrv.o
index c9cfbaa..794968b 100644 (file)
@@ -70,18 +70,6 @@ config INTEL_OAKTRAIL
          enable/disable the Camera, WiFi, BT etc. devices. If in doubt, say Y
          here; it will only load on supported platforms.
 
-config P2SB
-       bool "Primary to Sideband (P2SB) bridge access support"
-       depends on PCI
-       help
-         The Primary to Sideband (P2SB) bridge is an interface to some
-         PCI devices connected through it. In particular, SPI NOR controller
-         in Intel Apollo Lake SoC is one of such devices.
-
-         The main purpose of this library is to unhide P2SB device in case
-         firmware kept it hidden on some platforms in order to access devices
-         behind it.
-
 config INTEL_BXTWC_PMIC_TMU
        tristate "Intel Broxton Whiskey Cove TMU Driver"
        depends on INTEL_SOC_PMIC_BXTWC
index 741a940..717933d 100644 (file)
@@ -28,8 +28,6 @@ intel_int0002_vgpio-y                 := int0002_vgpio.o
 obj-$(CONFIG_INTEL_INT0002_VGPIO)      += intel_int0002_vgpio.o
 intel_oaktrail-y                       := oaktrail.o
 obj-$(CONFIG_INTEL_OAKTRAIL)           += intel_oaktrail.o
-intel_p2sb-y                           := p2sb.o
-obj-$(CONFIG_P2SB)                     += intel_p2sb.o
 intel_sdsi-y                           := sdsi.o
 obj-$(CONFIG_INTEL_SDSI)               += intel_sdsi.o
 intel_vsec-y                           := vsec.o