]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sunxi: fix support for new timings mode only SoCs
authorIcenowy Zheng <icenowy@aosc.io>
Tue, 8 Aug 2017 07:09:03 +0000 (15:09 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:50 +0000 (14:01 +0200)
commit13bfa366d1c5d89421a262922d8eb969f290b2bc
tree85c96d2512d129ba14aa657e5981ad0a11a94293
parent24bc24b1881a6edb7d292165819bb4e4980fe7f4
mmc: sunxi: fix support for new timings mode only SoCs

The A83T MMC support code introduces the timings mode switch, however
such a switch doesn't exist on new SoCs with only new timings mode.

Only execute the switch if the SoC really have the timings mode switch,
to fix the regression shown on new timings mode only SoCs (A64, H5,
etc).

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sunxi-mmc.c