Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 11:58 AM Tim Harvey wrote: > > On Thu, Apr 27, 2023 at 11:52 AM Fabio Estevam wrote: > > > > Hi Tim, > > > > On Thu, Apr 27, 2023 at 3:46 PM Tim Harvey wrote: > > > > > Fabio, > > > > > > Do you have another board to test with that uses both imx8mm usb host > > >

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 11:52 AM Fabio Estevam wrote: > > Hi Tim, > > On Thu, Apr 27, 2023 at 3:46 PM Tim Harvey wrote: > > > Fabio, > > > > Do you have another board to test with that uses both imx8mm usb host > > controllers? With your imx8mm dtsi sync added a simple 'usb start' > > hangs on

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Fabio Estevam
Hi Tim, On Thu, Apr 27, 2023 at 3:46 PM Tim Harvey wrote: > Fabio, > > Do you have another board to test with that uses both imx8mm usb host > controllers? With your imx8mm dtsi sync added a simple 'usb start' > hangs on my imx8mm-gw71xx board when the second controller is enabled: > starting

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 11:16 AM Fabio Estevam wrote: > > Hi Tim, > > On Thu, Apr 27, 2023 at 2:52 PM Tim Harvey wrote: > > > Fabio, > > > > The original issue I was trying to solve should not be visible on > > imx8mm-evk unless you changed its usbotg1 to dr_mode = "host" in which > > case you

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 10:54 AM Adam Ford wrote: > > On Thu, Apr 27, 2023 at 12:52 PM Tim Harvey wrote: > > > > On Thu, Apr 27, 2023 at 10:49 AM Fabio Estevam wrote: > > > > > > Hi Adam, > > > > > > On Thu, Apr 27, 2023 at 2:42 PM Adam Ford wrote: > > > > > > > There was some re-organization

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Fabio Estevam
Hi Tim, On Thu, Apr 27, 2023 at 2:52 PM Tim Harvey wrote: > Fabio, > > The original issue I was trying to solve should not be visible on > imx8mm-evk unless you changed its usbotg1 to dr_mode = "host" in which > case you should see a hang with a simple 'usb start && usb stop'. Just did the

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Fabio Estevam
On Thu, Apr 27, 2023 at 2:55 PM Adam Ford wrote: > Any chance you can update the imx8mn.dtsi as well when you do the > patch? Nano has the same USB controller, it's likely to have the same > issue. Yes, I plan to update imx8mm, imx8mn and imx8mp. Will send the series shortly. Thanks

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Adam Ford
On Thu, Apr 27, 2023 at 12:49 PM Fabio Estevam wrote: > > Hi Adam, > > On Thu, Apr 27, 2023 at 2:42 PM Adam Ford wrote: > > > There was some re-organization of the power domains in Linux in the > > device tree [1]. Do you know if those propagated to U-Boot? > > Excellent, I just synced the

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Adam Ford
On Thu, Apr 27, 2023 at 12:52 PM Tim Harvey wrote: > > On Thu, Apr 27, 2023 at 10:49 AM Fabio Estevam wrote: > > > > Hi Adam, > > > > On Thu, Apr 27, 2023 at 2:42 PM Adam Ford wrote: > > > > > There was some re-organization of the power domains in Linux in the > > > device tree [1]. Do you

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Thu, Apr 27, 2023 at 10:49 AM Fabio Estevam wrote: > > Hi Adam, > > On Thu, Apr 27, 2023 at 2:42 PM Adam Ford wrote: > > > There was some re-organization of the power domains in Linux in the > > device tree [1]. Do you know if those propagated to U-Boot? > > Excellent, I just synced the

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Fabio Estevam
Hi Adam, On Thu, Apr 27, 2023 at 2:42 PM Adam Ford wrote: > There was some re-organization of the power domains in Linux in the > device tree [1]. Do you know if those propagated to U-Boot? Excellent, I just synced the kernel imx8mm.dtsi with U-Boot and it does fix the "ums 0 mmc 1" issue I

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Adam Ford
On Thu, Apr 27, 2023 at 12:14 PM Tim Harvey wrote: > > On Wed, Mar 15, 2023 at 3:01 PM Tim Harvey wrote: > > > > Greetings, > > > > I'm seeing a hang on imx8mm-venice and imx8mn-venice boards which have > > a USB host controller in host mode when ehci_shutdown() is called > > (which is called

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Fabio Estevam
Hi Tim, On Thu, Apr 27, 2023 at 2:14 PM Tim Harvey wrote: > I haven't heard any response here so I did some more digging. This > hang should be affecting all imx8mm/imx8mn devices that have USB host > controllers configured for host mode (dr_mode = "host") and would > appear for anyone that

Re: imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-04-27 Thread Tim Harvey
On Wed, Mar 15, 2023 at 3:01 PM Tim Harvey wrote: > > Greetings, > > I'm seeing a hang on imx8mm-venice and imx8mn-venice boards which have > a USB host controller in host mode when ehci_shutdown() is called > (which is called for 'usb stop' as well as when booting a kernel once > 'usb start' has

imx8mm/imx8mn hang on usb stop / ehci_shutdown

2023-03-15 Thread Tim Harvey
Greetings, I'm seeing a hang on imx8mm-venice and imx8mn-venice boards which have a USB host controller in host mode when ehci_shutdown() is called (which is called for 'usb stop' as well as when booting a kernel once 'usb start' has been issued). This appears to be caused by the ehci_shutdown()