]> 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)
commit8d476aa1ef3fa14532896d3d4e90e82cacde8a6c
treed33ce90d22e75c305e8c1a1a1b4b0181379d16b7
parent132f5c1dacbfb314561d39508b449aef4f4eb82f
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