]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: core: Always initialize the UIC done completion
authorBart Van Assche <bvanassche@acm.org>
Thu, 12 Sep 2024 22:30:05 +0000 (15:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:13 +0000 (20:03 +0100)
commit7d4e5e33ea4ef4a2592fc1b4fc1bf77f8af323fe
treec4742410ad402f472febd78732227ecad2d8c2d8
parent66edf59bc444e67f304a10397a63af88eaae454b
scsi: ufs: core: Always initialize the UIC done completion

[ Upstream commit b1e8c53749adb795bfb0bf4e2f7836e26684bb90 ]

Simplify __ufshcd_send_uic_cmd() by always initializing the
uic_cmd::done completion. This is fine since the time required to
initialize a completion is small compared to the time required to
process an UIC command.

Reviewed-by: Peter Wang <peter.wang@mediatek.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20240912223019.3510966-5-bvanassche@acm.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 60b4dd1460f6 ("scsi: ufs: core: Add ufshcd_send_bsg_uic_cmd() for UFS BSG")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ufs/core/ufshcd.c