]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: set load before setting voltage in regulators
authorAsutosh Das <asutoshd@codeaurora.org>
Tue, 11 Feb 2020 03:40:45 +0000 (19:40 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 13 Feb 2020 00:42:35 +0000 (19:42 -0500)
commit60284bf92100e7544ae6ad1464acf3c8be03c5e9
tree5537e8132bfb80b12a8e6bc0b750d0d60116d089
parentb80704ccf74c500ba992c72a91aeb7d70b2be171
scsi: ufs: set load before setting voltage in regulators

This sequence change is required to avoid dips in voltage during boot-up.

Apparently, this dip is caused because in the original sequence, the
regulators are initialized in lpm mode.  And then when the load is set to
high, and more current is drawn, than is allowed in lpm, the dip is seen.

Link: https://lore.kernel.org/r/1581392451-28743-3-git-send-email-cang@codeaurora.org
Reviewed-by: Hongwu Su <hongwus@codeaurora.org>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c