]> git.baikalelectronics.ru Git - kernel.git/commit
libertas sdio: fix suspend when interface is down
authorDaniel Drake <dsd@laptop.org>
Mon, 3 Sep 2012 19:49:09 +0000 (15:49 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 5 Sep 2012 18:53:36 +0000 (14:53 -0400)
commitb58325db54a74a35a12fe2b1a88e8cb3f66cbb7b
tree07a8b8b5d035aa239fd020acd4966bac81594c97
parent6368791d81032c98adbed7337a9fc6b4a2e6f427
libertas sdio: fix suspend when interface is down

When the interface is down, the hardware is powered off.
However, the suspend handler currently tries to send host sleep commands
(when wakeup params are set) in this configuration, causing a system hang
when going into suspend (the commands will never complete).

Avoid this by detecting this situation and simply returning from
the suspend handler without doing anything special.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_sdio.c