diff options
author | Micky Ching <micky_ching@realsil.com.cn> | 2014-10-10 13:58:44 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-11-25 16:18:48 +0000 |
commit | 5cb5d9616a47d5383a85379afa4429382ef46b38 (patch) | |
tree | cecbc166e912f9ac1f40dcb32ad2b2fec5be8684 /drivers/mfd/rts5249.c | |
parent | 130dd5b039dcbab7bcb2fdce0bb3cc7347b08b29 (diff) |
mfd: rtsx: Fix PM suspend for 5227 & 5249
Fix rts5227&5249 failed send buffer cmd after suspend,
PM_CTRL3 should reset before send any buffer cmd after suspend.
Otherwise, buffer cmd will failed, this will lead resume fail.
Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/rts5249.c')
-rw-r--r-- | drivers/mfd/rts5249.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/rts5249.c b/drivers/mfd/rts5249.c index 573de7bfcced..cf425cc959d5 100644 --- a/drivers/mfd/rts5249.c +++ b/drivers/mfd/rts5249.c @@ -130,6 +130,10 @@ static int rts5249_optimize_phy(struct rtsx_pcr *pcr) { int err; + err = rtsx_gops_pm_reset(pcr); + if (err < 0) + return err; + err = rtsx_pci_write_phy_register(pcr, PHY_REG_REV, PHY_REG_REV_RESV | PHY_REG_REV_RXIDLE_LATCHED | PHY_REG_REV_P1_EN | PHY_REG_REV_RXIDLE_EN | |