Re: [PATCH v3 2/5] bcma: scan: support big-endian backplanes
From: Florian Fainelli
Date: Wed Nov 04 2026 - 13:20:06 EST
On 11/3/2026 3:30 PM, Alessio Ferri wrote:
On some SoCs the bcma backplane is a big-endian peripheral, so the
ChipCommon ID/EROM pointer registers and the EROM itself read wrong
with readl().
Add a big_endian flag to struct bcma_bus, set by the host driver
before bcma_init_bus(), and use ioread32be() for scan-time accesses
when it is set. Core register accesses after the scan already go
through the host ops, which the host driver provides with the right
endianness.
Nothing changes for other devices.
Signed-off-by: Alessio Ferri <alessio.ferri@xxxxxxxxxxx>
Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian