Thread (1 message) 1 message, 1 author, 2016-06-16

Re: [PATCH v2] mwifiex: fix race condition when downloading firmware

From: Kalle Valo <hidden>
Date: 2016-06-16 15:02:44
Also in: lkml

Wei-Ning Huang [off-list ref] writes:
The action 'check for winner' and 'download firmware' should be an
atomic action. This is true for btmrvl driver but not mwmfiex, which
cause firmware download to fail when the following scenario happens:

1) mwifiex check winner status: true
2) btmrvl check winner status: true, and start downloading firmware
3) mwifiex tries to download firmware, but failed because btmrvl is
already downloading.

This won't happen if 1) and 3) is an atomic action. This patch adds
sdio_claim/release_host call around those two actions to make sure it's
atomic.

Signed-off-by: Wei-Ning Huang <redacted>
As I accidentally applied v1, I need to drop this one.

-- 
Kalle Valo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help