From: Manjunath M B Date: Tue, 12 Jul 2016 13:55:36 +0000 (+0530) Subject: scsi: ufs: tc-dwc-g210 driver fix for 20-bit RMMI X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=757f9d7a801236a9c49468af9e64cd7c447c2f8e;p=linux-beck.git 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: Manjunath M B Tested-by: Joao Pinto Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/ufs/tc-dwc-g210.c b/drivers/scsi/ufs/tc-dwc-g210.c index d6c5388d41ac..70db6d999ca3 100644 --- a/drivers/scsi/ufs/tc-dwc-g210.c +++ b/drivers/scsi/ufs/tc-dwc-g210.c @@ -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) {