mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-19 11:43:40 +00:00
mmc: Explain why we make adjacent mmc_bus_{put,get} calls during rescan.
Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
807e8e4067
commit
c584179828
@ -1531,9 +1531,11 @@ void mmc_rescan(struct work_struct *work)
|
||||
&& mmc_card_is_removable(host))
|
||||
host->bus_ops->detect(host);
|
||||
|
||||
/*
|
||||
* Let mmc_bus_put() free the bus/bus_ops if we've found that
|
||||
* the card is no longer present.
|
||||
*/
|
||||
mmc_bus_put(host);
|
||||
|
||||
|
||||
mmc_bus_get(host);
|
||||
|
||||
/* if there still is a card present, stop here */
|
||||
|
Loading…
x
Reference in New Issue
Block a user