scsi: ufs-mediatek: introduce reference clock control
authorStanley Chu <stanley.chu@mediatek.com>
Mon, 30 Dec 2019 05:32:27 +0000 (13:32 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 3 Jan 2020 02:57:45 +0000 (21:57 -0500)
commit97347214bce8d740ce4d64e22783b50384cd2e6f
tree4d0a30a52129138a765fdd3d0a2b30963708f4df
parentb0d077ed389cb75b95396886517664c2500b0c10
scsi: ufs-mediatek: introduce reference clock control

Introduce reference clock control in MediaTek Chipset in order to disable
it if it is not necessary by UFS device to save system power.

Currently reference clock can be disabled during system suspend, runtime
suspend and clock-gating after link enters hibernate state.

Cc: Alim Akhtar <alim.akhtar@samsung.com>
Cc: Avri Altman <avri.altman@wdc.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: Bean Huo <beanhuo@micron.com>
Cc: Can Guo <cang@codeaurora.org>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Link: https://lore.kernel.org/r/1577683950-1702-4-git-send-email-stanley.chu@mediatek.com
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.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
drivers/scsi/ufs/ufs-mediatek.h