mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 04:42:04 -04:00
Merge "scsi: ufs: Put hba into LPM during clk gating"
This commit is contained in:
commit
7db752bb33
1 changed files with 11 additions and 0 deletions
|
|
@ -270,6 +270,10 @@ static void ufshcd_resume_clkscaling(struct ufs_hba *hba);
|
|||
static void ufshcd_suspend_clkscaling(struct ufs_hba *hba);
|
||||
static void __ufshcd_suspend_clkscaling(struct ufs_hba *hba);
|
||||
static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up);
|
||||
#if defined(CONFIG_SCSI_UFSHCD_QTI)
|
||||
static void ufshcd_hba_vreg_set_lpm(struct ufs_hba *hba);
|
||||
static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba);
|
||||
#endif
|
||||
static irqreturn_t ufshcd_intr(int irq, void *__hba);
|
||||
static int ufshcd_change_power_mode(struct ufs_hba *hba,
|
||||
struct ufs_pa_layer_attr *pwr_mode);
|
||||
|
|
@ -1619,6 +1623,9 @@ static void ufshcd_ungate_work(struct work_struct *work)
|
|||
}
|
||||
|
||||
spin_unlock_irqrestore(hba->host->host_lock, flags);
|
||||
#if defined(CONFIG_SCSI_UFSHCD_QTI)
|
||||
ufshcd_hba_vreg_set_hpm(hba);
|
||||
#endif
|
||||
ufshcd_setup_clocks(hba, true);
|
||||
|
||||
ufshcd_enable_irq(hba);
|
||||
|
|
@ -1784,6 +1791,10 @@ static void ufshcd_gate_work(struct work_struct *work)
|
|||
/* If link is active, device ref_clk can't be switched off */
|
||||
__ufshcd_setup_clocks(hba, false, true);
|
||||
|
||||
#if defined(CONFIG_SCSI_UFSHCD_QTI)
|
||||
/* Put the host controller in low power mode if possible */
|
||||
ufshcd_hba_vreg_set_lpm(hba);
|
||||
#endif
|
||||
/*
|
||||
* In case you are here to cancel this work the gating state
|
||||
* would be marked as REQ_CLKS_ON. In this case keep the state
|
||||
|
|
|
|||
Loading…
Reference in a new issue