]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: renesas_sdhi: Fix sampling clock position selecting
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 24 Jul 2018 14:51:38 +0000 (16:51 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 1 Aug 2018 10:02:03 +0000 (12:02 +0200)
commit5c99826b27d0afd4c05c2013385b17037f579cf9
tree7af6f54b848c611fea82e6417d196f72bda932f0
parenta8f399f624e1ae902828ad788f3601ff7b3e0eed
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
sets.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/renesas_sdhi_core.c