From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cw1HD-0007Ju-LO for barebox@lists.infradead.org; Thu, 06 Apr 2017 06:52:17 +0000 Date: Thu, 6 Apr 2017 08:51:51 +0200 From: Sascha Hauer Message-ID: <20170406065151.ecalmbyilijggaxu@pengutronix.de> References: <20170403083101.28047-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20170403083101.28047-1-o.rempel@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2] usb: gadget: set otg to peripheral mode on autostart To: Oleksij Rempel Cc: barebox@lists.infradead.org On Mon, Apr 03, 2017 at 10:31:01AM +0200, Oleksij Rempel wrote: > we won't be able to start if otg is not properly configured. > > Signed-off-by: Oleksij Rempel > --- > drivers/usb/gadget/autostart.c | 3 +++ > 1 file changed, 3 insertions(+) Applied, thanks Sascha > > diff --git a/drivers/usb/gadget/autostart.c b/drivers/usb/gadget/autostart.c > index 43c2ba23d..4ad1dd6be 100644 > --- a/drivers/usb/gadget/autostart.c > +++ b/drivers/usb/gadget/autostart.c > @@ -14,6 +14,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -35,6 +36,8 @@ static int usbgadget_autostart(void) > if (!autostart) > return 0; > > + setenv("otg.mode", "peripheral"); > + > if (fastboot_function) > opts.fastboot_opts.files = file_list_parse(fastboot_function); > > -- > 2.11.0 > > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > -- 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 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox