Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7558f445 authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

scsi: ufs: provide the quirk to disable the LCC



LCC (Line Control Command) are being used for communication between
UFS host and UFS device. But some hosts might have the issue with
issuing the LCC commands to UFS device and in this case LCC could be
explicitly disabled from the host side.

Change-Id: I7b4d4a46d8d4e70bde088a5652decc7ba86a5617
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 430841a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2870,7 +2870,7 @@ static int ufshcd_link_startup(struct ufs_hba *hba)
	if (ret) {
		/* failed to get the link up... retire */
		goto out;
	} else {
	} else if (hba->quirks & UFSHCD_BROKEN_LCC) {
		int hc_tx_lanes;
		int i;

+7 −0
Original line number Diff line number Diff line
@@ -481,6 +481,13 @@ struct ufs_hba {

	#define UFSHCD_QUIRK_BROKEN_2_TX_LANES            (1 << 8)

	/*
	 * If LCC (Line Control Command) are having issue on the host
	 * controller then enable this quirk. Note that connected UFS device
	 * should also have workaround to not expect LCC commands from host.
	 */
	#define UFSHCD_BROKEN_LCC			  (1 << 9)

	wait_queue_head_t tm_wq;
	wait_queue_head_t tm_tag_wq;
	unsigned long tm_condition;