]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: fail ufshcd_probe_hba() if power configuration fails
authorDov Levenglick <dovl@codeaurora.org>
Tue, 18 Oct 2016 00:10:14 +0000 (17:10 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:58 +0000 (17:29 -0500)
commit23e921439d4564d2ed85741350fe30ced6a61c45
tree9f2b5dbd2598ff00a7b8df1adbde91fd2da431e7
parent55c6efc0666c597cfc630e01e4aa1807bfe1bed4
scsi: ufs: fail ufshcd_probe_hba() if power configuration fails

In case the power configuration fails, skip further processing of the
probing function and return immediately. This has 2 reasons:

1. Don't allow the UFS to continue running in PWM

2. Avoid multiple calls to pm_runtime_put_sync() when not in error
   handling or power management contexts

Signed-off-by: Dov Levenglick <dovl@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