aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/cardreader/rts5227.c
diff options
context:
space:
mode:
authorRicky Wu <ricky_wu@realtek.com>2021-06-07 18:16:34 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-09 19:10:22 +0200
commit3df4fce739e2b263120f528c5e0fe6b2f8937b5b (patch)
treed7e4ba1005754f2507564935eb7bcee338453359 /drivers/misc/cardreader/rts5227.c
parentbus: mhi: pci-generic: Fix hibernation (diff)
downloadlinux-dev-3df4fce739e2b263120f528c5e0fe6b2f8937b5b.tar.xz
linux-dev-3df4fce739e2b263120f528c5e0fe6b2f8937b5b.zip
misc: rtsx: separate aspm mode into MODE_REG and MODE_CFG
aspm (Active State Power Management) rtsx_comm_set_aspm: this function is for driver to make sure not enter power saving when processing of init and card_detcct ASPM_MODE_CFG: 8411 5209 5227 5229 5249 5250 Change back to use original way to control aspm ASPM_MODE_REG: 5227A 524A 5250A 5260 5261 5228 Keep the new way to control aspm Fixes: 121e9c6b5c4c ("misc: rtsx: modify and fix init_hw function") Reported-by: Chris Chiu <chris.chiu@canonical.com> Tested-by: Gordon Lack <gordon.lack@dsl.pipex.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Ricky Wu <ricky_wu@realtek.com> Link: https://lore.kernel.org/r/20210607101634.4948-1-ricky_wu@realtek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/cardreader/rts5227.c')
-rw-r--r--drivers/misc/cardreader/rts5227.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/misc/cardreader/rts5227.c b/drivers/misc/cardreader/rts5227.c
index 8200af22b529..4bcfbc9afbac 100644
--- a/drivers/misc/cardreader/rts5227.c
+++ b/drivers/misc/cardreader/rts5227.c
@@ -358,6 +358,7 @@ void rts5227_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->aspm_mode = ASPM_MODE_CFG;
pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 15);
pcr->rx_initial_phase = SET_CLOCK_PHASE(30, 7, 7);
@@ -483,6 +484,7 @@ void rts522a_init_params(struct rtsx_pcr *pcr)
rts5227_init_params(pcr);
pcr->ops = &rts522a_pcr_ops;
+ pcr->aspm_mode = ASPM_MODE_REG;
pcr->tx_initial_phase = SET_CLOCK_PHASE(20, 20, 11);
pcr->reg_pm_ctrl3 = RTS522A_PM_CTRL3;