mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
mmc: dw_mmc-rockchip: Skip all phases bigger than 270 degrees
Per design recommendation, it'd better not try to use any phase which is bigger than 270. Let's officially follow this. Change-Id: I8dee3eb648d321cc86e0926844cde528dbb5bd95 Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This commit is contained in:
@@ -211,6 +211,9 @@ static int dw_mci_rk3288_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
|
||||
|
||||
/* Try each phase and extract good ranges */
|
||||
for (i = 0; i < priv->num_phases; ) {
|
||||
/* Cannot guarantee any phases larger than 270 would work well */
|
||||
if (TUNING_ITERATION_TO_PHASE(i, priv->num_phases) > 270)
|
||||
break;
|
||||
clk_set_phase(priv->sample_clk,
|
||||
TUNING_ITERATION_TO_PHASE(i, priv->num_phases));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user