]> git.sur5r.net Git - u-boot/commit
mmc: avoid division by zero in meson_mmc_config_clock
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 17 Mar 2018 22:49:36 +0000 (22:49 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 23 Apr 2018 14:49:58 +0000 (10:49 -0400)
commitf6549c85410668e73503221ce6147d049cc6251d
tree69c02b590b7f862a92c40d854ad4cd1f2451ca2e
parent275d80a4c2fb63890f3f4c16b7ad481064e650a0
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>
Tested-by: Vagrant Cascadian <vagrant@debian.org>
drivers/mmc/meson_gx_mmc.c