scsi: ufs: enable runtime pm only after ufshcd init
Previous code enables runtime pm before ufshcd_init() is completed, and before the hba struct is stored in the platform device private data. This means that pm runtime calls will have null hba pointer as well as partially initialized driver. Instead, enable pm runtime only after ufshcd_init() is done and after hba struct is stored in the platform device private data. Change-Id: I8225736916a9eda3d9f58d2b0e2566065766b914 Signed-off-by:Gilad Broner <gbroner@codeaurora.org> [cang@codeaurora.org: Resolved trivial merge conflicts] Signed-off-by:
Can Guo <cang@codeaurora.org>
Loading
Please register or sign in to comment