From patchwork Tue Feb 5 16:47:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinayak Holikatti X-Patchwork-Id: 14558 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 5FE5823F94 for ; Tue, 5 Feb 2013 16:48:43 +0000 (UTC) Received: from mail-lb0-f179.google.com (mail-lb0-f179.google.com [209.85.217.179]) by fiordland.canonical.com (Postfix) with ESMTP id 36495A191FC for ; Tue, 5 Feb 2013 16:48:43 +0000 (UTC) Received: by mail-lb0-f179.google.com with SMTP id j14so399593lbo.10 for ; Tue, 05 Feb 2013 08:48:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:dkim-signature:x-received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:x-gm-message-state; bh=sgYSBmRVCzqcx64911uMduNrPW7h1+3ehfMyG/qUmc0=; b=BySXRpQtuXrnPUq7cPnY7Tg6/0txejy3J23mAWu5dJ8Wo6Ov8wQNR96lppDI/JLLlu yr1kIqXpVrqRETU1fFpTfnDuqpBNRUeHB5/ih0oGs/i0urBqAR4NGgNCfNgzNDf0D0VO BUuTJHFIT3stMMvU9nanklD7awZhvYrC4sPmBGnyuof7Y9k3R8kyuinXc5tdnAhdBUop UTZrAJlo8+SBYj0xyaCcrEvut/po4RljFoVuZqrDtFfHbL1tnnP5+eWGG98EttxjQRVw UwdrsUUStu4TQuBGhqP9Aszrw4OIv3tOnULSQAeEK8EK5E8CAzMzVMX0ZBp82sK72HVk eRXA== X-Received: by 10.112.51.233 with SMTP id n9mr10274510lbo.47.1360082922840; Tue, 05 Feb 2013 08:48:42 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.112.91.146 with SMTP id ce18csp143536lbb; Tue, 5 Feb 2013 08:48:41 -0800 (PST) X-Received: by 10.50.187.169 with SMTP id ft9mr14736972igc.25.1360082920993; Tue, 05 Feb 2013 08:48:40 -0800 (PST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id l6si23814161pax.94.2013.02.05.08.48.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 Feb 2013 08:48:40 -0800 (PST) Received-SPF: pass (google.com: domain of vinholikatti@gmail.com designates 209.85.220.48 as permitted sender) client-ip=209.85.220.48; Authentication-Results: mx.google.com; spf=pass (google.com: domain of vinholikatti@gmail.com designates 209.85.220.48 as permitted sender) smtp.mail=vinholikatti@gmail.com; dkim=pass header.i=@gmail.com Received: by mail-pa0-f48.google.com with SMTP id hz10so235300pad.21 for ; Tue, 05 Feb 2013 08:48:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=sgYSBmRVCzqcx64911uMduNrPW7h1+3ehfMyG/qUmc0=; b=a3ZNM7jKAR2Lmh4ZGW9Zxw6uLaiSohzFD3RFce9L6MKOmp2p+Nw6+XNHx0FqaZyvVp psvPtCVgCGupcetFqkRiG+JiwkuxJ2frDRwLoG+BbjLTzSewpJxF84nlK7cmaTVmIMaS ZjmHFNzLH0UGQH53V5hbUK1cQzDZovGilm1BW5KThqLiKPIIQKn7KPeloDbtAk0aLHmC zXPsmnqi4CepoEfrqLR32fbFD2Vf84qS+1OKMYvf+03oFLbmbgg/m62YKJLJI5X1D//W aR3/DYP4C+le8XQeN4BbeB/ViGDS4z9V3NyRwbGqb8B4mxGtZznDIzOTcHwCNNRIaBLy Tr6Q== X-Received: by 10.66.74.2 with SMTP id p2mr66348470pav.55.1360082919212; Tue, 05 Feb 2013 08:48:39 -0800 (PST) Received: from localhost.localdomain ([223.239.140.194]) by mx.google.com with ESMTPS id t6sm30677347paz.11.2013.02.05.08.48.34 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 05 Feb 2013 08:48:38 -0800 (PST) From: vinholikatti@gmail.com To: james.bottomley@hansenpartnership.com Cc: linux-scsi@vger.kernel.org, santoshsy@gmail.com, patches@linaro.org, linux-samsung-soc@vger.kernel.org, arnd@linaro.org, saugata.das@linaro.org, venkat@linaro.org, subhashj@codeaurora.org, sthumma@codeaurora.org, vinholikatti@gmail.com Subject: [PATCH V6 4/4] [SCSI] ufs: Correct the expected data transfersize Date: Tue, 5 Feb 2013 22:17:37 +0530 Message-Id: <511137e6.0657420a.5b57.ffffa80b@mx.google.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1360082857-3317-1-git-send-email-y> References: <1360082857-3317-1-git-send-email-y> X-Gm-Message-State: ALoCoQkQyEH/EyXlSUpABBm3xiEaCSXg23AE4DW1Jr8qxvBhf9qqSr5CeRmVujBA/WNrV/wsdfvc From: Vinayak Holikatti This patch corrects the expected data transfer size of the command UPIU. The current implementation of cmd->transfersize is wrong as it probably equal to sector size. With this implementation the transfer size is updated correctly Reported-by: KOBAYASHI Yoshitake Reviewed-by: Arnd Bergmann Reviewed-by: Namjae Jeon Reviewed-by: Subhash Jadavani Signed-off-by: Santosh Yaraganavi Signed-off-by: Vinayak Holikatti --- drivers/scsi/ufs/ufshcd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 60fd40c..c32a478 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -478,7 +478,7 @@ static void ufshcd_compose_upiu(struct ufshcd_lrb *lrbp) ucd_cmd_ptr->header.dword_2 = 0; ucd_cmd_ptr->exp_data_transfer_len = - cpu_to_be32(lrbp->cmd->transfersize); + cpu_to_be32(lrbp->cmd->sdb.length); memcpy(ucd_cmd_ptr->cdb, lrbp->cmd->cmnd,