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: Subhash Jadavani <subhashj@codeaurora.org>
This commit is contained in:
parent
b99beadf1c
commit
47df7e7a36
2 changed files with 8 additions and 1 deletions
|
@ -3043,7 +3043,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;
|
||||
|
||||
|
|
|
@ -506,6 +506,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue