Re: [PATCH] imx{5,6}: reset otg port after usb-serial boot

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

 



On Fri, Aug 24, 2018 at 07:04:07PM +0200, Sascha Hauer wrote:
> On Fri, Aug 24, 2018 at 05:17:39PM +0200, Michael Grzeschik wrote:
> > The ROM loader leaves the otg port in peripheral mode which confuses the
> > host controller. After the handover to barebox we ensure to bring in the
> > port into the otg state by resetting it.
> > 
> > Signed-off-by: Michael Grzeschik <m.grzeschik@xxxxxxxxxxxxxx>
> > ---
> > This was tested with mx53 and mx6 for now. I suppose we should
> > adopt this to the mx2 and mx3 models.
> 
> Looks like a variant of the patch I posted here:
> https://www.spinics.net/lists/u-boot-v2/msg34153.html
> I have given the reason this can't be applied directly here:
> https://www.spinics.net/lists/u-boot-v2/msg34196.html

Just toggling RS was not enough in my case.

I get that it is not safe to toggle bits if the clock is not
there. We could check for the bootsource. Is it possible to
ensure that we are started by imx-usb-loader?

mgr

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

Attachment: signature.asc
Description: PGP signature

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox

[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux