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

Commit 29866a98 authored by Stephen Warren's avatar Stephen Warren Committed by Chris Ball
Browse files

mmc: bcm2835: set SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK



SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK does basically the same as
implementing struct sdhci_ops .get_timeout_clock, so simply set that
quirk and remove the custom code to simplify the driver.

Reported-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent ce39f9d1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -133,11 +133,11 @@ static struct sdhci_ops bcm2835_sdhci_ops = {
	.read_b = bcm2835_sdhci_readb,
	.get_max_clock = sdhci_pltfm_clk_get_max_clock,
	.get_min_clock = bcm2835_sdhci_get_min_clock,
	.get_timeout_clock = sdhci_pltfm_clk_get_max_clock,
};

static struct sdhci_pltfm_data bcm2835_sdhci_pdata = {
	.quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION,
	.quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION |
		  SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK,
	.ops = &bcm2835_sdhci_ops,
};