opnsense-src/sys/arm/nvidia
John Baldwin 1ab14e185a Check for errors when detaching children first, not last
These detach routines in these drivers all ended with 'return
(bus_generic_detach())' meaning that if any child device failed to
detach, the parent driver was left in a mostly destroyed state, but
still marked attached.  Instead, bus drivers should detach child
drivers first and return errors before destroying driver state in the
parent.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D47387

(cherry picked from commit d412c07617eb35435668b024bc2cecda05f57f1f)
2025-02-27 10:17:49 -05:00
..
drm2 Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra124 arm: Add missing no-ctfconvert for fw_stub.awk target 2023-08-22 21:00:37 +01:00
as3722.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
as3722.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
as3722_gpio.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
as3722_regulators.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
as3722_rtc.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_abpmisc.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra_ahci.c arm: Convert drivers to use device_set_desc(f)() 2024-06-09 09:37:45 -04:00
tegra_efuse.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra_efuse.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tegra_ehci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_gpio.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_i2c.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra_lic.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_mc.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra_pcie.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_pinmux.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_pmc.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tegra_rtc.c Check for errors when detaching children first, not last 2025-02-27 10:17:49 -05:00
tegra_sdhci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_soctherm.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_soctherm_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
tegra_uart.c uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-18 21:14:46 +01:00
tegra_usbphy.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
tegra_xhci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00