]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mmc: renesas_sdhi: don't overwrite TAP settings when HS400 tuning is complete
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 4 Apr 2022 11:49:02 +0000 (13:49 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:13 +0000 (14:41 +0200)
commiteb2334c4edc23159cbb444ad3b1280f33189a07d
tree85f0c5bb117b673807368a9b839d215c6bed123b
parent73d0b2d6d402d9961da7ac76ced87c5d103bb540
mmc: renesas_sdhi: don't overwrite TAP settings when HS400 tuning is complete

BugLink: https://bugs.launchpad.net/bugs/1969107
commit 03e59b1e2f56245163b14c69e0a830c24b1a3a47 upstream.

When HS400 tuning is complete and HS400 is going to be activated, we
have to keep the current number of TAPs and should not overwrite them
with a hardcoded value. This was probably a copy&paste mistake when
upporting HS400 support from the BSP.

Fixes: 26eb2607fa28 ("mmc: renesas_sdhi: add eMMC HS400 mode support")
Reported-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220404114902.12175-1-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 5d2712b780567c5fd376e9ba98e9d08e8bd679da)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/mmc/host/renesas_sdhi_core.c