[PATCH v1 2/6] misc: amd-sbi: Update SBTSI Kconfig to clarify this is BMC driver

Akshay Gupta posted 6 patches 1 week, 4 days ago
[PATCH v1 2/6] misc: amd-sbi: Update SBTSI Kconfig to clarify this is BMC driver
Posted by Akshay Gupta 1 week, 4 days ago
Add an architecture dependency to the SBTSI Kconfig
This limits enablement to supported targets

Also clarify in the help text that the SBTSI driver is
intended to run on the BMC, not on the managed host node.

Signed-off-by: Akshay Gupta <Akshay.Gupta@amd.com>
---
 drivers/misc/amd-sbi/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/misc/amd-sbi/Kconfig b/drivers/misc/amd-sbi/Kconfig
index e6a422b4a371..19a8d596e8f5 100644
--- a/drivers/misc/amd-sbi/Kconfig
+++ b/drivers/misc/amd-sbi/Kconfig
@@ -24,10 +24,12 @@ config AMD_SBRMI_HWMON
 config SENSORS_SBTSI
 	tristate "Emulated SB-TSI temperature sensor"
 	depends on I2C
+	depends on ARM || ARM64 || COMPILE_TEST
 	depends on HWMON
 	help
 	  If you say yes here you get support for emulated temperature
 	  sensors on AMD SoCs with SB-TSI interface connected to a BMC device.
+	  This driver is intended to run on the BMC, not the managed node.
 
 	  This driver can also be built as a module. If so, the module will
 	  be called sbtsi.
-- 
2.34.1