Skip to content

Commit 0d3bbe2

Browse files
committed
xhci: hub: export symbol on xhci_hub_control
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2122414 Upstream Status: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Tested: Verify USB-A and USB-C are functional on Nvidia Orin board, and no regressions on other platforms. commit 2cbe475 Author: Jim Lin <jilin@nvidia.com> Date: Fri Nov 11 18:18:12 2022 +0800 xhci: hub: export symbol on xhci_hub_control XHCI host drivers may override the default xhci_hub_control() with their own device specific function. To allow these host drivers to call the xhci_hub_control() function from within their own hub_control() callback and be built as a module, export the symbol for xhci_hub_control. Signed-off-by: Jim Lin <jilin@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Thierry Reding <treding@nvidia.com> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20221111101813.32482-3-jilin@nvidia.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 2cbe475) Signed-off-by: David Marlin <dmarlin@redhat.com>
1 parent 43974eb commit 0d3bbe2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/host/xhci-hub.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@ int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
16091609
spin_unlock_irqrestore(&xhci->lock, flags);
16101610
return retval;
16111611
}
1612+
EXPORT_SYMBOL_GPL(xhci_hub_control);
16121613

16131614
/*
16141615
* Returns 0 if the status hasn't changed, or the number of bytes in buf.

0 commit comments

Comments
 (0)