diff options
author | Manjunath M B <Manjunath.MB@synopsys.com> | 2016-07-12 13:55:36 (GMT) |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-07-15 19:10:00 (GMT) |
commit | 757f9d7a801236a9c49468af9e64cd7c447c2f8e (patch) | |
tree | 416fefff173806ab53b45b289608d18eba5cb471 /drivers/scsi/ufs | |
parent | 83c3d3400c87d6d943bf97fce4b30f4fe6870253 (diff) | |
download | linux-757f9d7a801236a9c49468af9e64cd7c447c2f8e.tar.xz |
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 <manjumb@synopsys.com>
Tested-by: Joao Pinto <jpinto@synopsys.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs')
-rw-r--r-- | drivers/scsi/ufs/tc-dwc-g210.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/ufs/tc-dwc-g210.c b/drivers/scsi/ufs/tc-dwc-g210.c index d6c5388..70db6d9 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) { |