freebsd-nq/sys/mips/atheros
Hans Petter Selasky d3bf5efc1f Fix device delete child function.
When detaching device trees parent devices must be detached prior to
detaching its children. This is because parent devices can have
pointers to the child devices in their softcs which are not
invalidated by device_delete_child(). This can cause use after free
issues and panic().

Device drivers implementing trees, must ensure its detach function
detaches or deletes all its children before returning.

While at it remove now redundant device_detach() calls before
device_delete_child() and device_delete_children(), mostly in
the USB controller drivers.

Tested by:		Jan Henrik Sylvester <me@janh.de>
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D8070
MFC after:		2 weeks
2016-10-17 10:20:38 +00:00
..
ar531x [ar531x] add initial port for the AR231x/531x series of SoCs. 2016-10-04 16:27:36 +00:00
apb.c Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
apbvar.h
ar71xx_bus_space_reversed.c
ar71xx_bus_space_reversed.h
ar71xx_chip.c Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
ar71xx_chip.h
ar71xx_cpudef.h Reshuffle all of the DDR flush operations into a single switch/mux, 2015-07-04 03:05:57 +00:00
ar71xx_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ar71xx_fixup.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
ar71xx_fixup.h
ar71xx_gpio.c [ar71xx_gpio] handle AR934x and QCA953x GPIO OE polarity. 2016-07-31 06:51:34 +00:00
ar71xx_gpiovar.h
ar71xx_macaddr.c Begin moving support for board MAC addresses over to being explicitly defined. 2015-03-28 23:40:29 +00:00
ar71xx_macaddr.h Begin moving support for board MAC addresses over to being explicitly defined. 2015-03-28 23:40:29 +00:00
ar71xx_machdep.c Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
ar71xx_ohci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
ar71xx_pci_bus_space.c
ar71xx_pci_bus_space.h
ar71xx_pci.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
ar71xx_setup.c Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros. 2015-11-16 04:28:00 +00:00
ar71xx_setup.h Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros. 2015-11-16 04:28:00 +00:00
ar71xx_spi.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
ar71xx_wdog.c
ar71xxreg.h
ar91xx_chip.c Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
ar91xx_chip.h
ar91xxreg.h
ar724x_chip.c Replace mips/sentry5 with mips/broadcom 2016-06-25 04:34:54 +00:00
ar724x_chip.h
ar724x_pci.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
ar724xreg.h
ar933x_chip.c Reshuffle all of the DDR flush operations into a single switch/mux, 2015-07-04 03:05:57 +00:00
ar933x_chip.h
ar933x_uart.h
ar933xreg.h
ar934x_chip.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
ar934x_chip.h
ar934x_nfcreg.h
ar934xreg.h
files.ar71xx Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros. 2015-11-16 04:28:00 +00:00
if_arge.c [arge] add some extra MDIO debugging support 2016-08-05 17:16:35 +00:00
if_argevar.h arge: fix barrier macro. 2015-10-30 23:57:20 +00:00
pcf2123_rtc.c
pcf2123reg.h
qca953x_chip.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
qca953x_chip.h Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros. 2015-11-16 04:28:00 +00:00
qca953xreg.h Add initial support for the QCA953x ("Honeybee") from Qualcomm Atheros. 2015-11-16 04:28:00 +00:00
qca955x_chip.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
qca955x_chip.h
qca955x_pci.c As <machine/pmap.h> is included from <vm/pmap.h>, there is no need to 2016-02-22 09:02:20 +00:00
qca955xreg.h Oops - fix typo. 2015-07-03 07:00:24 +00:00
std.ar71xx
uart_bus_ar71xx.c
uart_bus_ar933x.c
uart_cpu_ar71xx.c
uart_cpu_ar933x.c
uart_dev_ar933x.c Add support for the uart classes to set their default register shift value. 2015-04-11 17:16:23 +00:00
uart_dev_ar933x.h