diff mbox series

[v2,2/2] hwmon: OCC drivers are ARM-only

Message ID 20190410125635.5610857b@endymion (mailing list archive)
State Accepted
Headers show
Series [v2,1/2] hwmon: (occ) Move common code to a separate module | expand

Commit Message

Jean Delvare April 10, 2019, 10:56 a.m. UTC
These drivers are for a BMC inside PowerPC servers. The BMC runs on
ARM hardware, so only propose the drivers on this architecture, unless
build-testing.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Eddie James <eajames@linux.ibm.com>
Cc: Guenter Roeck <linux@roeck-us.net>
---
If PowerPC BMCs are ever based on another architecture and these drivers
are compatible with them, then the list can be extended.

 drivers/hwmon/occ/Kconfig |    2 ++
 1 file changed, 2 insertions(+)

Comments

Eddie James April 10, 2019, 6:03 p.m. UTC | #1
On 4/10/19 5:56 AM, Jean Delvare wrote:
> These drivers are for a BMC inside PowerPC servers. The BMC runs on
> ARM hardware, so only propose the drivers on this architecture, unless
> build-testing.


Thanks!

Reviewed-by: Eddie James <eajames@linux.ibm.com>


>
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
> Cc: Eddie James <eajames@linux.ibm.com>
> Cc: Guenter Roeck <linux@roeck-us.net>
> ---
> If PowerPC BMCs are ever based on another architecture and these drivers
> are compatible with them, then the list can be extended.
>
>   drivers/hwmon/occ/Kconfig |    2 ++
>   1 file changed, 2 insertions(+)
>
> --- linux-5.0.orig/drivers/hwmon/occ/Kconfig	2019-04-10 11:54:07.014895111 +0200
> +++ linux-5.0/drivers/hwmon/occ/Kconfig	2019-04-10 12:12:27.379725640 +0200
> @@ -5,6 +5,7 @@
>   config SENSORS_OCC_P8_I2C
>   	tristate "POWER8 OCC through I2C"
>   	depends on I2C
> +	depends on ARM || ARM64 || COMPILE_TEST
>   	select SENSORS_OCC
>   	help
>   	 This option enables support for monitoring sensors provided by the
> @@ -17,6 +18,7 @@ config SENSORS_OCC_P8_I2C
>   config SENSORS_OCC_P9_SBE
>   	tristate "POWER9 OCC through SBE"
>   	depends on FSI_OCC
> +	depends on ARM || ARM64 || COMPILE_TEST
>   	select SENSORS_OCC
>   	help
>   	 This option enables support for monitoring sensors provided by the
>
diff mbox series

Patch

--- linux-5.0.orig/drivers/hwmon/occ/Kconfig	2019-04-10 11:54:07.014895111 +0200
+++ linux-5.0/drivers/hwmon/occ/Kconfig	2019-04-10 12:12:27.379725640 +0200
@@ -5,6 +5,7 @@ 
 config SENSORS_OCC_P8_I2C
 	tristate "POWER8 OCC through I2C"
 	depends on I2C
+	depends on ARM || ARM64 || COMPILE_TEST
 	select SENSORS_OCC
 	help
 	 This option enables support for monitoring sensors provided by the
@@ -17,6 +18,7 @@  config SENSORS_OCC_P8_I2C
 config SENSORS_OCC_P9_SBE
 	tristate "POWER9 OCC through SBE"
 	depends on FSI_OCC
+	depends on ARM || ARM64 || COMPILE_TEST
 	select SENSORS_OCC
 	help
 	 This option enables support for monitoring sensors provided by the