]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: do a read after the write of the objmem on broken PCIe controllers
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 7 Dec 2012 16:04:13 +0000 (17:04 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Dec 2012 20:47:30 +0000 (15:47 -0500)
commitb2795b575d89a63ee941dd389d753cd6a94467c0
tree28d9b88f9ed9857dc70eced7cd0a34e79e0f20fd
parent3a2d90fd69e5ed7d7f7ade954217a3bcd7fb0c3c
brcmsmac: do a read after the write of the objmem on broken PCIe controllers

As described in the documentation of bcma_wflush16 in drivers/net
/wireless/brcm80211/brcmsmac/types.h some PCIe controllers of Broadcom
SoCs are broken. The PCIe controller on these SoCs are mostly used to
connect some additional wifi device to the SoC and some of these wifi
devices are supported by brcmsmac.
For my BCM43224 connected to the broken PCIe controller of the BCM4718 I
need an extra read after write in brcms_b_write_objmem() to prevent a
Data bus error. This fixes the problem reading tsf_random later.

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