Re: [PATCH v2] ata: ahci: use hweight_long() to count port_map bits

From: Damien Le Moal

Date: Fri May 29 2026 - 02:35:21 EST


On 2026/05/28 15:00, kensanya@xxxxxxx wrote:
> From: TanZheng <tanzheng@xxxxxxxxxx>
>
> Replace the open loop used to calculate the number of set bits
> in the port mapping with the `hweight_long()` function, which
> simplifies the code without altering its functionality.
>
> Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>
> Signed-off-by: TanZheng <tanzheng@xxxxxxxxxx>

Title: I suggested:

ata: libahci: ...

You did not fix that.


--
Damien Le Moal
Western Digital Research