[PATCH 2/4] bcma: pmu: program max resource mask on BCM4352/BCM4360
Alessio Ferri <[email protected]> Wed, 17 Jun 2026 23:42:09 +0200
| Newsgroups | org.infradead.lists.b43-dev,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
From: Alessio Ferri <[email protected]> bcma_pmu_resources_init() has no case for the BCM4352/BCM4360 family. The vendor instead set the max mask for chip rev > 2 with CS bit 5 clear. Match the vendor behaviour. Signed-off-by: Alessio Ferri <[email protected]> --- drivers/bcma/driver_chipcommon_pmu.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/bcma/driver_chipcommon_pmu.c b/drivers/bcma/driver_chipcommon_pmu.c index 263ef6fa1d0f..cdd5f7d668ba 100644 --- a/drivers/bcma/driver_chipcommon_pmu.c +++ b/drivers/bcma/driver_chipcommon_pmu.c @@ -188,6 +188,14 @@ static void bcma_pmu_resources_init(struct bcma_drv_cc *cc) BCMA_RES_4314_WL_CORE_READY; max_msk = 0x3FFFFFFF; break; + case BCMA_CHIP_ID_BCM4352: + case BCMA_CHIP_ID_BCM4360: + /* + * Vendor programs the max mask here for chip rev > 2 with ChipStatus bit 5 clear + */ + if (bus->chipinfo.rev > 2 && !(cc->status & BIT(5))) + max_msk = 0x1ff; + break; default: bcma_debug(bus, "PMU resource config unknown or not needed for device 0x%04X\n", bus->chipinfo.id); -- 2.54.0 _______________________________________________ b43-dev mailing list [email protected] http://lists.infradead.org/mailman/listinfo/b43-dev