linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roger Quadros <rogerq@ti.com>
To: Peter Chen <peter.chen@nxp.com>, <balbi@kernel.org>
Cc: <linux-usb@vger.kernel.org>, <linux-imx@nxp.com>,
	<pawell@cadence.com>, <gregkh@linuxfoundation.org>,
	<jun.li@nxp.com>
Subject: Re: [PATCH 1/4] usb: cdns3: core: get role switch node from firmware
Date: Thu, 2 Apr 2020 14:49:15 +0300	[thread overview]
Message-ID: <7ed54cd3-c9e4-ee50-9e40-563dd4592613@ti.com> (raw)
In-Reply-To: <20200331081005.32752-1-peter.chen@nxp.com>



On 31/03/2020 11:10, Peter Chen wrote:
> After that, the role switch device (eg, Type-C device) could call
> cdns3_role_set to finish the role switch.
> 
> Signed-off-by: Peter Chen <peter.chen@nxp.com>

For this patch and all in the series

Reviewed-by: Roger Quadros <rogerq@ti.com>

> ---
>   drivers/usb/cdns3/core.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
> index 4aafba20f450..704c679a0c5d 100644
> --- a/drivers/usb/cdns3/core.c
> +++ b/drivers/usb/cdns3/core.c
> @@ -528,6 +528,8 @@ static int cdns3_probe(struct platform_device *pdev)
>   	sw_desc.get = cdns3_role_get;
>   	sw_desc.allow_userspace_control = true;
>   	sw_desc.driver_data = cdns;
> +	if (device_property_read_bool(dev, "usb-role-switch"))
> +		sw_desc.fwnode = dev->fwnode;
>   
>   	cdns->role_sw = usb_role_switch_register(dev, &sw_desc);
>   	if (IS_ERR(cdns->role_sw)) {
> 

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

      parent reply	other threads:[~2020-04-02 11:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-31  8:10 [PATCH 1/4] usb: cdns3: core: get role switch node from firmware Peter Chen
2020-03-31  8:10 ` [PATCH 2/4] usb: cdns3: delete role_override Peter Chen
2020-03-31  8:10 ` [PATCH 3/4] usb: cdns3: change "cdsn3" to"cdns3" Peter Chen
2020-03-31  8:10 ` [PATCH 4/4] usb: cdns3: change dev_info to dev_dbg for debug message Peter Chen
2020-04-02  8:53 ` [PATCH 1/4] usb: cdns3: core: get role switch node from firmware Roger Quadros
2020-04-02  9:24   ` Peter Chen
2020-04-02  9:26     ` Roger Quadros
2020-04-02  9:37       ` Peter Chen
2020-04-02  9:45         ` Roger Quadros
2020-04-02 11:49 ` Roger Quadros [this message]

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=7ed54cd3-c9e4-ee50-9e40-563dd4592613@ti.com \
    --to=rogerq@ti.com \
    --cc=balbi@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=jun.li@nxp.com \
    --cc=linux-imx@nxp.com \
    --cc=linux-usb@vger.kernel.org \
    --cc=pawell@cadence.com \
    --cc=peter.chen@nxp.com \
    /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;
as well as URLs for NNTP newsgroup(s).