]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit61bd5e5683244a564ecfe31c73575ee0bc708ccc
tree6df40bc0d8bd3e27588349fe8b469286fd48bdf9
parentbccd17294a26b67a8a19aaa120e3eeaa7da49281
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