usb: gadget: u_serial: reimplement console support
Greg Kroah-Hartman
maintainerPATCH v3 2/5 usb: gadget: u_serial: reimplement console support
Quoted 7 lines · Michał Mirosław
Rewrite console support to fix a few shortcomings of the old code preventing its use with multiple ports. This removes some duplicated code and replaces a custom kthread with simpler workqueue item.
Only port ttyGS0 gets to be a console for now.
Signed-off-by Michał Mirosław <[email protected]>
It's a tough chunk of code to review, but I _think_ it looks correct. As long as you have actually tested it :)
Reviewed-by Greg Kroah-Hartman <[email protected]>