--- - branch: MAIN date: Thu Mar 3 05:48:23 UTC 2022 files: - new: '1.56' old: '1.55' path: src/sys/dev/usb/usbnet.c pathrev: src/sys/dev/usb/usbnet.c@1.56 type: modified id: 20220303T054823Z.dd429da43c6f597a6897d5559a8b4e54accb6091 log: | usbnet: Fix ordering of actions in usbnet_stop. Make sure all software activity is quiescent (callouts and tasks, including ifmedia and mii callbacks -- anything that might trigger register access) before asking the driver to stop the hardware. This way, the driver uno_stop routine is guaranteed exclusive access to the registers. This will also enable us to simplify the callouts and tasks so they don't have to check the software state -- to be done in a separate commit. module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1646286503' user: riastradh