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

From: Nathan Stratton Treadway

Date: Mon Nov 23 2026 - 09:06:20 EST


On Sat, Nov 21, 2026 at 04:52:52PM +0100, 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.
>
> Link: https://www.smartmontools.org/wiki/SAT-with-UAS-Linux
> Signed-off-by: Mateusz Jończyk <mat.jonczyk@xxxxx>
[...]
> diff --git a/Documentation/ABI/testing/sysfs-class-scsi_device b/Documentation/ABI/testing/sysfs-class-scsi_device
> new file mode 100644
> index 000000000000..4dc8645bf59b
> --- /dev/null
> +++ b/Documentation/ABI/testing/sysfs-class-scsi_device
> @@ -0,0 +1,10 @@
> +What: /sys/class/scsi_device/*/device/ata_passthrough_disabled
> +Date: Nov, 2026
> +KernelVersion: v7.5
> +Contact: usb-storage@xxxxxxxxxxxxxxxxxxxxxxxx
> +Description: (RO) Indicates whether the driver blocks access from userspace
> + to ATA passthrough commands. Contains a value of '1' when such
> + commands are denied as the hardware is considered buggy and they
> + might interfere with a correct operation of the drive. Note that
> + a value of '0' does not necessarily mean that ATA passthrough is
> + available as it may not be supported by the hardware at all.

Would it make sense to explicitly mention something about "USB quirk flag
US_FL_NO_ATA_1X" in this documentation entry?

Nathan