scsi: ufs: Fix and simplify setup_xfer_req variant operation
commite912cdc8d2257b378c2392d8688c281588848ad4
authorStanley Chu <stanley.chu@mediatek.com>
Mon, 6 Jul 2020 06:07:07 +0000 (6 14:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Aug 2020 13:48:06 +0000 (11 15:48 +0200)
tree146e3732bb47daec9c4c3be77ddae11d3402fc68
parentbcf876870b95592b52519ed4aafcf9d95999bc9c
scsi: ufs: Fix and simplify setup_xfer_req variant operation

commit 6edfdcfe285e499994b94a0f93e1f46ab2398162 upstream.

Add missing setup_xfer_req() call in ufshcd_issue_devman_upiu_cmd() in
ufs-bsg path. Relocate existing setup_xfer_req() calls to a common place,
i.e., ufshcd_send_command(), to simplify the driver.

Link: https://lore.kernel.org/r/20200706060707.32608-3-stanley.chu@mediatek.com
Acked-by: Avri Altman <Avri.Altman@wdc.com>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/ufs/ufshcd.c