Re: [PATCH net-next v3 2/4] net: ipa: use upper_32_bits()

From: Florian Fainelli
Date: Thu Mar 18 2021 - 17:36:02 EST




On 3/18/2021 11:59 AM, Alex Elder wrote:
> Use upper_32_bits() to extract the high-order 32 bits of a DMA
> address. This avoids doing a 32-position shift on a DMA address
> if it happens not to be 64 bits wide. Use lower_32_bits() to
> extract the low-order 32 bits (because that's what it's for).
>
> Suggested-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
> Signed-off-by: Alex Elder <elder@xxxxxxxxxx>

Reviewed-by: Florian Fainelli <f.fainelli@xxxxxxxxx>
--
Florian