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

Commit 757f9d7a authored by Manjunath M B's avatar Manjunath M B Committed by Martin K. Petersen
Browse files

scsi: ufs: tc-dwc-g210 driver fix for 20-bit RMMI



The code was checking on PA_CONNECTEDRXLANES and PA_CONNECTEDTXLANES
attributes to program the Lane#1 attributes. The correct attributes are
PA_AVAILRXDATALANES and PA_AVAILTXDATALANES respectively.

Signed-off-by: default avatarManjunath M B <manjumb@synopsys.com>
Tested-by: default avatarJoao Pinto <jpinto@synopsys.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 83c3d340
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -187,9 +187,9 @@ static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba)
	};

	/* Get the available lane count */
	ufshcd_dme_get(hba, UIC_ARG_MIB(PA_CONNECTEDRXDATALANES),
	ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES),
			&connected_rx_lanes);
	ufshcd_dme_get(hba, UIC_ARG_MIB(PA_CONNECTEDTXDATALANES),
	ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES),
			&connected_tx_lanes);

	if (connected_tx_lanes == 2) {