usb: dwc3: xilinx: add reset-controller support
authorPiyush Mehta <piyush.mehta@amd.com>
Fri, 13 Oct 2023 12:58:47 +0000 (18:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 10:49:12 +0000 (12:49 +0200)
commitde7ecc4e0570d7956d8745faeeda26f0873b7324
treed113371c213d76b9ab1dd003ed24e2baff593bb7
parent46b6fc5380071e1e1372ed0b24a6c6743e2a9d2c
usb: dwc3: xilinx: add reset-controller support

Add a reset-controller for supporting Xilinx versal platforms. To reset
the USB controller, get the reset ID from device-tree and using ID trigger
the reset, with the assert and deassert reset controller APIs for USB
controller initialization.

Signed-off-by: Piyush Mehta <piyush.mehta@amd.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20231013125847.20334-1-piyush.mehta@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-xilinx.c