[MMC] sdhci: reset sdhci controller early
The specification states that the capabilities register might need a reset to get correct values after boot up. Signed-off-by: Pierre Ossman <drzeus@drzeus.cx> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
committed by
Russell King
parent
4a9655051f
commit
d96649ed5a
@@ -1132,6 +1132,8 @@ static int __devinit sdhci_probe_slot(struct pci_dev *pdev, int slot)
|
|||||||
goto release;
|
goto release;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sdhci_reset(host, SDHCI_RESET_ALL);
|
||||||
|
|
||||||
version = readw(host->ioaddr + SDHCI_HOST_VERSION);
|
version = readw(host->ioaddr + SDHCI_HOST_VERSION);
|
||||||
version = (version & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT;
|
version = (version & SDHCI_SPEC_VER_MASK) >> SDHCI_SPEC_VER_SHIFT;
|
||||||
if (version != 0) {
|
if (version != 0) {
|
||||||
|
Reference in New Issue
Block a user