]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26d4c1cd93db509b2c60f9825c28bbcdfcb0be21
tree83eda7a75bfe841a65e80d223a8d835fef7ab707
parentd365543779d881dc08b4c9a51da8d6b3aa419b49
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