Commit 2c32dbbb authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: core: Clarify that the ->ack_sdio_irq() callback is mandatory



For the MMC_CAP2_SDIO_IRQ_NOTHREAD case and when using sdio_signal_irq(),
the ->ack_sdio_irq() is already mandatory, which was not the case for those
host drivers that called sdio_run_irqs() directly.

As there are no longer any drivers calling sdio_run_irqs(), let's clarify
the code by dropping the unnecessary check and explicitly state that the
callback is mandatory in the header file.

Tested-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Reviewed-by: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 36d57efb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -115,7 +115,6 @@ static void sdio_run_irqs(struct mmc_host *host)
	mmc_claim_host(host);
	if (host->sdio_irqs) {
		process_sdio_pending_irqs(host);
		if (host->ops->ack_sdio_irq)
		host->ops->ack_sdio_irq(host);
	}
	mmc_release_host(host);
+1 −0
Original line number Diff line number Diff line
@@ -128,6 +128,7 @@ struct mmc_host_ops {
	int	(*get_cd)(struct mmc_host *host);

	void	(*enable_sdio_irq)(struct mmc_host *host, int enable);
	/* Mandatory callback when using MMC_CAP2_SDIO_IRQ_NOTHREAD. */
	void	(*ack_sdio_irq)(struct mmc_host *host);

	/* optional callback for HC quirks */