HomeFreeBSD

ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver

Description

ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver

Previosuly, USB_IFACE_DRIVER_ACTIVE would report that the driver is
active even after it detached. That's because a device(9) still
remains.

So, add device_is_alive(9) check for more accurate reporting.

Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D43960

Details

Provenance
avgAuthored on Feb 19 2024, 10:44 AM
Reviewer
markj
Differential Revision
D43960: ugen: fix USB_IFACE_DRIVER_ACTIVE after detaching a driver
Parents
rGb7dce5b8e988: scsi_da: add 4K quirks for Samsung SSD 860 and 870
Branches
Unknown
Tags
Unknown