diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-10-04 18:01:12 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-10-05 08:53:04 +0200 |
commit | 8a805a26bc724f4193c79037c1d0c1d2c87dd06e (patch) | |
tree | f814d919c2c991a9b037891426fe0771be631765 | |
parent | faf7d69168838c0965f9a39ed0e5df447bf429f4 (diff) | |
download | barebox-8a805a26bc724f4193c79037c1d0c1d2c87dd06e.tar.gz barebox-8a805a26bc724f4193c79037c1d0c1d2c87dd06e.tar.xz |
Revert "mci: bcm2835: reset host controller on barebox shutdown"
The patch is wrong and issue is still reproducible with it. We have no
alternate fix yet, but drop the non-functional fix until we do.
This reverts commit c7428c02d72d1c74295226e7c9483e0f62f6a2aa.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20221004160112.183814-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/mci/mci-bcm2835.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mci/mci-bcm2835.c b/drivers/mci/mci-bcm2835.c index c5b226ba03..f092156f9a 100644 --- a/drivers/mci/mci-bcm2835.c +++ b/drivers/mci/mci-bcm2835.c @@ -385,8 +385,6 @@ static int bcm2835_mci_probe(struct device_d *hw_dev) host->sdhci.read32 = bcm2835_sdhci_read32; host->sdhci.write32 = bcm2835_sdhci_write32; - hw_dev->priv = host; - mci_of_parse(&host->mci); iores = dev_request_mem_resource(hw_dev, 0); @@ -422,15 +420,6 @@ static int bcm2835_mci_probe(struct device_d *hw_dev) return mci_register(&host->mci); } -static void bcm2835_mci_remove(struct device_d *dev) -{ - struct bcm2835_mci_host *host = dev->priv; - - sdhci_write32(&host->sdhci, - SDHCI_CLOCK_CONTROL__TIMEOUT_CONTROL__SOFTWARE_RESET, - 0x00); -} - static __maybe_unused struct of_device_id bcm2835_mci_compatible[] = { { .compatible = "brcm,bcm2835-sdhci", @@ -444,7 +433,6 @@ static __maybe_unused struct of_device_id bcm2835_mci_compatible[] = { static struct driver_d bcm2835_mci_driver = { .name = "bcm2835_mci", .probe = bcm2835_mci_probe, - .remove = bcm2835_mci_remove, .of_compatible = DRV_OF_COMPAT(bcm2835_mci_compatible), }; |