FROMLIST: scsi: ufs: Fix up clock scaling
In host reset and restore path, after hba is stopped but before it is enabled back again, we scale up clocks to their max frequencies. If clock scale notify vendor specific ops happens to have any operations to hba, DME commands for example, it would fail due to hba is stopped at this moment. This change introduces another func to explicitly set clock frequency so that it can be used here and also in ufshcd_scale_clks(). Meanwhile, this change modifies the clock scaling preparation error out path so that clock is released before it returns. Bug: 143632303 Change-Id: Ic39cdb7a9a897b5cfa3f0c3462d411ed23203447 Link: https://lore.kernel.org/patchwork/patch/1147023/ Signed-off-by:Subhash Jadavani <subhashj@codeaurora.org> Signed-off-by:
Can Guo <cang@codeaurora.org> Signed-off-by:
Asutosh Das <asutoshd@codeaurora.org>
Loading
Please register or sign in to comment