[PATCH v2 3/8] PCI: brcmstb: Do not assume that reg field starts at LSB
Florian Fainelli
florian.fainelli at broadcom.com
Thu Feb 20 09:29:06 PST 2025
On 2/14/2025 9:39 AM, Jim Quinlan wrote:
> When setting a register field it was assumed that the field started at the
> lsb of the register. Although the masks do indeed start at the lsb, and
> this will probably not change, it is prudent to use a method that makes no
> assumption about the mask's placement in the register.
>
> The uXXp_replace_bits() calls are used since they are already prevalent
> in this driver.
>
> Signed-off-by: Jim Quinlan <james.quinlan at broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
More information about the linux-arm-kernel
mailing list