summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujit Reddy Thumma2013-06-26 19:09:30 +0200
committerJames Bottomley2013-06-28 22:10:07 +0200
commit3ca316c582ddf11944806a27e460e7bd8f61a968 (patch)
tree45ed1207a7e48a1356802d7742cc07b7bcf735c1
parent[SCSI] ufs: rework link start-up process (diff)
downloadkernel-qcow2-linux-3ca316c582ddf11944806a27e460e7bd8f61a968.tar.gz
kernel-qcow2-linux-3ca316c582ddf11944806a27e460e7bd8f61a968.tar.xz
kernel-qcow2-linux-3ca316c582ddf11944806a27e460e7bd8f61a968.zip
[SCSI] ufs: Fix the response UPIU length setting
The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez <merez@codeaurora.org> Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org> Signed-off-by: Santosh Y <santoshsy@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 48a76459a5c9..2230f1412d88 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -802,7 +802,7 @@ static void ufshcd_host_memory_configure(struct ufs_hba *hba)
utrdlp[i].prd_table_offset =
cpu_to_le16((prdt_offset >> 2));
utrdlp[i].response_upiu_length =
- cpu_to_le16(ALIGNED_UPIU_SIZE);
+ cpu_to_le16(ALIGNED_UPIU_SIZE >> 2);
hba->lrb[i].utr_descriptor_ptr = (utrdlp + i);
hba->lrb[i].ucd_cmd_ptr =