]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/scsi/ufs/ufshcd.c
[SCSI] ufs: Fix the response UPIU length setting
[karo-tx-linux.git] / drivers / scsi / ufs / ufshcd.c
index 48a76459a5c927a91d3084a73870cae0a68d752d..2230f1412d88000453fb914d0072c5192dc2ea9f 100644 (file)
@@ -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 =