From: Damien Le Moal <dlemoal@kernel.org>
To: Niklas Cassel <cassel@kernel.org>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ata: libata-scsi: refactor ata_scsiop_maint_in()
Date: Fri, 20 Mar 2026 20:24:53 +0900 [thread overview]
Message-ID: <3d762a01-4bfb-4e23-bffd-38e70018119e@kernel.org> (raw)
In-Reply-To: <20260320105950.286341-2-cassel@kernel.org>
On 3/20/26 19:59, Niklas Cassel wrote:
> ata_scsiop_maint_in() is currently quite confusing to read, because it
> currently only implements support for the service action REPORT SUPPORTED
> OPERATION CODES.
>
> Thus, when this function is checking for "invalid command format", it is
> not very clear if it is an invalid command format for the MAINTENANCE IN
> command itself, or an invalid command format for the (currently one and
> only) service action/subcommand implemented for this command.
>
> Move the service action to a separate function, so it is more clear that
> the "invalid command format" check is actually specific for the REPORT
> SUPPORTED OPERATION CODES service action.
>
> This also makes it easier and less confusing to add support for additional
> service actions in the future.
>
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2026-03-20 11:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 10:59 [PATCH] ata: libata-scsi: refactor ata_scsiop_maint_in() Niklas Cassel
2026-03-20 11:24 ` Damien Le Moal [this message]
2026-03-23 10:36 ` Niklas Cassel
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=3d762a01-4bfb-4e23-bffd-38e70018119e@kernel.org \
--to=dlemoal@kernel.org \
--cc=cassel@kernel.org \
--cc=linux-ide@vger.kernel.org \
/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