]> git.ipfire.org Git - thirdparty/linux.git/commit
mfd: tps65010: Use IRQF_NO_AUTOEN flag in request_irq() to fix race
authorJinjie Ruan <ruanjinjie@huawei.com>
Thu, 12 Sep 2024 03:15:30 +0000 (11:15 +0800)
committerLee Jones <lee@kernel.org>
Wed, 16 Oct 2024 08:04:09 +0000 (09:04 +0100)
commit2174f9a8c9db50f74df769edd5a4ab822c73b6d2
treefa654f088d7e866517b9799ff42532ccf47abba7
parent09c07c3f2a266a4491bd9eb3c9823bc310f61daf
mfd: tps65010: Use IRQF_NO_AUTOEN flag in request_irq() to fix race

As the comment said, disable_irq() after request_irq() still has a
time gap in which interrupts can come. request_irq() with IRQF_NO_AUTOEN
flag will disable IRQ auto-enable when request IRQ.

Fixes: 72cd799544f2 ("[PATCH] I2C: add i2c driver for TPS6501x")
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20240912031530.2211654-1-ruanjinjie@huawei.com
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/tps65010.c