bus_generic_detach: Delete children after detaching themThis provides better semantics as a standalone DEVMETHOD fordevice_attach as bus drivers should remove child devices they createdas part of
bus_generic_detach: Delete children after detaching themThis provides better semantics as a standalone DEVMETHOD fordevice_attach as bus drivers should remove child devices they createdas part of detach cleanup. The implementation callsbus_detach_children() first to permit child devices an opportunity toveto the detach operation. If that succeeds, device_delete_children()is used to delete the child devices.This requires fixing various drivers that were deleting devicesexplicitly (via a device_t pointer cached in the softc) after callingbus_generic_detach to stop doing that and just rely onbus_generic_detach to remove child devices.Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D47959
show more ...
Replace calls to bus_generic_attach with bus_attach_childrenReviewed by: impDifferential Revision: https://reviews.freebsd.org/D47675
newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYSponsored by: Netflix
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: impSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43192
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: mhorneSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43191
spibus: Move allwinner driver into the common directoryNo need to keep it under sys/arm/allwinnerIt's easier to find which controller we support by looking under one directory.Sponsored by: Be
spibus: Move allwinner driver into the common directoryNo need to keep it under sys/arm/allwinnerIt's easier to find which controller we support by looking under one directory.Sponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43185