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
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
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
iicbus: Move twsi under a new controller subdirectoryThe folder is a mess so start moving stuff into sub-directories.Sponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https:/
iicbus: Move twsi under a new controller subdirectoryThe folder is a mess so start moving stuff into sub-directories.Sponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D41907