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

Commit 13b03eaf authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: sdhci: Add notify_load host->op



Add notify_load host->op to enable host controllers to
scale up/down necessary clocks based on the load.

Change-Id: I39d31d5343d8aa453f29294e340e52d94bfd0ade
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 77813844
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1582,6 +1582,9 @@ static int sdhci_notify_load(struct mmc_host *mmc, enum mmc_load state)
		break;
	}

	if (host->ops->notify_load)
		err = host->ops->notify_load(host, state);

	return err;
}

+1 −0
Original line number Diff line number Diff line
@@ -330,6 +330,7 @@ struct sdhci_ops {
	void	(*clear_set_dumpregs)(struct sdhci_host *host, bool set);
	void	(*enhanced_strobe_mask)(struct sdhci_host *host, bool set);
	void	(*detect)(struct sdhci_host *host, bool detected);
	int	(*notify_load)(struct sdhci_host *host, enum mmc_load state);
};

#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS