* [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240
@ 2024-10-14 11:25 Niklas Schnelle
2024-10-14 13:46 ` Guenter Roeck
2024-10-28 10:21 ` Arnd Bergmann
0 siblings, 2 replies; 3+ messages in thread
From: Niklas Schnelle @ 2024-10-14 11:25 UTC (permalink / raw)
To: Wim Van Sebroeck, Guenter Roeck, Arnd Bergmann
Cc: linux-watchdog, linux-kernel, Niklas Schnelle
Both drivers use I/O port accesses without declaring a dependency on
CONFIG_HAS_IOPORT. For sbc8360_wdt this causes a compile error on UML
once inb()/outb() helpers become conditional.
For sbc7240_wdt this causes no such errors with UML because this driver
depends on both x86_32 and !UML. Nevertheless add HAS_IOPORT as
a dependency for both drivers to be explicit and drop the !UML
dependency for sbc7240_wdt as it is now redundant since UML implies no
HAS_IOPORT.
Fixes: 52df67b6b313 ("watchdog: add HAS_IOPORT dependencies")
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
---
drivers/watchdog/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index 684b9fe84fff5b08a35693aefa57db135196b909..94c96bcfefe34778588febba935664158840aae7 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -1509,7 +1509,7 @@ config 60XX_WDT
config SBC8360_WDT
tristate "SBC8360 Watchdog Timer"
- depends on X86_32
+ depends on X86_32 && HAS_IOPORT
help
This is the driver for the hardware watchdog on the SBC8360 Single
@@ -1522,7 +1522,7 @@ config SBC8360_WDT
config SBC7240_WDT
tristate "SBC Nano 7240 Watchdog Timer"
- depends on X86_32 && !UML
+ depends on X86_32 && HAS_IOPORT
help
This is the driver for the hardware watchdog found on the IEI
single board computers EPIC Nano 7240 (and likely others). This
---
base-commit: 8e929cb546ee42c9a61d24fae60605e9e3192354
change-id: 20241014-watchdog_sbc_ioport-db203694de46
Best regards,
--
Niklas Schnelle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240
2024-10-14 11:25 [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240 Niklas Schnelle
@ 2024-10-14 13:46 ` Guenter Roeck
2024-10-28 10:21 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2024-10-14 13:46 UTC (permalink / raw)
To: Niklas Schnelle, Wim Van Sebroeck, Arnd Bergmann
Cc: linux-watchdog, linux-kernel
On 10/14/24 04:25, Niklas Schnelle wrote:
> Both drivers use I/O port accesses without declaring a dependency on
> CONFIG_HAS_IOPORT. For sbc8360_wdt this causes a compile error on UML
> once inb()/outb() helpers become conditional.
>
> For sbc7240_wdt this causes no such errors with UML because this driver
> depends on both x86_32 and !UML. Nevertheless add HAS_IOPORT as
> a dependency for both drivers to be explicit and drop the !UML
> dependency for sbc7240_wdt as it is now redundant since UML implies no
> HAS_IOPORT.
>
> Fixes: 52df67b6b313 ("watchdog: add HAS_IOPORT dependencies")
> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240
2024-10-14 11:25 [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240 Niklas Schnelle
2024-10-14 13:46 ` Guenter Roeck
@ 2024-10-28 10:21 ` Arnd Bergmann
1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2024-10-28 10:21 UTC (permalink / raw)
To: Niklas Schnelle, Wim Van Sebroeck, Guenter Roeck
Cc: linux-watchdog, linux-kernel
On Mon, Oct 14, 2024, at 11:25, Niklas Schnelle wrote:
> Both drivers use I/O port accesses without declaring a dependency on
> CONFIG_HAS_IOPORT. For sbc8360_wdt this causes a compile error on UML
> once inb()/outb() helpers become conditional.
>
> For sbc7240_wdt this causes no such errors with UML because this driver
> depends on both x86_32 and !UML. Nevertheless add HAS_IOPORT as
> a dependency for both drivers to be explicit and drop the !UML
> dependency for sbc7240_wdt as it is now redundant since UML implies no
> HAS_IOPORT.
>
> Fixes: 52df67b6b313 ("watchdog: add HAS_IOPORT dependencies")
> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
I applied this to the asm-generic tree as well now, seeing that
it was not part of the HAS_IOPORT series but is required for UML.
Arnd
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-28 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 11:25 [PATCH] watchdog: Add HAS_IOPORT dependency for SBC8360 and SBC7240 Niklas Schnelle
2024-10-14 13:46 ` Guenter Roeck
2024-10-28 10:21 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®