--- - branch: MAIN date: Thu Mar 3 05:48:30 UTC 2022 files: - new: '1.57' old: '1.56' path: src/sys/dev/usb/usbnet.c pathrev: src/sys/dev/usb/usbnet.c@1.57 type: modified id: 20220303T054830Z.40e7856da02f3a7998877b4bfc5f13e9be3b8f87 log: | usbnet: Assert IFNET_LOCKED in usbnet_media_upd. This ensures, if the device is being initialized or stopped, usbnet_media_upd will not run until it's done, so the reset sequence has exclusive access to the device registers used by mii. module: src subject: 'CVS commit: src/sys/dev/usb' unixtime: '1646286510' user: riastradh