summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>2024-12-11 03:33:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-24 10:56:07 +0300
commit1d5d4e11536ed7154ba08799a64eca9802d32d0f (patch)
tree2de7b48e1f8633586721ea00be1156a7243cfc56 /scripts
parent472615215398b7e47baca6422cab5a7106cddecb (diff)
downloadlinux-1d5d4e11536ed7154ba08799a64eca9802d32d0f.tar.xz
usb: gadget: f_tcm: Send sense on cancelled transfer
If the transfer is cancelled due to a disconnect or driver tear down (error code -ESHUTDOWN), then just free the command. However, if it got cancelled due to other reasons, then send a sense CHECK CONDITION status with TCM_CHECK_CONDITION_ABORT_CMD status to host notifying the delivery failure. Note that this is separate from TASK MANAGEMENT function abort task command, which will require a separate response IU. See UAS-r04 section 8. Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/f2ae293c1fc39df4d242a2f724584bf4ec105ece.1733876548.git.Thinh.Nguyen@synopsys.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions