--- - branch: MAIN date: Tue Mar 29 09:08:44 UTC 2022 files: - new: '1.17' old: '1.16' path: src/sys/dev/usb/emdtv.c pathrev: src/sys/dev/usb/emdtv.c@1.17 type: modified - new: '1.17' old: '1.16' path: src/sys/dev/usb/emdtv_dtv.c pathrev: src/sys/dev/usb/emdtv_dtv.c@1.17 type: modified - new: '1.5' old: '1.4' path: src/sys/dev/usb/emdtv_ir.c pathrev: src/sys/dev/usb/emdtv_ir.c@1.5 type: modified id: 20220329T090844Z.49f89cbe4983106840755f8afd3438ea5aea6cf7 log: | emdtv(4): Fix issues in detach. - Use config_detach_children, and do it up front, and handle failure (not relevant for yanking usb but relevant for drvctl which doesn't pass DETACH_FORCE). - Fix teardown order: stop interrupts so we stop issuing new work, and _then_ wait for pending work to drain and destroy the workqueue. - Omit needless empty mutex_enter(lock); mutex_exit(lock) dance which probably only appeared necessary because of the wrong teardown order. module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1648544924' user: riastradh