usb: gadget: Add the console support for usb-to-serial port
authorBaolin Wang <baolin.wang@linaro.org>
Sat, 21 Nov 2015 07:44:53 +0000 (15:44 +0800)
committerFelipe Balbi <balbi@ti.com>
Tue, 22 Dec 2015 17:49:39 +0000 (11:49 -0600)
commita5beaaf39455e4388251e95ef2ce6849cabf3393
treeb64775c46b98d82165f6cc80cacd608b1e4e194c
parentbe99c84300950e876074916b215b511f69f83d3b
usb: gadget: Add the console support for usb-to-serial port

It dose not work when we want to use the usb-to-serial port based
on one usb gadget as a console. Thus this patch adds the console
initialization to support this request.

To avoid the re-entrance when transferring data with usb endpoint,
it introduces a kthread to do the IO transmission.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/Kconfig
drivers/usb/gadget/function/u_serial.c