Skip to content

Commit 399bc48

Browse files
Linus WalleijRussell King
authored andcommitted
ARM: 6858/1: mmci: force negative edge on clock bypass for ux500
This fixes a regression on high clock speeds with the MMCI on ux500. We need to make sure we derive the passthru clock on the falling edge of the incoming clock if it shall work at high frequencies, and on the ux500's there is a special bit for this. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 49ac215 commit 399bc48

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/mmc/host/mmci.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ static void mmci_set_clkreg(struct mmci_host *host, unsigned int desired)
103103
if (desired) {
104104
if (desired >= host->mclk) {
105105
clk = MCI_CLK_BYPASS;
106+
if (variant->st_clkdiv)
107+
clk |= MCI_ST_UX500_NEG_EDGE;
106108
host->cclk = host->mclk;
107109
} else if (variant->st_clkdiv) {
108110
/*

0 commit comments

Comments
 (0)