From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1X9FJm-0002Gs-5M for barebox@lists.infradead.org; Mon, 21 Jul 2014 15:15:59 +0000 From: Sascha Hauer Date: Mon, 21 Jul 2014 17:14:29 +0200 Message-Id: <1405955687-27433-6-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1405955687-27433-1-git-send-email-s.hauer@pengutronix.de> References: <1405955687-27433-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 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: [PATCH 05/23] USB: gadget: usbserial: Always enable console To: barebox@lists.infradead.org When a USB console is registered on the command line it doesn't make much sense to disable it in the core. Always enable the USB console to make it usable without additional commands when registered. Signed-off-by: Sascha Hauer --- drivers/usb/gadget/u_serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index b6a4afd..8c58746 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c @@ -535,6 +535,8 @@ int gserial_connect(struct gserial *gser, u8 port_num) if (status) goto fail_out; + dev_set_param(&cdev->class_dev, "active", "ioe"); + /* REVISIT if waiting on "carrier detect", signal. */ /* if it's already open, start I/O ... and notify the serial -- 2.0.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox