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 - 05:49:24 EST
W dniu 23.11.2026 o 09:27, Oliver Neukum pisze:
> On 21.11.26 16:52, Mateusz Jończyk wrote:
>> The uas driver blocks access to ATA passthrough commands for some
>> devices it considers buggy. However, it does not expose any meaningful
>> information whether the command was disabled by the driver or is
>> genuinly not supported by the hardware. This creates a problem for the
>> smartmontools program and makes it difficult for it to provide a useful
>> error message.
> Hi,
>
> 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?
This attribute is really specific to the USB drivers, but it lives in
different fields in the UAS and mass storage drivers.
Greetings,
Mateusz