]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: sdhci: fix bus width switching on Samsung SoCs
authorMatt Reimer <mreimer@sdgsystems.com>
Thu, 19 Feb 2015 18:22:53 +0000 (11:22 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:53:57 +0000 (13:53 +0200)
commita7137f50d285e137f70e45d6d564aecb67963862
tree1857a48a3abe25fa48a93c2ac2ffc5f46e87b323
parent0233b134038114401f4db2d2a0dac7e796630d93
mmc: sdhci: fix bus width switching on Samsung SoCs

Fix bus width switching from 8-bit mode down to 4-bit or 1-bit modes on
Samsung SoCs using SDHCI_QUIRK_USE_WIDE8.  These SoCs report controller
version 2.0 yet they support 8-bit bus widths.  If 8-bit mode was
previously enabled and then an operation like "mmc dev" caused a switch
back down to 4-bit or 1-bit mode, WIDE8 was left set, causing failures.

This problem was manifested by "mmc dev" timing out.

Signed-off-by: Matt Reimer <mreimer@sdgsystems.com>
drivers/mmc/sdhci.c