From mboxrd@z Thu Jan 1 00:00:00 1970 From: Santosh Y Subject: [PATCH 8/8] scsi: ufs: Fix the response UPIU length setting Date: Sun, 19 May 2013 13:51:43 +0530 Message-ID: <1368951703-2672-9-git-send-email-santoshsy@gmail.com> References: <1368951703-2672-1-git-send-email-santoshsy@gmail.com> Return-path: Received: from mail-da0-f48.google.com ([209.85.210.48]:47534 "EHLO mail-da0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753441Ab3ESIWd (ORCPT ); Sun, 19 May 2013 04:22:33 -0400 Received: by mail-da0-f48.google.com with SMTP id h32so3258310dak.35 for ; Sun, 19 May 2013 01:22:32 -0700 (PDT) In-Reply-To: <1368951703-2672-1-git-send-email-santoshsy@gmail.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: james.bottomley@hansenpartnership.com Cc: linux-scsi@vger.kernel.org, vinholikatti@gmail.com, Sujit Reddy Thumma , Maya Erez , Santosh Y From: Sujit Reddy Thumma The response UPIU length should be in DWORD and not in bytes. Signed-off-by: Maya Erez Signed-off-by: Sujit Reddy Thumma Signed-off-by: Santosh Y diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 18dead4..e9dba33 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -1159,7 +1159,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_req_ptr = -- 1.8.2.3