* [PATCH] ata: libata: Fix NCQ Non-Data log not supported print
@ 2025-03-17 11:17 Niklas Cassel
2025-03-17 11:38 ` Hannes Reinecke
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Niklas Cassel @ 2025-03-17 11:17 UTC (permalink / raw)
To: Damien Le Moal; +Cc: linux-ide, Hannes Reinecke, Niklas Cassel
Currently, both ata_dev_config_ncq_send_recv() - which checks for NCQ
Send/Recv Log (Log Address 13h) and ata_dev_config_ncq_non_data() -
which checks for NCQ Non-Data Log (Log Address 12h), uses the same
print when the log is not supported:
"NCQ Send/Recv Log not supported"
This seems like a copy paste error, since NCQ Non-Data Log is actually
a separate log.
Fix the print the reference the correct log.
Fixes: 284b3b77ea88 ("libata: NCQ encapsulation for ZAC MANAGEMENT OUT")
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
drivers/ata/libata-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 193fc3942fd3a..e17e16706db70 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -2274,7 +2274,7 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
ata_dev_warn(dev,
- "NCQ Send/Recv Log not supported\n");
+ "NCQ Non-Data Log not supported\n");
return;
}
err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] ata: libata: Fix NCQ Non-Data log not supported print
2025-03-17 11:17 [PATCH] ata: libata: Fix NCQ Non-Data log not supported print Niklas Cassel
@ 2025-03-17 11:38 ` Hannes Reinecke
2025-03-18 5:18 ` Damien Le Moal
2025-03-18 8:05 ` Niklas Cassel
2 siblings, 0 replies; 4+ messages in thread
From: Hannes Reinecke @ 2025-03-17 11:38 UTC (permalink / raw)
To: Niklas Cassel, Damien Le Moal; +Cc: linux-ide
On 3/17/25 12:17, Niklas Cassel wrote:
> Currently, both ata_dev_config_ncq_send_recv() - which checks for NCQ
> Send/Recv Log (Log Address 13h) and ata_dev_config_ncq_non_data() -
> which checks for NCQ Non-Data Log (Log Address 12h), uses the same
> print when the log is not supported:
>
> "NCQ Send/Recv Log not supported"
>
> This seems like a copy paste error, since NCQ Non-Data Log is actually
> a separate log.
>
> Fix the print the reference the correct log.
>
> Fixes: 284b3b77ea88 ("libata: NCQ encapsulation for ZAC MANAGEMENT OUT")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> ---
> drivers/ata/libata-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 193fc3942fd3a..e17e16706db70 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -2274,7 +2274,7 @@ static void ata_dev_config_ncq_non_data(struct ata_device *dev)
>
> if (!ata_log_supported(dev, ATA_LOG_NCQ_NON_DATA)) {
> ata_dev_warn(dev,
> - "NCQ Send/Recv Log not supported\n");
> + "NCQ Non-Data Log not supported\n");
> return;
> }
> err_mask = ata_read_log_page(dev, ATA_LOG_NCQ_NON_DATA,
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ata: libata: Fix NCQ Non-Data log not supported print
2025-03-17 11:17 [PATCH] ata: libata: Fix NCQ Non-Data log not supported print Niklas Cassel
2025-03-17 11:38 ` Hannes Reinecke
@ 2025-03-18 5:18 ` Damien Le Moal
2025-03-18 8:05 ` Niklas Cassel
2 siblings, 0 replies; 4+ messages in thread
From: Damien Le Moal @ 2025-03-18 5:18 UTC (permalink / raw)
To: Niklas Cassel; +Cc: linux-ide, Hannes Reinecke
On 3/17/25 8:17 PM, Niklas Cassel wrote:
> Currently, both ata_dev_config_ncq_send_recv() - which checks for NCQ
> Send/Recv Log (Log Address 13h) and ata_dev_config_ncq_non_data() -
> which checks for NCQ Non-Data Log (Log Address 12h), uses the same
> print when the log is not supported:
>
> "NCQ Send/Recv Log not supported"
>
> This seems like a copy paste error, since NCQ Non-Data Log is actually
> a separate log.
>
> Fix the print the reference the correct log.
>
> Fixes: 284b3b77ea88 ("libata: NCQ encapsulation for ZAC MANAGEMENT OUT")
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
--
Damien Le Moal
Western Digital Research
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ata: libata: Fix NCQ Non-Data log not supported print
2025-03-17 11:17 [PATCH] ata: libata: Fix NCQ Non-Data log not supported print Niklas Cassel
2025-03-17 11:38 ` Hannes Reinecke
2025-03-18 5:18 ` Damien Le Moal
@ 2025-03-18 8:05 ` Niklas Cassel
2 siblings, 0 replies; 4+ messages in thread
From: Niklas Cassel @ 2025-03-18 8:05 UTC (permalink / raw)
To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide, Hannes Reinecke
On Mon, 17 Mar 2025 12:17:55 +0100, Niklas Cassel wrote:
> Currently, both ata_dev_config_ncq_send_recv() - which checks for NCQ
> Send/Recv Log (Log Address 13h) and ata_dev_config_ncq_non_data() -
> which checks for NCQ Non-Data Log (Log Address 12h), uses the same
> print when the log is not supported:
>
> "NCQ Send/Recv Log not supported"
>
> [...]
Applied to libata/linux.git (for-6.15), thanks!
[1/1] ata: libata: Fix NCQ Non-Data log not supported print
https://git.kernel.org/libata/linux/c/b500ee5f
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-18 8:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-17 11:17 [PATCH] ata: libata: Fix NCQ Non-Data log not supported print Niklas Cassel
2025-03-17 11:38 ` Hannes Reinecke
2025-03-18 5:18 ` Damien Le Moal
2025-03-18 8:05 ` Niklas Cassel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox