]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: add check if sprom is available before accessing it.
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 9 Jul 2011 11:22:03 +0000 (13:22 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:17 +0000 (15:02 -0400)
commitdbbff115a05753895bc00c10d13d33de8aed1889
treed33ce90d22e75c305e8c1a1a1b4b0181379d16b7
parent4c37ac808f4d1836d9fb779aeadfdf861627a962
bcma: add check if sprom is available before accessing it.

The SoCs like the bcm4716 do not have a sprom on the bcma bus like a
pcie device. It stores the values in some partition on flash memory.
For ssb this informations are read out in the bcm47xx arch code,
something like that should also be implemented for bcma. Without this
patch bcma panics on SoCs.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/main.c
drivers/bcma/sprom.c