projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9087ff6
)
scsi: ufs: fix data segment length for upiu header
author
hgchu
<hg.chu@samsung.com>
Fri, 12 Jan 2018 04:14:44 +0000
(13:14 +0900)
committer
JaeHun Jung
<jh0801.jung@samsung.com>
Tue, 8 May 2018 08:20:25 +0000
(17:20 +0900)
Change-Id: I3f1c16422c32809390c83dc4391f396b9e9b0ad6
Signed-off-by: hgchu <hg.chu@samsung.com>
drivers/scsi/ufs/ufshcd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/scsi/ufs/ufshcd.c
b/drivers/scsi/ufs/ufshcd.c
index 3983c38cbf4f7b9a61ac07674e8bb206eeef2890..7df4c38ecdfe6050eef2bef3945677dbc2a7b6fd 100644
(file)
--- a/
drivers/scsi/ufs/ufshcd.c
+++ b/
drivers/scsi/ufs/ufshcd.c
@@
-2221,6
+2221,9
@@
static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba,
ucd_req_ptr->header.dword_1 = UPIU_HEADER_DWORD(
0, query->request.query_func, 0, 0);
+ if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_READ_DESC)
+ len = 0;
+
/* Data segment length only need for WRITE_DESC */
if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC)
ucd_req_ptr->header.dword_2 =