linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Peter Chen <hzpeterchen@gmail.com>
To: Michael Trimarchi <michael@amarulasolutions.com>
Cc: Peter Chen <Peter.Chen@nxp.com>,
	linux-usb@vger.kernel.org,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [RFC,1/3] usb: chipidea: usbmisc: evdo is only specific to OTG port
Date: Mon, 15 Jan 2018 11:05:43 +0800	[thread overview]
Message-ID: <20180115030543.GA5968@b29397-desktop> (raw)

On Sat, Jan 13, 2018 at 04:41:46PM +0100, Michael Trimarchi wrote:
> The USB_PHY_CTRL_FUNC is used specific for OTG port as described
> in user manual. EVDO need to be set only for index 0 that
> corrispond to OTG port

%s/corrispond/correspond/

> 
> Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com>
> ---
>  drivers/usb/chipidea/usbmisc_imx.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/drivers/usb/chipidea/usbmisc_imx.c b/drivers/usb/chipidea/usbmisc_imx.c
> index 8cdf0af1..a52f5a8 100644
> --- a/drivers/usb/chipidea/usbmisc_imx.c
> +++ b/drivers/usb/chipidea/usbmisc_imx.c
> @@ -148,6 +148,9 @@ static int usbmisc_imx25_post(struct imx_usbmisc_data *data)
>  	if (data->index > 2)
>  		return -EINVAL;
>  
> +	if (data->index)
> +		return 0;
> +
>  	if (data->evdo) {
>  		spin_lock_irqsave(&usbmisc->lock, flags);
>  		reg = usbmisc->base + MX25_USB_PHY_CTRL_OFFSET;
> -- 
> 2.7.4
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2018-01-15  3:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-15  3:05 Peter Chen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-01-13 15:41 [RFC,1/3] usb: chipidea: usbmisc: evdo is only specific to OTG port Michael Trimarchi

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=20180115030543.GA5968@b29397-desktop \
    --to=hzpeterchen@gmail.com \
    --cc=Peter.Chen@nxp.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=michael@amarulasolutions.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).