]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] ufs: Fix evaluation of UTP task completion code
authorVenkatraman S <svenkatr@ti.com>
Thu, 19 Apr 2012 06:16:22 +0000 (11:46 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 10 May 2012 07:59:24 +0000 (08:59 +0100)
commit8313de4b979c6b89037753a50a5d6b17c81b8f5d
tree82f67083fae2c23cfd3af3766f95c779f8ee5044
parent4da8ad51064637776a0f46abe6e40de34f6fed32
[SCSI] ufs: Fix evaluation of UTP task completion code

While interpreting the result of UTP task completion status,
by using boolean &&, the evaluation would fail when the
UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED was received.

Either UPIU_TASK_MANAGEMENT_FUNC_COMPL or
UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED should be
considered as a success result.

Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Venkatraman S <svenkatr@ti.com>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Acked-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/ufs/ufshcd.c