All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jun Li <jun.li@nxp.com>
To: Fabio Estevam <festevam@gmail.com>
Cc: "bjorn@mork.no" <bjorn@mork.no>,
	Peter Chen <peter.chen@kernel.org>, Marek Vasut <marex@denx.de>,
	netdev <netdev@vger.kernel.org>,
	USB list <linux-usb@vger.kernel.org>,
	Alexander Stein <alexander.stein@ew.tq-group.com>,
	Schrempf Frieder <frieder.schrempf@kontron.de>
Subject: RE: imx7: USB modem reset causes modem to not re-connect
Date: Tue, 13 Dec 2022 11:17:41 +0000	[thread overview]
Message-ID: <PA4PR04MB9640B1C33E8D5704885A9A3B89E39@PA4PR04MB9640.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <CAOMZO5AMy_H-zw1phB6MtNdpbCwtXg74BwHrs5YttykN=-wvnQ@mail.gmail.com>



> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: Tuesday, December 13, 2022 5:33 PM
> To: Jun Li <jun.li@nxp.com>
> Cc: bjorn@mork.no; Peter Chen <peter.chen@kernel.org>; Marek Vasut
> <marex@denx.de>; netdev <netdev@vger.kernel.org>; USB list
> <linux-usb@vger.kernel.org>; Alexander Stein
> <alexander.stein@ew.tq-group.com>; Schrempf Frieder
> <frieder.schrempf@kontron.de>
> Subject: Re: imx7: USB modem reset causes modem to not re-connect
> 
> Hi Li Jun,
> 
> On Tue, Dec 13, 2022 at 5:15 AM Jun Li <jun.li@nxp.com> wrote:
> 
> > So this disconnect and then connect is you expected behavior?
> 
> Yes, correct.
> 
> I found a way to get this behavior in both 5.10 as well as 6.1 kernels:
> If I remove the USB_OTG2_OC pinctrl entry and pass 'disable-over-current',
> it works as expected.

So the pinctrl is using MX7D_PAD_UART3_RTS_B__USB_OTG2_OC?

> 
> On this board, the MX7D_PAD_UART3_RTS_B__USB_OTG2_OC pad goes to 3.3V via
> a 10Kohm pullup resistor.

So the pad is fixed at 3.3V, never can be tied low?

> 
> Could you please explain why removing theUSB_OTG2_OC entry makes things to
> work?

So the actual board design does not want to have OC feature, right? if that
is the case, disable-over-current is the right way.

What's the OC polarity config in your SW, active low, or active high?
Basically if the OC condition is active, the host mode cannot work
well.

Li Jun
> 
> Thanks

  reply	other threads:[~2022-12-13 11:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 18:10 imx7: USB modem reset causes modem to not re-connect Fabio Estevam
2022-12-12 19:01 ` Fabio Estevam
2022-12-13  7:31   ` Alexander Stein
2022-12-13  8:15   ` Jun Li
2022-12-13  9:33     ` Fabio Estevam
2022-12-13 11:17       ` Jun Li [this message]
2022-12-16 12:00         ` Fabio Estevam
2022-12-13  8:12 ` Jun Li

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=PA4PR04MB9640B1C33E8D5704885A9A3B89E39@PA4PR04MB9640.eurprd04.prod.outlook.com \
    --to=jun.li@nxp.com \
    --cc=alexander.stein@ew.tq-group.com \
    --cc=bjorn@mork.no \
    --cc=festevam@gmail.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=linux-usb@vger.kernel.org \
    --cc=marex@denx.de \
    --cc=netdev@vger.kernel.org \
    --cc=peter.chen@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.