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

Commit c5841798 authored by Chris Ball's avatar Chris Ball
Browse files

mmc: Explain why we make adjacent mmc_bus_{put,get} calls during rescan.



Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 807e8e40
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 */