Re: [PATCH 1/2] usb: uas: expose US_FL_NO_ATA_1X in sysfs as ata_passthrough_disabled

From: Mateusz Jończyk

Date: Mon Nov 23 2026 - 06:49:57 EST


W dniu 23.11.2026 o 12:41, Oliver Neukum pisze:


On 23.11.26 11:48, Mateusz Jończyk wrote:
W dniu 23.11.2026 o 09:27, Oliver Neukum pisze:

 > thank you for handling this. One thing though. This requires putting
 > the emit code into every driver. Can we centralize that somehow?

Not really, short of moving the handling of the ata_passthrough_disabled
attribute into the middle SCSI layer (which would also likely involve
moving the whole of US_FL_NO_ATA_1X logic from uas_queuecommand_lck()
there). Is this what you mean?

Now that you mention it, shouldn't that be where it ought to be anyway?
Usually the SCSI layer generates or filters commands, while the LLDD
determine what command sets a device will accept and reports that.

OK, I will prepare a patch series as appropriate and report back.

Greetings,

Mateusz