]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: Use atomic functions for intstatus update.
authorHante Meuleman <meuleman@broadcom.com>
Thu, 6 Mar 2014 09:16:12 +0000 (10:16 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Mar 2014 19:29:58 +0000 (14:29 -0500)
commita9f5012407380f424df362f13e8cbfe1437861cf
treefa65f4a61ef1a7ab8569710564610abdeed29a43
parente5a5da0183e173e9900cfc90d236706f6636f9c2
brcmfmac: Use atomic functions for intstatus update.

The intstatus in sdio code can be updated from different
threads. To protect intstatus access, atomic functions are
used. One of them is set_bit, but this function is not
guaranteed atomic on all platforms. The loop was replaced
with local created OR function.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Franky (Zhenhui) Lin <frankyl@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd_sdio.c