Skip to content

usb_debug driver improvements

Jason Wessel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 32 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5usb_debug: implement multi urb writedrivers/usb/serial/usb_debug.c+177 -04 replies
2/5usb_debug,usb_generic_serial: implement sysrq and serial breakdrivers/usb/serial/Kconfig drivers/usb/serial/generic.c drivers/usb/serial/usb_debug.c +1 more+93 -130 replies
3/5usb,early_printk: insert cr prior to nl as neededarch/x86/kernel/early_printk.c+16 -63 replies
4/5usb,early_printk: unregister early usb before rest_init()arch/x86/kernel/early_printk.c+22 -03 replies
5/5usb_debug: EXPERIMENTAL - poll hcd device to force writesdrivers/usb/core/hcd.c drivers/usb/serial/usb_debug.c+24 -022 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] usb_debug driver improvements

After using a USB 2.0 debug device along with the early and standard usb_debug driver, I came up with some patches to help improve the functionality of using it with the linux kernel.

The last patch in this series is not meant for upstream merging, it is marked experimental along with questions. The first 4 patches in the series are a request for review, comments and future merge consideration.

The idea behind this patch series is to allow the USB 2.0 debug device to operate as both an early printk device and a system console with the full capability for sysrq.

After resolving the issue with the last patch in the series work can progress against adding a debugger interface via this connection as well.

Thanks,
Jason.

The short log and git info is below, which is against the 2.6.30 development tree.

The following changes since commit a425a638c858fd10370b573bde81df3ba500e271:
are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_gregkh

Jason Wessel (5):
usb_debug: implement multi urb write usb_debug,usb_generic_serial: implement sysrq and serial break usb,early_printk: insert cr prior to nl as needed usb,early_printk: unregister early usb before rest_init()
usb_debug: EXPERIMENTAL - poll hcd device to force writes

 arch/x86/kernel/early_printk.c |   44 +++++++-
 drivers/usb/core/hcd.c         |    1 +
 drivers/usb/serial/Kconfig     |    7 ++
 drivers/usb/serial/generic.c   |   26 +++--
 drivers/usb/serial/usb_debug.c |  230 ++++++++++++++++++++++++++++++++++++++++
 include/linux/usb/serial.h     |   34 ++++++-
 6 files changed, 323 insertions(+), 19 deletions(-)