]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
bcma: Enable logging of SPROM offset
authorLarry Finger <Larry.Finger@lwfinger.net>
Wed, 11 Jan 2012 20:39:32 +0000 (14:39 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:21:12 +0000 (14:21 -0500)
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: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/sprom.c

index cb835f026d94757d9522bc52779a1640baf29d55..e35134f724f64b783119cf0e017e822e3a9865d0 100644 (file)
@@ -271,6 +271,7 @@ int bcma_sprom_get(struct bcma_bus *bus)
         * TODO: understand this condition and use it */
        offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
                BCMA_CC_SPROM_PCIE6;
+       pr_debug("SPROM offset 0x%x\n", offset);
        bcma_sprom_read(bus, offset, sprom);
 
        if (bus->chipinfo.id == 0x4331)