]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
usb: typec: fusb302: Switch to threaded IRQ handler
authorAlexey Charkov <alchark@flipper.net>
Tue, 17 Mar 2026 16:30:15 +0000 (20:30 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Apr 2026 11:30:46 +0000 (13:30 +0200)
commit 6b9db53197094f38a18797495df2e3c758ec51dc upstream.

FUSB302 fails to probe with -EINVAL if its interrupt line is connected via
an I2C GPIO expander, such as TI TCA6416.

Switch the interrupt handler to a threaded one, which also works behind
such GPIO expanders.

Cc: stable <stable@kernel.org>
Fixes: 309b6341d557 ("usb: typec: fusb302: Revert incorrect threaded irq fix")
Signed-off-by: Alexey Charkov <alchark@flipper.net>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogrerus@linux.intel.com>
Link: https://patch.msgid.link/20260317-fusb302-irq-v2-1-dbabd5c5c961@flipper.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/fusb302.c

index 19ff8217818e7ee0363bcbcc1f7706bd8e742f87..5b1f2750cfc3bbd626e2a97368d04163f9b3ad1a 100644 (file)
@@ -1755,8 +1755,9 @@ static int fusb302_probe(struct i2c_client *client)
                goto destroy_workqueue;
        }
 
-       ret = request_irq(chip->gpio_int_n_irq, fusb302_irq_intn,
-                         IRQF_TRIGGER_LOW, "fsc_interrupt_int_n", chip);
+       ret = request_threaded_irq(chip->gpio_int_n_irq, NULL, fusb302_irq_intn,
+                                  IRQF_ONESHOT | IRQF_TRIGGER_LOW,
+                                  "fsc_interrupt_int_n", chip);
        if (ret < 0) {
                dev_err(dev, "cannot request IRQ for GPIO Int_N, ret=%d", ret);
                goto tcpm_unregister_port;