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)
commit5cbb9c285bdcc14ee381120dab7e23a81060f1c0
treefa65f4a61ef1a7ab8569710564610abdeed29a43
parent561e722201e41e304936b8a2aaa282c46ad4f393
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