mmc: avoid division by zero in meson_mmc_config_clock
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 17 Mar 2018 11:44:11 +0000 (12:44 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Mon, 2 Apr 2018 01:20:06 +0000 (02:20 +0100)
commit9a489ee73617b75aaa178de9bfb054dc8a0b67be
tree63281bd9513b58f4898f96a6b070b5f95df73ff5
parent5657cf66de05bec974076e326ef956e79108ac2f
mmc: avoid division by zero in meson_mmc_config_clock

The Odroid C2 fails to read from mmc with U-Boot v2018.03.
The change avoids a division by zero.

The fix was suggested by Jaehoon in
https://lists.denx.de/pipermail/u-boot/2018-January/318577.html

Reported-by: Vagrant Cascadian <vagrant@debian.org>
Suggested-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Gbp-Pq: Topic odroid-c2
Gbp-Pq: Name 0001-mmc-avoid-division-by-zero-in-meson_mmc_config_clock.patch
drivers/mmc/meson_gx_mmc.c