From: Yaniv Gardi Date: Sun, 17 May 2015 15:55:00 +0000 (+0300) Subject: scsi: ufs-qcom: enable UFSHCD_QUIRK_BROKEN_LCC X-Git-Tag: firefly_0821_release~176^2~1604^2~42 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f0183781a77e84bf58b1b375d49f73d3a96d4ee;p=firefly-linux-kernel-4.4.55.git scsi: ufs-qcom: enable UFSHCD_QUIRK_BROKEN_LCC LCC (Line Control Command) are being used for communication between UFS host and UFS device. But UFS host controller on QUALCOMM Technologies have an issue with issuing the LCC commands to UFS device and hence this quirk is enabled in order to to disable LCC from the host side. Signed-off-by: Yaniv Gardi Reviewed-by: Akinobu Mita Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index e8dc050543cd..76d6e9d95a19 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -715,6 +715,8 @@ static void ufs_qcom_advertise_quirks(struct ufs_hba *hba) } if (host->hw_ver.major >= 0x2) { + hba->quirks |= UFSHCD_QUIRK_BROKEN_LCC; + if (!ufs_qcom_cap_qunipro(host)) /* Legacy UniPro mode still need following quirks */ hba->quirks |= UFSHCD_QUIRK_DELAY_BEFORE_DME_CMDS;