]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: Make resume actually do something useful again on SDIO cards
authorDouglas Anderson <dianders@chromium.org>
Thu, 4 Apr 2019 04:01:06 +0000 (21:01 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 11:05:14 +0000 (14:05 +0300)
commit9fc957e8b4b4a6a6ffbda2dfbde6a787fadf1ff6
tree9920723ba38805e4099d4afd6a4bff3bbce2436d
parent1510999429b40c19349b477c03930660cc9c7c39
mwifiex: Make resume actually do something useful again on SDIO cards

The commit 1a02e739f712 ("mwifiex: use atomic bitops to represent
adapter status variables") had a fairly straightforward bug in it.  It
contained this bit of diff:

 - if (!adapter->is_suspended) {
 + if (test_bit(MWIFIEX_IS_SUSPENDED, &adapter->work_flags)) {

As you can see the patch missed the "!" when converting to the atomic
bitops.  This meant that the resume hasn't done anything at all since
that commit landed and suspend/resume for mwifiex SDIO cards has been
totally broken.

After fixing this mwifiex suspend/resume appears to work again, at
least with the simple testing I've done.

Fixes: 1a02e739f712 ("mwifiex: use atomic bitops to represent adapter status variables")
Cc: <stable@vger.kernel.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sdio.c