summaryrefslogtreecommitdiff
path: root/drivers/misc/cardreader/rts5228.c
diff options
context:
space:
mode:
authorRicky Wu <ricky_wu@realtek.com>2020-09-07 18:07:18 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-16 17:30:37 +0200
commit0268eed10f12f785a618880920d90ee306fb2a50 (patch)
tree36bdfcec1a115f68db61609f756e175616c33c41 /drivers/misc/cardreader/rts5228.c
parentbc28369c6189009b66d9619dd9f09bd8c684bb98 (diff)
downloadlwn-0268eed10f12f785a618880920d90ee306fb2a50.tar.gz
lwn-0268eed10f12f785a618880920d90ee306fb2a50.zip
misc: rtsx: Fix power down flow
Fix and sort out rtsx driver power down flow Signed-off-by: Ricky Wu <ricky_wu@realtek.com> Link: https://lore.kernel.org/r/20200907100718.7672-1-ricky_wu@realtek.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/cardreader/rts5228.c')
-rw-r--r--drivers/misc/cardreader/rts5228.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/cardreader/rts5228.c b/drivers/misc/cardreader/rts5228.c
index 28feab1449ab..781a86def59a 100644
--- a/drivers/misc/cardreader/rts5228.c
+++ b/drivers/misc/cardreader/rts5228.c
@@ -99,9 +99,8 @@ static void rts5228_force_power_down(struct rtsx_pcr *pcr, u8 pm_state)
rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 3,
RELINK_TIME_MASK, 0);
- if (pm_state == HOST_ENTER_S3)
- rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3,
- D3_DELINK_MODE_EN, D3_DELINK_MODE_EN);
+ rtsx_pci_write_register(pcr, pcr->reg_pm_ctrl3,
+ D3_DELINK_MODE_EN, D3_DELINK_MODE_EN);
rtsx_pci_write_register(pcr, FPDCTL,
SSC_POWER_DOWN, SSC_POWER_DOWN);