]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: use fallback sprom if no on chip sprom is available
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 14 Apr 2012 12:38:54 +0000 (14:38 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Apr 2012 17:32:01 +0000 (13:32 -0400)
commit1209a512a42f696abba32fdcc8350fce0b246cbe
treed45d2f0a3194956081111fb87730a94cc50b6abd
parent2e501ed7c193147ab9c74b05ef0b4bd0032d74f3
bcma: use fallback sprom if no on chip sprom is available

bcma should check for a fallback sprom every time it can not find a
sprom on the card itself or a normal external sprom mapped into the
memory of the chip. When otp sprom support was introduced it tried to
read out the sprom from the wireless chip also if no otp sprom was
available. This caused a Data bus error in bcma_sprom_get() when
reading out the sprom for the SoC.

This fixes a regression introduced in commit:

commit 9bd20dcfb66aa0e71cfcacce5796827a5c9260e7
Author: Arend van Spriel <arend@broadcom.com>
Date:   Tue Mar 6 15:50:48 2012 +0100

    bcma: add support for on-chip OTP memory used for SPROM storage

This patch was tested on a Netgear WNDR3400 (Broadcom BCM4718 SoC).

Reported-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/sprom.c