]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: fix reading of PCI sprom contents
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Jan 2012 20:19:34 +0000 (12:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Jan 2012 20:19:34 +0000 (12:19 -0800)
commitf8708a1c935fe0caedb902bdd3e80baf53f547e9
tree6df40bc0d8bd3e27588349fe8b469286fd48bdf9
parent1f0a45aad157a509ee465b976f0584f8c47a7c52
brcmsmac: fix reading of PCI sprom contents

It appears that you can only read the sprom contents with aligned 16-bit
reads: anything else causes at least some versions of the broadcom
chipset to abort the PCI transaction, returning 0xff.

This apparently doesn't trigger very often, because most setups don't
use an external srom chip, and the OTP sprom loading doesn't have this
issue.  But at least the current 11" Macbook Air does trigger it, and
wireless communications were broken as a result.

Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/wireless/brcm80211/brcmsmac/srom.c