]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:00 +0000 (19:51 +0100)
commitcac4995c03fee86fb005b7a9e7d4baeda33b6ce2
tree765d7ee0b0ebf94ad73276272fbddb6f201b46f4
parentaf36ccb8f82d5b510082ac94a499cb8242a0c080
mfd: tps65010: Use IRQF_NO_AUTOEN flag in request_irq() to fix race

[ Upstream commit 2174f9a8c9db50f74df769edd5a4ab822c73b6d2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/tps65010.c