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

Commit 42ec3b12 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mmc: core: Hold host resume status while card rescan is in progress"

parents 0d05d203 0d92a3d8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3322,6 +3322,7 @@ void mmc_rescan(struct work_struct *work)
	host->rescan_entered = 1;

	mmc_bus_get(host);
	mmc_rpm_hold(host, &host->class_dev);

	/*
	 * if there is a _removable_ card registered, check whether it is
@@ -3354,10 +3355,13 @@ void mmc_rescan(struct work_struct *work)

	/* if there still is a card present, stop here */
	if (host->bus_ops != NULL) {
		mmc_rpm_release(host, &host->class_dev);
		mmc_bus_put(host);
		goto out;
	}

	mmc_rpm_release(host, &host->class_dev);

	/*
	 * Only we can add a new handler, so it's safe to
	 * release the lock here.