]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: move and rename xhci_cleanup_halted_endpoint()
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 29 Jan 2021 13:00:37 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2021 13:16:51 +0000 (14:16 +0100)
commitb40ac97360afd073b8008ae6e3d57130cd145e03
tree87c7d9ae754b95eedd90ca376bd415e0d4e1ba10
parent9207092a31c10ad06854b1be83805c4f6e84c036
xhci: move and rename xhci_cleanup_halted_endpoint()

Halted endpoints can be discoverd both when handling transfer events and
command completion events. Move code that handles halted endpoints before
both of those event handlers.

Rename the function to xhci_handle_halted_ep() to better describe
what it does. Try to reserve "cleanup" word in function names for last
stage cleanup activities.

No functional changes

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210129130044.206855-21-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c