usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot
authorShawn Guo <shawn.guo@linaro.org>
Fri, 15 Jan 2021 03:50:57 +0000 (11:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 16:06:29 +0000 (17:06 +0100)
commit39bcc4b7f3985ddb742cf33b2ed972f4cd73ea24
tree461dce7978b13c4ac135d7f3e679f1b76bdf5ee1
parent10551fbc5517b67758fc2600faa9d5c4eb4d30a7
usb: dwc3: qcom: add URS Host support for sdm845 ACPI boot

commit c25c210f590e7a37eecd865d84f97d1f40e39786 upstream.

For sdm845 ACPI boot, the URS (USB Role Switch) node in ACPI DSDT table
holds the memory resource, while interrupt resources reside in the child
nodes USB0 and UFN0.  It adds USB0 host support by probing URS node,
creating platform device for USB0 node, and then retrieve interrupt
resources from USB0 platform device.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Link: https://lore.kernel.org/r/20210115035057.10994-1-shawn.guo@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-qcom.c