Skip to content
/ linux Public

Commit a4345ac

Browse files
Sebastian Andrzej SiewiorSasha Levin
authored andcommitted
char: tpm: cr50: Remove IRQF_ONESHOT
[ Upstream commit 1affd29 ] Passing IRQF_ONESHOT ensures that the interrupt source is masked until the secondary (threaded) handler is done. If only a primary handler is used then the flag makes no sense because the interrupt can not fire (again) while its handler is running. The flag also prevents force-threading of the primary handler and the irq-core will warn about this. Remove IRQF_ONESHOT from irqflags. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org> Link: https://patch.msgid.link/20260128095540.863589-10-bigeasy@linutronix.de Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 3e656f7 commit a4345ac

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/char/tpm/tpm_tis_i2c_cr50.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,7 @@ static int tpm_cr50_i2c_probe(struct i2c_client *client)
713713

714714
if (client->irq > 0) {
715715
rc = devm_request_irq(dev, client->irq, tpm_cr50_i2c_int_handler,
716-
IRQF_TRIGGER_FALLING | IRQF_ONESHOT |
717-
IRQF_NO_AUTOEN,
716+
IRQF_TRIGGER_FALLING | IRQF_NO_AUTOEN,
718717
dev->driver->name, chip);
719718
if (rc < 0) {
720719
dev_err(dev, "Failed to probe IRQ %d\n", client->irq);

drivers/char/tpm/tpm_tis_spi_cr50.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ int cr50_spi_probe(struct spi_device *spi)
287287
if (spi->irq > 0) {
288288
ret = devm_request_irq(&spi->dev, spi->irq,
289289
cr50_spi_irq_handler,
290-
IRQF_TRIGGER_RISING | IRQF_ONESHOT,
290+
IRQF_TRIGGER_RISING,
291291
"cr50_spi", cr50_phy);
292292
if (ret < 0) {
293293
if (ret == -EPROBE_DEFER)

0 commit comments

Comments
 (0)