]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH
authorYingjie Gao <gaoyingjie@uniontech.com>
Thu, 2 Apr 2026 07:16:17 +0000 (15:16 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 3 May 2026 15:36:47 +0000 (08:36 -0700)
commit4f675f036cd5e9cfbe6df5f24f8338158af96a4b
tree3cda2b7c7be7c94ec78a94de0cbce2aa704559d9
parent066f6001fb58258269480547a920fc2812f37760
watchdog: sp5100_tco: Use EFCH MMIO for newer Hygon FCH

Commit 009637de1f65 ("watchdog: sp5100_tco: support Hygon FCH/SCH
(Server Controller Hub)") added Hygon vendor matching to the efch
layout selection, but newer Hygon 0x790b SMBus devices still need the
efch_mmio path.

The efch_mmio path enables EFCH_PM_DECODEEN_WDT_TMREN before probing the
watchdog MMIO block. If firmware leaves that bit clear and the driver
picks the legacy efch path instead, probe falls back to the alternate
window and fails with "Watchdog hardware is disabled".

Select efch_mmio for Hygon 0x790b devices with revision 0x51 or later,
matching the equivalent AMD behavior and allowing the watchdog to
initialize on those systems.

Fixes: 009637de1f65 ("watchdog: sp5100_tco: support Hygon FCH/SCH (Server Controller Hub)")
Signed-off-by: Yingjie Gao <gaoyingjie@uniontech.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20260402071617.634563-2-gaoyingjie@uniontech.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/sp5100_tco.c