提交 d94248ac 编写于 作者: N NeilBrown 提交者: John W. Linville

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: N"Dr. H. Nikolaus Schaller" <hns@goldelico.com>
Signed-off-by: NNeilBrown <neilb@suse.de>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 c8520bcb
...@@ -849,7 +849,7 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card) ...@@ -849,7 +849,7 @@ static void if_sdio_finish_power_on(struct if_sdio_card *card)
card->started = true; card->started = true;
/* Tell PM core that we don't need the card to be /* Tell PM core that we don't need the card to be
* powered now */ * powered now */
pm_runtime_put_noidle(&func->dev); pm_runtime_put(&func->dev);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册