Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: dwc3: xilinx: add shutdown callback

Adds a shutdown callback to ensure that the XHCI stack is properly
shutdown in reboot/shutdown path.

In kexec flow, kernel_restart_prepare() performs actions necessary
to prepare the system for a restart and invokes device_shutdown. To
ensure proper shutdown attach the dwc3 shutdown implementation which
mirrors the remove method.

$ kexec -e

<snip>
xhci-hcd xhci-hcd.0.auto: remove, state 1
usb usb1: USB disconnect, device number 1
usb 1-1: USB disconnect, device number 6
xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
kexec_core: Starting new kernel

Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/1748977771-714153-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Radhey Shyam Pandey and committed by
Greg Kroah-Hartman
70627bf8 58992bf3

+1
+1
drivers/usb/dwc3/dwc3-xilinx.c
··· 422 422 static struct platform_driver dwc3_xlnx_driver = { 423 423 .probe = dwc3_xlnx_probe, 424 424 .remove = dwc3_xlnx_remove, 425 + .shutdown = dwc3_xlnx_remove, 425 426 .driver = { 426 427 .name = "dwc3-xilinx", 427 428 .of_match_table = dwc3_xlnx_of_match,