mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
UPSTREAM: usb: dwc3: qcom: skip interconnect init for ACPI probe
The ACPI probe starts failing since commitbea46b9815("usb: dwc3: qcom: Add interconnect support in dwc3 driver"), because there is no interconnect support for ACPI, and of_icc_get() call in dwc3_qcom_interconnect_init() will just return -EINVAL. Fix the problem by skipping interconnect init for ACPI probe, and then the NULL icc_path_ddr will simply just scheild all ICC calls. Fixes:bea46b9815("usb: dwc3: qcom: Add interconnect support in dwc3 driver") Signed-off-by: Shawn Guo <shawn.guo@linaro.org> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210311060318.25418-1-shawn.guo@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit5e4010e36a) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Iec6a686e1445a562894cafadad9099b6ae6ba0bf
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
a7b42508e8
commit
3b196be83e
@@ -244,6 +244,9 @@ static int dwc3_qcom_interconnect_init(struct dwc3_qcom *qcom)
|
||||
struct device *dev = qcom->dev;
|
||||
int ret;
|
||||
|
||||
if (has_acpi_companion(dev))
|
||||
return 0;
|
||||
|
||||
qcom->icc_path_ddr = of_icc_get(dev, "usb-ddr");
|
||||
if (IS_ERR(qcom->icc_path_ddr)) {
|
||||
dev_err(dev, "failed to get usb-ddr path: %ld\n",
|
||||
|
||||
Reference in New Issue
Block a user