]> git.itanic.dy.fi Git - linux-stable/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)
commit7c6c334e6fc8cd99e780fd74cd29687886a81862
tree87c7d9ae754b95eedd90ca376bd415e0d4e1ba10
parent4db356924a50f72a00834ae04f11202d9703faeb
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