diff options
| author | Ahmad Khalifa <ahmadkhalifa570@gmail.com> | 2025-03-31 15:13:30 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2025-04-21 16:28:14 +0000 |
| commit | 0fcd9be111dd44d12a09805791a5597567602f8e (patch) | |
| tree | 22d6114a2601fc13e97b385f2347f63698287435 /sys/dev | |
| parent | d6dc661c2a2d8ff543256695ed52cd4b82b663b9 (diff) | |
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/gpio/gpioaei.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/gpio/gpioaei.c b/sys/dev/gpio/gpioaei.c index 6cbb5f1bb7ed..ecae8ccaf2fa 100644 --- a/sys/dev/gpio/gpioaei.c +++ b/sys/dev/gpio/gpioaei.c @@ -120,8 +120,9 @@ gpio_aei_attach(device_t dev) device_printf(dev, "Cannot allocate an IRQ\n"); return (ENOTSUP); } - err = bus_setup_intr(dev, sc->intr_res, INTR_TYPE_MISC | INTR_MPSAFE, - NULL, gpio_aei_intr, sc, &sc->intr_cookie); + err = bus_setup_intr(dev, sc->intr_res, INTR_TYPE_MISC | INTR_MPSAFE | + INTR_EXCL | INTR_SLEEPABLE, NULL, gpio_aei_intr, sc, + &sc->intr_cookie); if (err != 0) { device_printf(dev, "Cannot set up IRQ\n"); bus_release_resource(dev, SYS_RES_IRQ, sc->intr_rid, |
