]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: sunxi: Fix NULL pointer reference on clk_delays
authorChen-Yu Tsai <wens@csie.org>
Tue, 8 Aug 2017 07:02:44 +0000 (15:02 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 12:01:50 +0000 (14:01 +0200)
commita646113435c9c8862a36d459079c69953ad19e8f
treeb2ec01e77f06c3d052edee5841e155e3439dd56e
parentac98caefe18ab845f4cef6612209212c669008ce
mmc: sunxi: Fix NULL pointer reference on clk_delays

Some SoCs do not support clk delays for MMC in the clock control unit.
These include the old controllers in A10/A10s/A13/R8, and the new eMMC
controller in A64. The config structure for these controllers do not
specify clk_delays, but the check for this was replaced in change
"mmc: sunxi: Support controllers that can use both old and new timings".

This patch adds back the check for clk_delays, and also adds comments
for both checks in sunxi_mmc_clk_set_phase().

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