freebsd-nq/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 Add support for Chromebook2 -- next-generation 8-core 2014-08-01 06:20:25 +00:00
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 Use OF_getencprop() in preference to OF_getprop() and manual byte-swapping. 2014-08-08 06:29:30 +00:00
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 Add support for Chromebook2 -- next-generation 8-core 2014-08-01 06:20:25 +00:00
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 Rename exynos uart driver filenames. 2014-06-01 08:34:45 +00:00
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