From: Hannes Reinecke <hare@suse.de>
To: Damien Le Moal <dlemoal@kernel.org>,
linux-ide@vger.kernel.org, Niklas Cassel <cassel@kernel.org>
Subject: Re: [PATCH 2/2] ata: libata-scsi: Fix ata_msense_control() CDL page reporting
Date: Tue, 24 Sep 2024 08:44:40 +0200 [thread overview]
Message-ID: <a107b642-e187-4efa-872b-8e42733de337@suse.de> (raw)
In-Reply-To: <20240923133949.286295-3-dlemoal@kernel.org>
On 9/23/24 15:39, Damien Le Moal wrote:
> When the user requests the ALL_SUB_MPAGES mode sense page,
> ata_msense_control() adds the CDL_T2A_SUB_MPAGE twice instead of adding
> the CDL_T2A_SUB_MPAGE and CDL_T2B_SUB_MPAGE pages information. Correct
> the second call to ata_msense_control_spgt2() to report the
> CDL_T2B_SUB_MPAGE page.
>
> Fixes: 673b2fe6ff1d ("scsi: ata: libata-scsi: Add support for CDL pages mode sense")
> Cc: stable@vger.kernel.org
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
> drivers/ata/libata-scsi.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
> index 97c84b0ec472..ea7d365fb7a9 100644
> --- a/drivers/ata/libata-scsi.c
> +++ b/drivers/ata/libata-scsi.c
> @@ -2350,7 +2350,7 @@ static unsigned int ata_msense_control(struct ata_device *dev, u8 *buf,
> case ALL_SUB_MPAGES:
> n = ata_msense_control_spg0(dev, buf, changeable);
> n += ata_msense_control_spgt2(dev, buf + n, CDL_T2A_SUB_MPAGE);
> - n += ata_msense_control_spgt2(dev, buf + n, CDL_T2A_SUB_MPAGE);
> + n += ata_msense_control_spgt2(dev, buf + n, CDL_T2B_SUB_MPAGE);
> n += ata_msense_control_ata_feature(dev, buf + n);
> return n;
> default:
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
next prev parent reply other threads:[~2024-09-24 6:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-23 13:39 [PATCH 0/2] CDL related fixes Damien Le Moal
2024-09-23 13:39 ` [PATCH 1/2] ata: libata-scsi: Fix ata_msense_control_spgt2() Damien Le Moal
2024-09-24 6:43 ` Hannes Reinecke
2024-09-24 7:59 ` Niklas Cassel
2024-09-23 13:39 ` [PATCH 2/2] ata: libata-scsi: Fix ata_msense_control() CDL page reporting Damien Le Moal
2024-09-24 6:44 ` Hannes Reinecke [this message]
2024-09-24 8:03 ` [PATCH 0/2] CDL related fixes 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=a107b642-e187-4efa-872b-8e42733de337@suse.de \
--to=hare@suse.de \
--cc=cassel@kernel.org \
--cc=dlemoal@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