]> git.ipfire.org Git - thirdparty/linux.git/commit
i2c: designware: Disable SMBus interrupts to prevent storms from mis-configured firmware
authorJinhui Guo <guojinhui.liam@bytedance.com>
Tue, 21 Oct 2025 07:57:14 +0000 (15:57 +0800)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 27 Oct 2025 13:17:15 +0000 (14:17 +0100)
commitd3429178ee51dd7155445d15a5ab87a45fae3c73
tree6df7ea0a5f6c9c2861089d37f73a8faa8cbb0149
parent3f124b4ef8d8a8e8cbf94672fb4ce5bf498b3ed1
i2c: designware: Disable SMBus interrupts to prevent storms from mis-configured firmware

When probing the I2C master, disable SMBus interrupts to prevent
storms caused by broken firmware mis-configuring IC_SMBUS=1; the
handler never services them and a mis-configured SMBUS Master
extend-clock timeout or SMBUS Slave extend-clock timeout can
flood the CPU.

Signed-off-by: Jinhui Guo <guojinhui.liam@bytedance.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20251021075714.3712-2-guojinhui.liam@bytedance.com
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-master.c