From: Venkatraman S <svenkatr@ti.com>
To: <linux-kernel@vger.kernel.org>
Cc: Venkatraman S <svenkatr@ti.com>, Santosh Y <santoshsy@gmail.com>,
Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH 2/2] scsi/ufs: Fix evaluation of task_failed status
Date: Fri, 6 Apr 2012 10:57:09 +0530 [thread overview]
Message-ID: <1333690029-4991-2-git-send-email-svenkatr@ti.com> (raw)
In-Reply-To: <1333690029-4991-1-git-send-email-svenkatr@ti.com>
Else FAILED would be set even if task_result was
originally equal to UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED.
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
CC: Santosh Y <santoshsy@gmail.com>
CC: Andrew Morton <akpm@linux-foundation.org>
---
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 aa97200..cd59f6f 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -1160,7 +1160,7 @@ static int ufshcd_task_req_compl(struct ufs_hba *hba, u32 index)
task_result = be32_to_cpu(task_rsp_upiup->header.dword_1);
task_result = ((task_result & MASK_TASK_RESPONSE) >> 8);
- if (task_result != UPIU_TASK_MANAGEMENT_FUNC_COMPL ||
+ if (task_result != UPIU_TASK_MANAGEMENT_FUNC_COMPL &&
task_result != UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED)
task_result = FAILED;
} else {
--
1.7.5.4
next prev parent reply other threads:[~2012-04-06 5:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 5:27 [PATCH 1/2] scsi/ufs: reverse the ufshcd_is_device_present logic Venkatraman S
2012-04-06 5:27 ` Venkatraman S [this message]
2012-04-06 8:57 ` [PATCH 2/2] scsi/ufs: Fix evaluation of task_failed status Namjae Jeon
2012-04-06 9:19 ` Santosh Y
2012-04-06 8:53 ` [PATCH 1/2] scsi/ufs: reverse the ufshcd_is_device_present logic Namjae Jeon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1333690029-4991-2-git-send-email-svenkatr@ti.com \
--to=svenkatr@ti.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=santoshsy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®