opnsense-src/sys/dev/gpio
Ahmad Khalifa cc86794b03 gpiobus: plug IRQ leaks
Unmap the IRQ instead of just freeing the map data in the case of an
error. Also don't overwrite the resource's virtual address since the
copy of the map data made by intr_activate_irq is stored there.

Implement gpiobus_release_resource so it can unmap IRQs mapped by
gpio_alloc_intr_resource.

Reviewed by:	imp
Approved by:	imp (mentor)
Differential Revision:	https://reviews.freebsd.org/D51325
2025-07-17 03:33:52 +03:00
..
dwgpio Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
acpi_gpiobus.c acpi_gpiobus: don't print error message if _AEI object doesn't exist 2025-07-11 15:10:00 +03:00
acpi_gpiobusvar.h gpio: don't misuse pin->flags 2025-04-21 12:28:14 -04:00
bytgpio.c bytgpio: expose PNP info 2024-07-29 14:09:08 -06:00
chvgpio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
chvgpio_reg.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpio_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
gpioaei.c gpioaei: mark the AEI ithread as sleepable 2025-04-21 12:28:14 -04:00
gpiobacklight.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiobus.c gpiobus: plug IRQ leaks 2025-07-17 03:33:52 +03:00
gpiobus_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
gpiobus_internal.h gpio: hide internal gpiobus symbols 2025-07-04 23:24:31 +03:00
gpiobusvar.h gpio: hide internal gpiobus symbols 2025-07-04 23:24:31 +03:00
gpioc.c kern: Make fileops and filterops tables const where possible 2024-11-26 21:04:21 +00:00
gpioiic.c Use bus_detach_children instead of bus_generic_detach 2025-01-02 13:19:39 -05:00
gpiokeys.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiokeys.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
gpiokeys_codes.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
gpioled.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpioled_fdt.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
gpiomdio.c Remove bogus detach routines 2024-11-04 20:31:16 -05:00
gpiopower.c gpiopower: trigger low, high and both edges 2024-01-28 13:29:41 +02:00
gpiopps.c gpiopps: don't use internal gpiobus function 2025-07-04 23:24:31 +03:00
gpioregulator.c regulator: Move regulator code in dev/regulator 2024-01-10 19:20:32 +01:00
gpiospi.c Replace calls to bus_generic_attach with bus_attach_children 2024-12-06 17:26:16 -05:00
gpioths.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
ofw_gpiobus.c gpio: hide internal gpiobus symbols 2025-07-04 23:24:31 +03:00
pl061.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
pl061.h gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
pl061_acpi.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
pl061_fdt.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
qoriq_gpio.c gpio: attach gpiobus when the controller is ready 2025-07-04 16:56:00 +03:00
qoriq_gpio.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00