RE: imx7: USB modem reset causes modem to not re-connect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




> -----Original Message-----
> From: Fabio Estevam <festevam@xxxxxxxxx>
> Sent: Tuesday, December 13, 2022 5:33 PM
> To: Jun Li <jun.li@xxxxxxx>
> Cc: bjorn@xxxxxxx; Peter Chen <peter.chen@xxxxxxxxxx>; Marek Vasut
> <marex@xxxxxxx>; netdev <netdev@xxxxxxxxxxxxxxx>; USB list
> <linux-usb@xxxxxxxxxxxxxxx>; Alexander Stein
> <alexander.stein@xxxxxxxxxxxxxxx>; Schrempf Frieder
> <frieder.schrempf@xxxxxxxxxx>
> 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@xxxxxxx> 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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux