* [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards
@ 2019-04-04 4:01 Douglas Anderson
2019-04-04 5:20 ` Kalle Valo
[not found] ` <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
0 siblings, 2 replies; 8+ messages in thread
From: Douglas Anderson @ 2019-04-04 4:01 UTC (permalink / raw)
To: Kalle Valo
Cc: linux-rockchip, briannorris, mka, ryandcase, heiko,
Douglas Anderson, David S. Miller, Ganapathi Bhat, linux-wireless,
Amitkumar Karwar, linux-kernel, Nishant Sarmukadam, netdev,
Xinming Hu
The commit fc3a2fcaa1ba ("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: fc3a2fcaa1ba ("mwifiex: use atomic bitops to represent adapter status variables")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
---
drivers/net/wireless/marvell/mwifiex/sdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index a85648342d15..d5a70340a945 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -181,7 +181,7 @@ static int mwifiex_sdio_resume(struct device *dev)
adapter = card->adapter;
- if (test_bit(MWIFIEX_IS_SUSPENDED, &adapter->work_flags)) {
+ if (!test_bit(MWIFIEX_IS_SUSPENDED, &adapter->work_flags)) {
mwifiex_dbg(adapter, WARN,
"device already resumed\n");
return 0;
--
2.21.0.392.gf8f6787159e-goog
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards
2019-04-04 4:01 [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards Douglas Anderson
@ 2019-04-04 5:20 ` Kalle Valo
[not found] ` <874l7egxdj.fsf-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
[not found] ` <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
1 sibling, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2019-04-04 5:20 UTC (permalink / raw)
To: Douglas Anderson
Cc: linux-rockchip, briannorris, mka, ryandcase, heiko,
David S. Miller, Ganapathi Bhat, linux-wireless, Amitkumar Karwar,
linux-kernel, Nishant Sarmukadam, netdev, Xinming Hu
Douglas Anderson <dianders@chromium.org> writes:
> The commit fc3a2fcaa1ba ("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: fc3a2fcaa1ba ("mwifiex: use atomic bitops to represent adapter status variables")
> Signed-off-by: Douglas Anderson <dianders@chromium.org>
I'm planning to queue this for 5.1.
--
Kalle Valo
^ permalink raw reply [flat|nested] 8+ messages in thread[parent not found: <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>]
* Re: [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards
[not found] ` <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
@ 2019-04-25 11:05 ` Kalle Valo
2019-04-25 11:05 ` Kalle Valo
1 sibling, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-04-25 11:05 UTC (permalink / raw)
Cc: linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
briannorris-F7+t8E8rja9g9hUCZPvPmw, mka-F7+t8E8rja9g9hUCZPvPmw,
ryandcase-F7+t8E8rja9g9hUCZPvPmw, heiko-4mtYJXux2i+zQB+pC5nmwQ,
Douglas Anderson, David S. Miller, Ganapathi Bhat,
linux-wireless-u79uwXL29TY76Z2rM5mHXA, Amitkumar Karwar,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Nishant Sarmukadam,
netdev-u79uwXL29TY76Z2rM5mHXA, Xinming Hu
Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> The commit fc3a2fcaa1ba ("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: fc3a2fcaa1ba ("mwifiex: use atomic bitops to represent adapter status variables")
> Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
> Signed-off-by: Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> Reviewed-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Patch applied to wireless-drivers.git, thanks.
b82d6c1f8f82 mwifiex: Make resume actually do something useful again on SDIO cards
--
https://patchwork.kernel.org/patch/10884883/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards
[not found] ` <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2019-04-25 11:05 ` Kalle Valo
@ 2019-04-25 11:05 ` Kalle Valo
1 sibling, 0 replies; 8+ messages in thread
From: Kalle Valo @ 2019-04-25 11:05 UTC (permalink / raw)
Cc: Ganapathi Bhat, heiko-4mtYJXux2i+zQB+pC5nmwQ, Xinming Hu,
netdev-u79uwXL29TY76Z2rM5mHXA, briannorris-F7+t8E8rja9g9hUCZPvPmw,
linux-wireless-u79uwXL29TY76Z2rM5mHXA, Douglas Anderson,
Amitkumar Karwar, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
Nishant Sarmukadam, mka-F7+t8E8rja9g9hUCZPvPmw,
ryandcase-F7+t8E8rja9g9hUCZPvPmw, David S. Miller
Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> wrote:
> The commit fc3a2fcaa1ba ("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: fc3a2fcaa1ba ("mwifiex: use atomic bitops to represent adapter status variables")
> Cc: <stable-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
> Signed-off-by: Douglas Anderson <dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> Reviewed-by: Brian Norris <briannorris-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Patch applied to wireless-drivers.git, thanks.
b82d6c1f8f82 mwifiex: Make resume actually do something useful again on SDIO cards
--
https://patchwork.kernel.org/patch/10884883/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-04-25 11:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-04 4:01 [PATCH] mwifiex: Make resume actually do something useful again on SDIO cards Douglas Anderson
2019-04-04 5:20 ` Kalle Valo
[not found] ` <874l7egxdj.fsf-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
2019-04-04 20:47 ` Brian Norris
2019-04-05 3:35 ` Kalle Valo
[not found] ` <87ef6hruno.fsf-HodKDYzPHsUD5k0oWYwrnHL1okKdlPRT@public.gmane.org>
2019-04-18 16:31 ` Doug Anderson
[not found] ` <CAD=FV=WgTUgMg-r2ZJ6rKOiv5Lw_m-EX6c0it6znA9v8AO+z_A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-04-19 4:03 ` Kalle Valo
[not found] ` <20190404040106.40519-1-dianders-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2019-04-25 11:05 ` Kalle Valo
2019-04-25 11:05 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox