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

From: Florian Fainelli

Date: Wed Sep 16 2026 - 20:00:58 EST


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@xxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian