diff options
author | Yaniv Gardi <ygardi@codeaurora.org> | 2015-05-17 17:54:59 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-06-02 22:14:39 +0200 |
commit | 7ca38cf300eb7fba9010d847baa6a4f5c458dd4e (patch) | |
tree | 9a0202197e763a3cfac3acaf100c602b94de9fe0 /drivers/scsi/ufs/ufshcd.h | |
parent | scsi: ufs-qcom: don't enable interrupt aggregation (diff) | |
download | linux-7ca38cf300eb7fba9010d847baa6a4f5c458dd4e.tar.xz linux-7ca38cf300eb7fba9010d847baa6a4f5c458dd4e.zip |
scsi: ufs: provide a quirk to disable the LCC
LCC (Line Control Command) are being used for communication between
UFS host and UFS device.
New commercial UFS devices don't have the issues with LCC processing
but UFS host controller might still have the issue with LCC processing,
hence, added a routine to disable TX LCC on the device.
Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshcd.h')
-rw-r--r-- | drivers/scsi/ufs/ufshcd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshcd.h b/drivers/scsi/ufs/ufshcd.h index fc8bec9960b1..b845f1535f29 100644 --- a/drivers/scsi/ufs/ufshcd.h +++ b/drivers/scsi/ufs/ufshcd.h @@ -426,6 +426,14 @@ struct ufs_hba { */ #define UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS UFS_BIT(1) + /* + * If UFS host controller is having issue in processing LCC (Line + * Control Command) coming from device then enable this quirk. + * When this quirk is enabled, host controller driver should disable + * the LCC transmission on UFS device (by clearing TX_LCC_ENABLE + * attribute of device to 0). + */ + #define UFSHCD_QUIRK_BROKEN_LCC UFS_BIT(2) unsigned int quirks; /* Deviations from standard UFSHCI spec. */ |