* [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe
@ 2021-03-11 6:03 Shawn Guo
2021-03-11 8:32 ` Sergei Shtylyov
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
0 siblings, 2 replies; 4+ messages in thread
From: Shawn Guo @ 2021-03-11 6:03 UTC (permalink / raw)
To: Felipe Balbi; +Cc: Bjorn Andersson, linux-arm-msm, linux-usb, Shawn Guo
The ACPI probe starts failing since commit bea46b981515 ("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: bea46b981515 ("usb: dwc3: qcom: Add interconnect support in dwc3 driver")
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
---
drivers/usb/dwc3/dwc3-qcom.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c
index 175a609cd0af..7dc74885a635 100644
--- a/drivers/usb/dwc3/dwc3-qcom.c
+++ b/drivers/usb/dwc3/dwc3-qcom.c
@@ -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",
--
2.17.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe
2021-03-11 6:03 [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe Shawn Guo
@ 2021-03-11 8:32 ` Sergei Shtylyov
2021-03-11 8:48 ` Shawn Guo
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
1 sibling, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2021-03-11 8:32 UTC (permalink / raw)
To: Shawn Guo, Felipe Balbi; +Cc: Bjorn Andersson, linux-arm-msm, linux-usb
Hello!
On 11.03.2021 9:03, Shawn Guo wrote:
> The ACPI probe starts failing since commit bea46b981515 ("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.
Scheild?
> Fixes: bea46b981515 ("usb: dwc3: qcom: Add interconnect support in dwc3 driver")
> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
[...]
MBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe
2021-03-11 8:32 ` Sergei Shtylyov
@ 2021-03-11 8:48 ` Shawn Guo
0 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2021-03-11 8:48 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Felipe Balbi, Bjorn Andersson, linux-arm-msm, linux-usb
On Thu, Mar 11, 2021 at 11:32:01AM +0300, Sergei Shtylyov wrote:
> Hello!
>
> On 11.03.2021 9:03, Shawn Guo wrote:
>
> > The ACPI probe starts failing since commit bea46b981515 ("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.
>
> Scheild?
s/scheild/shield
Shawn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe
2021-03-11 6:03 [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe Shawn Guo
2021-03-11 8:32 ` Sergei Shtylyov
@ 2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-arm-msm @ 2021-05-26 19:03 UTC (permalink / raw)
To: Shawn Guo; +Cc: linux-arm-msm
Hello:
This patch was applied to qcom/linux.git (refs/heads/for-next):
On Thu, 11 Mar 2021 14:03:18 +0800 you wrote:
> The ACPI probe starts failing since commit bea46b981515 ("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.
>
> [...]
Here is the summary with links:
- usb: dwc3: qcom: skip interconnect init for ACPI probe
https://git.kernel.org/qcom/c/5e4010e36a58
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-05-26 19:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-11 6:03 [PATCH] usb: dwc3: qcom: skip interconnect init for ACPI probe Shawn Guo
2021-03-11 8:32 ` Sergei Shtylyov
2021-03-11 8:48 ` Shawn Guo
2021-05-26 19:03 ` patchwork-bot+linux-arm-msm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).