Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cebcab9e authored by Larry Finger's avatar Larry Finger Committed by John W. Linville
Browse files

bcma: Enable logging of SPROM offset



The SPROM location has been relocated again for some devices. This patch
will log the offset when CONFIG_BCMA_DEBUG has been selected.

Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a48b13ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -271,6 +271,7 @@ int bcma_sprom_get(struct bcma_bus *bus)
	 * TODO: understand this condition and use it */
	 * TODO: understand this condition and use it */
	offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
	offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
		BCMA_CC_SPROM_PCIE6;
		BCMA_CC_SPROM_PCIE6;
	pr_debug("SPROM offset 0x%x\n", offset);
	bcma_sprom_read(bus, offset, sprom);
	bcma_sprom_read(bus, offset, sprom);


	if (bus->chipinfo.id == 0x4331)
	if (bus->chipinfo.id == 0x4331)