]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda69380ea207c7e692804d1da39bb2903769faf4
tree4d0a30a52129138a765fdd3d0a2b30963708f4df
parentbb0259f855b44ae4480566de83b37fa6057b1272
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