Skip to content
Commit 43205f61 authored by Peter Swain's avatar Peter Swain Committed by Ruiqiang Hao
Browse files

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: default avatarPeter Swain <pswain@marvell.com>
Signed-off-by: default avatarSujeet Baranwal <sbaranwal@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/8549


Tested-by: default avatarSunil Kovvuri Goutham <Sunil.Goutham@cavium.com>
Reviewed-by: default avatarChandrakala Chavva <cchavva@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/26911


Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent 5c02ad3b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment