scsi: ufs: suspend clock scaling at the start of suspend
authorSubhash Jadavani <subhashj@codeaurora.org>
Fri, 28 Oct 2016 00:26:09 +0000 (17:26 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:30:00 +0000 (17:30 -0500)
commitd6fcf81a0d97a9e9f5035973c3a4dc219c9488b0
treec53ebdd165b7645bedf83c0f0969aa70cd9870d3
parentafa3dfd42d205b106787476647735aa1de1a5d02
scsi: ufs: suspend clock scaling at the start of suspend

Currently clock scaling is suspended only after the host and device are
put in low power mode but we should avoid clock scaling running after
UFS link is put in low power mode (hibern8). This change suspends clock
scaling before putting host/device in low power mode.

Reviewed-by: Sahitya Tummala <stummala@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