freebsd-skq/sys/arm/samsung/exynos
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
..
chrome_ec_spi.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
chrome_ec.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
chrome_ec.h
chrome_kb.c Correct syntax errors that only show up when compiled with INVARIANTS. 2016-07-09 18:43:15 +00:00
chrome_kb.h
exynos5_combiner.c Add support for exynos5_ehci in loader 2015-11-27 18:22:04 +00:00
exynos5_combiner.h
exynos5_common.c Restrict where we need to define fdt_fixup_table to just PowerPC and 2016-09-23 14:11:23 +00:00
exynos5_common.h
exynos5_ehci.c Add support for exynos5_ehci in loader 2015-11-27 18:22:04 +00:00
exynos5_fimd.c
exynos5_i2c.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
exynos5_machdep.c Remove bus_dma_get_range and bus_dma_get_range_nb on armv6. We only need 2016-09-23 12:38:05 +00:00
exynos5_mct.c Remove unnecessary inclusion of FDT headers. 2014-08-08 06:30:17 +00:00
exynos5_mp.c ARM: SEV/WFE instructions are implemented starting from ARMv6K, 2016-10-06 13:18:18 +00:00
exynos5_pad.c Cleanup unnecessary semicolons from the kernel. 2016-04-10 23:07:00 +00:00
exynos5_pad.h
exynos5_pmu.c Remove unnecessary inclusion of FDT headers. 2014-08-08 06:30:17 +00:00
exynos5_pmu.h
exynos5_spi.c Remove unnecessary inclusion of FDT headers. 2014-08-08 06:30:17 +00:00
exynos5_usb_phy.c sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
exynos5_xhci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
exynos_uart.c Add support for the uart classes to set their default register shift value. 2015-04-11 17:16:23 +00:00
exynos_uart.h
files.exynos5 Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
std.exynos5250 Split CPU_CORTEXA into CPU_CORTEXA8, for the Cortex-A8, and CPU_CORTEXA_MP, 2016-10-04 12:25:44 +00:00
std.exynos5420 Split CPU_CORTEXA into CPU_CORTEXA8, for the Cortex-A8, and CPU_CORTEXA_MP, 2016-10-04 12:25:44 +00:00