From: Bjorn Andersson <bjorn.andersson@linaro.org>
To: Souradeep Chowdhury <quic_schowdhu@quicinc.com>
Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org,
devicetree@vger.kernel.org, pure.logic@nexus-software.ie,
greg@kroah.com, robh@kernel.org, linux-kernel@vger.kernel.org,
quic_tsoni@quicinc.com, quic_psodagud@quicinc.com,
quic_satyap@quicinc.com, quic_pheragu@quicinc.com,
quic_rjendra@quicinc.com, quic_sibis@quicinc.com,
quic_saipraka@quicinc.com
Subject: Re: [PATCH V4 3/6] soc: qcom: eud: Add driver support for Embedded USB Debugger(EUD)
Date: Fri, 28 Jan 2022 08:11:19 -0800 [thread overview]
Message-ID: <YfQVpzZ42MdJkkZW@ripper> (raw)
In-Reply-To: <c072d162-e371-e44b-8160-d06a8a6c051c@quicinc.com>
On Thu 27 Jan 04:01 PST 2022, Souradeep Chowdhury wrote:
>
> On 1/26/2022 10:17 AM, Bjorn Andersson wrote:
> > On Fri 21 Jan 07:53 CST 2022, Souradeep Chowdhury wrote:
[..]
> > > + return PTR_ERR(chip->base);
> > > +
> > > + chip->mode_mgr = devm_platform_ioremap_resource(pdev, 1);
> > > + if (IS_ERR(chip->mode_mgr))
> > > + return PTR_ERR(chip->mode_mgr);
> > > +
> > > + chip->irq = platform_get_irq(pdev, 0);
> > > + ret = devm_request_threaded_irq(&pdev->dev, chip->irq, handle_eud_irq,
> > > + handle_eud_irq_thread, IRQF_ONESHOT, NULL, chip);
> > > + if (ret)
> > > + return dev_err_probe(chip->dev, ret, "failed to allocate irq\n");
> > > +
> > > + enable_irq_wake(chip->irq);
> > > +
> > > + platform_set_drvdata(pdev, chip);
> > > +
> > > + return 0;
> > Per the updated binding, the EUD would now be a usb-role-switch as well
> > and when not enabled should simply propagate the incoming requests. So I
> > was expecting this to register as a usb_role_switch as well...
>
> Can you please elaborate on this?
>
> Do I need to define a separate 'usb_role_switch_desc' here and register
> using 'usb_role_switch_register'?
>
> Also what should be the set method in this case for usb_role_switch_desc?
>
My expectation is that in normal operation pmic_glink will provide role
switching requests and then as you enable the EUD it will force the role
to gadget.
So my suggestion was that you make eud a role-switch and as long as EUD
is disabled you just pass through the role-switch vote from pmic_glink
onto the dwc3.
Perhaps I'm misunderstanding how this is really working.
Regards,
Bjorn
next prev parent reply other threads:[~2022-01-28 16:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-21 13:53 [PATCH V4 0/6] Add Embedded USB Debugger (EUD) driver Souradeep Chowdhury
2022-01-21 13:53 ` [PATCH V4 1/6] dt-bindings: Add the yaml bindings for EUD Souradeep Chowdhury
2022-01-26 4:22 ` Bjorn Andersson
2022-01-21 13:53 ` [PATCH V4 2/6] bindings: usb: dwc3: Update dwc3 properties for EUD connector Souradeep Chowdhury
2022-01-26 4:21 ` Bjorn Andersson
2022-01-27 10:58 ` Souradeep Chowdhury
2022-01-21 13:53 ` [PATCH V4 3/6] soc: qcom: eud: Add driver support for Embedded USB Debugger(EUD) Souradeep Chowdhury
2022-01-26 4:47 ` Bjorn Andersson
2022-01-27 12:01 ` Souradeep Chowdhury
2022-01-28 16:11 ` Bjorn Andersson [this message]
2022-01-31 5:49 ` Souradeep Chowdhury
2022-01-26 9:30 ` Greg KH
2022-01-27 12:04 ` Souradeep Chowdhury
2022-01-21 13:53 ` [PATCH V4 4/6] arm64: dts: qcom: sc7280: Add EUD dt node and dwc3 connector Souradeep Chowdhury
2022-01-26 4:28 ` Bjorn Andersson
2022-01-27 11:00 ` Souradeep Chowdhury
2022-01-21 13:53 ` [PATCH V4 5/6] arm64: dts: qcom: sc7280: Set the default dr_mode for usb2 Souradeep Chowdhury
2022-01-26 4:29 ` Bjorn Andersson
2022-01-21 13:53 ` [PATCH V4 6/6] MAINTAINERS: Add maintainer entry for EUD Souradeep Chowdhury
2022-01-26 4:29 ` Bjorn Andersson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YfQVpzZ42MdJkkZW@ripper \
--to=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=greg@kroah.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=pure.logic@nexus-software.ie \
--cc=quic_pheragu@quicinc.com \
--cc=quic_psodagud@quicinc.com \
--cc=quic_rjendra@quicinc.com \
--cc=quic_saipraka@quicinc.com \
--cc=quic_satyap@quicinc.com \
--cc=quic_schowdhu@quicinc.com \
--cc=quic_sibis@quicinc.com \
--cc=quic_tsoni@quicinc.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox