commit | c42ee367fdab51eb9add12e73e8a25306030bd44 | [log] [tgz] |
---|---|---|
author | Masahiro Yamada <yamada.masahiro@socionext.com> | Sat Dec 30 02:00:06 2017 +0900 |
committer | Jaehoon Chung <jh80.chung@samsung.com> | Mon Jan 22 14:11:58 2018 +0900 |
tree | d9d8ba7e55a579b844305c788182a1c6a9367c14 | |
parent | 3ab48f62230b6753bf5535655c40e3b975825bd9 [diff] |
mmc: do not overwrite cfg->f_max if "max-frequency" if missing mmc_of_parse() in U-Boot is a pussy helper; it sets cfg->f_max to 52MHz even if DT does not provide "max-frequency" at all. This can overwrite cfg->f_max that may have been set to a reasonable default. As the DT binding says, "max-frequency" is an optional property. Do nothing if DT does not specify it. This is the behavior of mmc_of_parse() in Linux. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>