scsi: ufs: add capability to keep auto bkops always enabled
authorsubhashj@codeaurora.org <subhashj@codeaurora.org>
Fri, 23 Dec 2016 02:41:22 +0000 (18:41 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 5 Jan 2017 23:10:04 +0000 (18:10 -0500)
commit4e768e7645ec4ffa92ee163643777b261ae97142
treefb038453d666a9a411fa7e4fcbb509e0acccf371
parent0c8f75869ed8941fcbf21643fced7bc652f68f14
scsi: ufs: add capability to keep auto bkops always enabled

UFS device requires to perform bkops (back ground operations) periodically
but host can control (via auto-bkops parameter of device) when device can
perform bkops based on its performance requirements. In general, host
would like to enable the device's auto-bkops only when it's not doing any
regular data transfer but sometimes device may not behave properly if host
keeps the auto-bkops disabled. This change adds the capability to let the
device auto-bkops always enabled except suspend.

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
drivers/scsi/ufs/ufshcd.h