Re: [PATCH v2] usb: uas: quiesce SCSI before stopping endpoints on unbind
From: Oliver Neukum
Date: Mon Oct 05 2026 - 10:14:08 EST
On 02.10.26 14:51, Michal Pecio wrote:
On Wed, 30 Sep 2026 09:22:49 +0200, Oliver Neukum wrote:
When URB submission or completion returns -ENODEV or -ESHUTDOWN,
it marks the transport dead, stops further submissions, clears
Why this specific trigger?
I am asking because -ENODEV comes relatively late in the process.
URBs tend to fail long before that.
But it's sufficient, right? Apparently all we need is to detect
USB disconnection before disconnect() runs. This will do.
I am not sure you will necessarily see anything fail with
ENODEV
But UAS driver infamously has no URB error handling; if anything
goes wrong it just waits for SCSI core to abort the command. Not
sure why things are this way.
Good question.
Regards
Oliver