Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d94248ac authored by NeilBrown's avatar NeilBrown Committed by John W. Linville
Browse files

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: default avatar"Dr. H. Nikolaus Schaller" <hns@goldelico.com>
Signed-off-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c8520bcb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -849,7 +849,7 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card)
			card->started = true;
			/* Tell PM core that we don't need the card to be
			 * powered now */
			pm_runtime_put_noidle(&func->dev);
			pm_runtime_put(&func->dev);
		}
	}