summaryrefslogtreecommitdiff
path: root/drivers/misc/cardreader/rts5261.c
diff options
context:
space:
mode:
authorRicky Wu <ricky_wu@realtek.com>2020-03-16 05:52:32 +0300
committerUlf Hansson <ulf.hansson@linaro.org>2020-03-18 13:55:02 +0300
commit4686392c32361c97e8434adf9cc77ad7991bfa81 (patch)
treec05878c5e52ce0c4dec51580a47627f01b047dc5 /drivers/misc/cardreader/rts5261.c
parent53dd0a7cd65edc83b0c243d1c08377c8b876b2ee (diff)
downloadlinux-4686392c32361c97e8434adf9cc77ad7991bfa81.tar.xz
mmc: rtsx_pci: Fix support for speed-modes that relies on tuning
The TX/RX register should not be treated the same way to allow for better support of tuning. Fix this by using a default initial value for TX. Signed-off-by: Ricky Wu <ricky_wu@realtek.com> Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20200316025232.1167-1-ricky_wu@realtek.com [Ulf: Updated changelog] Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/cardreader/rts5261.c')
-rw-r--r--drivers/misc/cardreader/rts5261.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c
index bc4967a6efa1..78c3b1d424c3 100644
--- a/drivers/misc/cardreader/rts5261.c
+++ b/drivers/misc/cardreader/rts5261.c
@@ -764,7 +764,7 @@ void rts5261_init_params(struct rtsx_pcr *pcr)
pcr->sd30_drive_sel_1v8 = CFG_DRIVER_TYPE_B;
pcr->sd30_drive_sel_3v3 = CFG_DRIVER_TYPE_B;
pcr->aspm_en = ASPM_L1_EN;
- pcr->tx_initial_phase = SET_CLOCK_PHASE(20, 27, 16);
+ pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 11);
pcr->rx_initial_phase = SET_CLOCK_PHASE(24, 6, 5);
pcr->ic_version = rts5261_get_ic_version(pcr);