]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: optimize clock gate work
authorVenkat Gopalakrishnan <venkatg@codeaurora.org>
Tue, 18 Oct 2016 00:11:07 +0000 (17:11 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:58 +0000 (17:29 -0500)
commita1c97ce088eb1c1819520073dc26b96f628803fe
tree76f38afb7404959124f0ef06e6938b4d9a9ea469
parentf3378aa1959e6fd76a0c6b1c739c1cd0585c42c2
scsi: ufs: optimize clock gate work

In a case where gate work is called as part of cancel work from ungate
path the clk state would be marked as REQ_CLKS_ON.  There is no point
gating the clocks and then end up turning them ON immediately in ungate
work, save time by skipping the gate work and change the clk state to
CLKS_ON as they are not turned off yet.

Signed-off-by: Venkat Gopalakrishnan <venkatg@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