Skip to contentSkip to conversation

usb: gadget: u_serial: reimplement console support

PATCH Superseded Greg Kroah-Hartman 1 participant 1 message Feb 27, 2019 USB

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 2/5 usb: gadget: u_serial: reimplement console support

Quoted 10 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.

---
 drivers/usb/gadget/function/u_serial.c | 352 ++++++++++++-------------
 1 file changed, 164 insertions(+), 188 deletions(-)

Very nice, getting rid of the kthread alone makes this patch worth while :)