freebsd-skq/sys/arm/xilinx
hselasky 0c88dabe9d 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
..
files.zynq7 Create device options for the two common ARM timers. 2015-11-21 16:23:56 +00:00
std.zynq7 Split CPU_CORTEXA into CPU_CORTEXA8, for the Cortex-A8, and CPU_CORTEXA_MP, 2016-10-04 12:25:44 +00:00
uart_dev_cdnc.c Move the uart_class definitions and fdt compat data into the individual 2015-03-07 15:24:15 +00:00
zy7_devcfg.c Add sysctls to control PS-PL level shifters and FCLK settings. 2015-03-05 21:41:58 +00:00
zy7_ehci.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
zy7_gpio.c Implement GPIO_GET_BUS() method for all GPIO drivers. 2015-01-31 19:32:14 +00:00
zy7_l2cache.c
zy7_machdep.c Restrict where we need to define fdt_fixup_table to just PowerPC and 2016-09-23 14:11:23 +00:00
zy7_mp.c ARM: SEV/WFE instructions are implemented starting from ARMv6K, 2016-10-06 13:18:18 +00:00
zy7_reg.h Convert the Zynq SoC support to the new routines for static device mapping. 2014-04-30 14:38:13 +00:00
zy7_slcr.c sys/arm: Minor spelling fixes. 2016-05-04 15:48:59 +00:00
zy7_slcr.h Add sysctls to control PS-PL level shifters and FCLK settings. 2015-03-05 21:41:58 +00:00