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

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

Merge "mmc: debugfs: fix unclocked register access by force_error"

parents 952a3f35 20e817d3
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -337,10 +337,15 @@ static int mmc_force_err_set(void *data, u64 val)
{
	struct mmc_host *host = data;

	if (host && host->ops && host->ops->force_err_irq) {
		mmc_host_clk_hold(host);
	if (host && host->card && host->ops &&
			host->ops->force_err_irq) {
		/*
		 * To access the force error irq reg, we need to make
		 * sure the host is powered up and host clock is ticking.
		 */
		mmc_get_card(host->card);
		host->ops->force_err_irq(host, val);
		mmc_host_clk_release(host);
		mmc_put_card(host->card);
	}

	return 0;