mmc: renesas_sdhi: Fix sampling clock position selecting

When tuning each tap is issued CMD19 twice and the result of both runs
recorded in host->taps. If the result is different between the two runs
the wrong sampling clock position was selected. Fix this by merging the
two runs and only keep the result for each tap if it was good in both

Signed-off-by: Niklas Söderlund <>
Reviewed-by: Simon Horman <>
Tested-by: Wolfram Sang <>
Reviewed-by: Wolfram Sang <>
Signed-off-by: Ulf Hansson <>
(cherry picked from commit 5c99826b27d0afd4c05c2013385b17037f579cf9)
Signed-off-by: Simon Horman <>
1 file changed