]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: hisi_sas: Factor out task prep and delivery code
authorJohn Garry <john.garry@huawei.com>
Wed, 15 Dec 2021 14:37:37 +0000 (22:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:44:07 +0000 (07:44 +0200)
commit8b8e6d433bd9039772567677be33abec15c48003
treef984f5d2016323282e9824ad9eb014f8beedebbb
parent6587850b88270712f01dbb69a2b2fe23d474d84c
scsi: hisi_sas: Factor out task prep and delivery code

[ Upstream commit dc313f6b125b095d3d2683d94d5f69c8dc9bdc36 ]

The task prep code is the same between the normal path (in
hisi_sas_task_prep()) and the internal abort path, so factor is out into a
common function.

Link: https://lore.kernel.org/r/1639579061-179473-5-git-send-email-john.garry@huawei.com
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Stable-dep-of: 8aa580cd9284 ("scsi: hisi_sas: Enable force phy when SATA disk directly connected")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/hisi_sas/hisi_sas_main.c