]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
libertas/sdio: make sure card enters power-off when firmware is loaded.
authorNeilBrown <neilb@suse.de>
Thu, 24 Oct 2013 07:33:33 +0000 (18:33 +1100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 5 Dec 2013 19:32:32 +0000 (14:32 -0500)
commitd94248ac2aef78e39a76321458a78ba7805dba2e
tree84e9129d10c24e519ba136bdda95783161f42c0d
parentc8520bcb784df69cf5960308846253814ec45db7
libertas/sdio: make sure card enters power-off when firmware is loaded.

Since firmware loading became async it is possible that if_sdio_finish_power_of
is called with only one remaining runtime_pm reference, so it isn't safe
to call pm_runtime_put_noidle.  We must call pm_runtime_put().

Diagnosed-by: "Dr. H. Nikolaus Schaller" <hns@goldelico.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_sdio.c