mmc: octeontx2: avoid single-slot startup issues
commit e49d690e7c3bba343c0fe5b7a29a285ad8b21233 from git@git.assembla.com:cavium/WindRiver.linux.git Previous code relied on particular state left by u-boot, or a previous _probe attempt aborted with EPROBE_DEFER, else it would program a clock-divisor of zero and hang MMC. Do not cache emm_switch setting if it has clock divisor zero. Do not use frequency params before they have been extracted from devtree. Do enforce lower frequency bound (400KHz) from mmc/core. Change-Id: I2d19084d1ab57d0f98e2ce1ffcd6fb918228f53c Signed-off-by: Peter Swain <pswain@marvell.com> Signed-off-by: Sujeet Baranwal <sbaranwal@marvell.com> Reviewed-on: https://sj1git1.cavium.com/8549 Tested-by: Sunil Kovvuri Goutham <Sunil.Goutham@cavium.com> Reviewed-by: Chandrakala Chavva <cchavva@marvell.com> Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/26911 Signed-off-by: Ruiqiang Hao <Ruiqiang.Hao@windriver.com>
Please register or sign in to comment