mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Mateusz Jończyk" <mat.jonczyk@o2.pl>
To: Oliver Neukum <oneukum@suse.com>, Alan Stern <stern@rowland.harvard.edu>
Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
	"Martin K. Petersen" <mkp@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org,
	usb-storage@lists.one-eyed-alien.net,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] usb: uas: expose US_FL_NO_ATA_1X in sysfs as ata_passthrough_disabled
Date: Mon, 23 Nov 2026 11:48:49 +0100	[thread overview]
Message-ID: <52a233cb-1671-431c-8c14-7757ca947aa5@o2.pl> (raw)
In-Reply-To: <68f6376d-a0cf-4f87-9cbb-0afb7b8536d4@suse.com>

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

  reply	other threads:[~2026-11-23 10:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 15:52 Mateusz Jończyk
2026-11-21 15:52 ` [PATCH 2/2] usb: mass storage: expose ata_passthrough_disabled in sysfs Mateusz Jończyk
2026-11-23  8:27 ` [PATCH 1/2] usb: uas: expose US_FL_NO_ATA_1X in sysfs as ata_passthrough_disabled Oliver Neukum
2026-11-23 10:48   ` Mateusz Jończyk [this message]
2026-11-23 11:41     ` Oliver Neukum
2026-11-23 11:49       ` Mateusz Jończyk
2026-11-23 14:05 ` Nathan Stratton Treadway

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52a233cb-1671-431c-8c14-7757ca947aa5@o2.pl \
    --to=mat.jonczyk@o2.pl \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mkp@kernel.org \
    --cc=oneukum@suse.com \
    --cc=stern@rowland.harvard.edu \
    --cc=usb-storage@lists.one-eyed-alien.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®