* [PATCH] ata: libahci: use ahci_nr_ports() helper
@ 2026-04-23 16:43 Niklas Cassel
2026-04-24 2:48 ` Damien Le Moal
2026-04-27 8:13 ` Niklas Cassel
0 siblings, 2 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-04-23 16:43 UTC (permalink / raw)
To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide
Use ahci_nr_ports() helper instead of open coding the same.
No functional change.
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
drivers/ata/libahci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index c79abdfcd7a9..7169e9e89034 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -2636,7 +2636,7 @@ void ahci_print_info(struct ata_host *host, const char *scc_s)
,
hweight32(impl),
- (cap & 0x1f) + 1,
+ ahci_nr_ports(cap),
impl);
dev_info(host->dev,
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ata: libahci: use ahci_nr_ports() helper
2026-04-23 16:43 [PATCH] ata: libahci: use ahci_nr_ports() helper Niklas Cassel
@ 2026-04-24 2:48 ` Damien Le Moal
2026-04-27 8:13 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Damien Le Moal @ 2026-04-24 2:48 UTC (permalink / raw)
To: Niklas Cassel; +Cc: linux-ide
On 4/24/26 01:43, Niklas Cassel wrote:
> Use ahci_nr_ports() helper instead of open coding the same.
>
> No functional change.
>
> 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] 3+ messages in thread
* Re: [PATCH] ata: libahci: use ahci_nr_ports() helper
2026-04-23 16:43 [PATCH] ata: libahci: use ahci_nr_ports() helper Niklas Cassel
2026-04-24 2:48 ` Damien Le Moal
@ 2026-04-27 8:13 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-04-27 8:13 UTC (permalink / raw)
To: Damien Le Moal, Niklas Cassel; +Cc: linux-ide
On Thu, 23 Apr 2026 18:43:30 +0200, Niklas Cassel wrote:
> Use ahci_nr_ports() helper instead of open coding the same.
>
> No functional change.
Applied to libata/linux.git (for-7.2), thanks!
[1/1] ata: libahci: use ahci_nr_ports() helper
https://git.kernel.org/libata/linux/c/d02c6e08
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-04-27 8:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-23 16:43 [PATCH] ata: libahci: use ahci_nr_ports() helper Niklas Cassel
2026-04-24 2:48 ` Damien Le Moal
2026-04-27 8:13 ` Niklas Cassel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox