Skip to content

Commit 9f6fec6

Browse files
beanhuomartinkpetersen
authored andcommitted
scsi: ufs: core: No need to update UPIU.header.flags and lun in advanced RPMB handler
For advanced RPMB requests, its UPIU package should be fully initialized in its ufs-bsg-based application, except for task tag. in ufshcd.c, we just copy UPIU (with CDB) request as-is. Signed-off-by: Bean Huo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c91e585 commit 9f6fec6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/ufs/core/ufshcd.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -7250,9 +7250,7 @@ int ufshcd_advanced_rpmb_req_handler(struct ufs_hba *hba, struct utp_upiu_req *r
72507250
else
72517251
ufshcd_prepare_req_desc_hdr(lrbp, &upiu_flags, dir, 0);
72527252

7253-
/* update the task tag and LUN in the request upiu */
7254-
req_upiu->header.flags = upiu_flags;
7255-
req_upiu->header.lun = UFS_UPIU_RPMB_WLUN;
7253+
/* update the task tag */
72567254
req_upiu->header.task_tag = tag;
72577255

72587256
/* copy the UPIU(contains CDB) request as it is */

0 commit comments

Comments
 (0)