]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7c177cd8ca15139db46f1776b55c9d8643381a8
treeb64775c46b98d82165f6cc80cacd608b1e4e194c
parentfeca6509f0ef7d9db02414580a140bffe5cf51e1
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