[PATCH 02/13] PCI: brcmstb: Use flags u32 instead of bools

Florian Fainelli florian.fainelli at broadcom.com
Wed Sep 16 17:00:28 PDT 2026


On 9/11/26 16:35, Jim Quinlan wrote:
> Instead of having separate 'bool' fields for each SoC configuration, use a
> small bitvector (u32).  Doing this uses less memory and provides a uniform
> method to assign flags for a specific SoC.  The expectation is that more
> flags will be added as we replace conditions like "if (chipA || chipB)"
> with "if (behavior_X)".
> 
> A helper macro "BFLAG()" is used to shorten the determination of the flag
> value.
> 
> 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