]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: Add reset controller support
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Mon, 29 Jun 2020 16:37:25 +0000 (18:37 +0200)
committerMatthias Brugger <mbrugger@suse.com>
Fri, 10 Jul 2020 09:49:28 +0000 (11:49 +0200)
commit0b80371b350e6732a02d5e39bf900413ae1271ba
treec6b01968e0d4c12b8614590cd3616cf97e29af93
parent6836d59094727423086dbc27fd7732f514495af4
usb: xhci: Add reset controller support

Some atypical users of xhci might need to manually reset their xHCI
controller before starting the HCD setup. Check if a reset controller
device is available to the PCI bus and trigger a reset.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
[mb: squash fix to only build xhci_reset_hw() if CONFIG_DM_BUS]
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.c
include/usb/xhci.h