mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 17:58:00 +07:00
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>
This commit is contained in:
parent
c8520bcb78
commit
d94248ac2a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user