scsi: ufs: ufs-mediatek: support linkoff state during suspend
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 29 Jan 2020 10:52:49 +0000 (18:52 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 11 Feb 2020 03:46:54 +0000 (22:46 -0500)
commit2a06ff207445ddb7aa643751f85c54e7e3895fb4
tree83eda7a75bfe841a65e80d223a8d835fef7ab707
parent7742ca797aa79f280853ffd3e7d2e2af3cd317a5
scsi: ufs: ufs-mediatek: support linkoff state during suspend

If system suspend or runtime suspend mode is configured as linkoff state,
phy can be powered off and reference clock can be gated in MediaTek
Chipsets.

At the same time, remove redundant reference clock control in suspend and
resume callbacks because such control can be well-handled in setup_clocks
callback.

Link: https://lore.kernel.org/r/20200129105251.12466-3-stanley.chu@mediatek.com
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-mediatek.c