1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00
freebsd/sys/arm/nvidia
John Baldwin d412c07617 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
2024-11-04 20:30:33 -05:00
..
drm2 Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
tegra124 phy: Move phy code in dev/phy 2024-01-10 19:20:34 +01:00
as3722_gpio.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
as3722_regulators.c regulator: Move regulator code in dev/regulator 2024-01-10 19:20:32 +01:00
as3722_rtc.c sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
as3722.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
as3722.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tegra_abpmisc.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
tegra_ahci.c arm: Convert drivers to use device_set_desc(f)() 2024-06-02 19:38:40 -04:00
tegra_efuse.c Check for errors when detaching children first, not last 2024-11-04 20:30:33 -05:00
tegra_efuse.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
tegra_ehci.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -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 2024-11-04 20:30:33 -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 2024-11-04 20:30:33 -05:00
tegra_pcie.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -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 2024-11-04 20:30:33 -05:00
tegra_sdhci.c hwreset: Move reset code in dev/hwreset 2024-01-10 19:20:28 +01:00
tegra_soctherm_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
tegra_soctherm.c hwreset: Move reset code in dev/hwreset 2024-01-10 19:20:28 +01:00
tegra_uart.c uart(4): Honor hardware state of NS8250-class for tsw_busy 2024-01-14 08:03:59 +01:00
tegra_usbphy.c phy: Move phy code in dev/phy 2024-01-10 19:20:34 +01:00
tegra_xhci.c newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANY 2024-07-24 22:22:58 -06:00