]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: change device rails hpm mode ramp up sequence
authorSubhash Jadavani <subhashj@codeaurora.org>
Fri, 28 Oct 2016 00:26:24 +0000 (17:26 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:30:00 +0000 (17:30 -0500)
commit9426e13a2e0c3c98695915ec7f3318f76a7e12ad
treeaa1401245c4894a0745575be2a66c18ed476504f
parentdbd7d310c406c2b62a63f7e2513de1bb24789e39
scsi: ufs: change device rails hpm mode ramp up sequence

When we are resuming the UFS device rails in HPM mode, we are first
powering on the VCC rail while VCCQ and VCCQ2 rails still being in LPM
mode. Some UFS devices may take VCC on event as hint that host wants UFS
device to be resumed and may start drawing more power from the
VCCQ/VCCQ2 rails (while they are still in LPM mode) causing voltage drop
on these rails. This change fixes this issue by bringing VCCQ & VCCQ2
rails out of LPM before powering on VCC rail.

Reviewed-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c