]> git.baikalelectronics.ru Git - uboot.git/commit
tegra: mmc: Set the bus width correctly
authorSimon Glass <sjg@chromium.org>
Thu, 8 Jun 2017 03:11:48 +0000 (21:11 -0600)
committerTom Warren <twarren@nvidia.com>
Tue, 20 Jun 2017 16:47:59 +0000 (09:47 -0700)
commit09315a1a132cfcb7922a5d25a6985d437f4e36ab
treeac38c4abc9bf273f142fc5d7c3516a139c77d017
parent0c6839607a1a59cf217902e6b6eb64877db5677a
tegra: mmc: Set the bus width correctly

The driver currently does not reset bit 5 of the hostctl register even if
the MMC stack requests it. Then means that once a bus width of 8 is
selected it is not possible to change it back to 1. This breaks
'mmc rescan' which needs to start off with a bus width of 1.

The problem was surfaced by enabling CONFIG_DM_MMC_OPS on tegra. Without
this option the MMC stack fully reinits the driver on a 'mmc rescan'.
But with this option driver model does not re-probe a driver once it has
been probed once.

Fix the driver to honour the request.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Peter Chubb <peter.chubb@data61.csiro.au>
Tested-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
drivers/mmc/tegra_mmc.c