Re: [RFC PATCH] usb: uas: quiesce SCSI before stopping endpoints on driver unbind
From: Jiayi Li
Date: Sun Sep 20 2026 - 22:59:43 EST
Hi Alan,
Thank you for the clarification.
In general, a class driver like uas shouldn't care whether an unbind isI understand that uas should not distinguish a driver-only unbind from a
what you call "driver-only". It should take the same steps whether it
can communicate with the device or not. (Note that the patch's test for
USB_STATE_NOTATTACHED isn't fully reliable -- there is a window after a
device is unplugged before the state gets updated.)
physical disconnect based on USB_STATE_NOTATTACHED. I will remove that
test and use the same teardown ordering for all disconnect paths.
I will retest the revised patch and send v2 after allowing some time for
the uas maintainers to comment.
Thanks,
Jiayi