From: Greg KH <greg@kroah.com>
To: Jason Wessel <jason.wessel@windriver.com>
Cc: stern@rowland.harvard.edu, linux-usb@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 3/4] usb_debug,usb_generic_serial: implement sysrq and serial break
Date: Tue, 12 May 2009 10:02:17 -0700 [thread overview]
Message-ID: <20090512170217.GL16247@kroah.com> (raw)
In-Reply-To: <1242073450-3794-4-git-send-email-jason.wessel@windriver.com>
On Mon, May 11, 2009 at 03:24:09PM -0500, Jason Wessel wrote:
> The usb_debug driver was modified to implement serial break handling
> by using a "magic" data packet comprised of the sequence:
>
> 0x00 0xff 0x01 0xfe 0x00 0xfe 0x01 0xff
>
> When the tty layer requests a serial break the usb_debug driver sends
> the magic packet. On the receiving side the magic packet is thrown
> away or a sysrq is activated depending on what kernel .config options
> have been set.
>
> The generic serial driver was modified as well as the usb serial
> headers to generically implement sysrq processing in the same way the
> non usb uart based drivers implement the sysrq handling. This will
> allow other usb serial devices to implement sysrq handling as desired.
>
> The new usb serial functions are named similarly and implemented
> similarly to the uart functions as follows:
>
> usb_serial_handle_break <-> uart_handle_break
> usb_serial_handle_sysrq_char <-> uart_handle_sysrq_char
>
> Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
> ---
> drivers/usb/serial/Kconfig | 7 +++++++
> drivers/usb/serial/generic.c | 30 ++++++++++++++++++------------
> drivers/usb/serial/usb_debug.c | 39 +++++++++++++++++++++++++++++++++++++++
> include/linux/usb/serial.h | 34 ++++++++++++++++++++++++++++++++--
> 4 files changed, 96 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig
> index c480ea4..3229321 100644
> --- a/drivers/usb/serial/Kconfig
> +++ b/drivers/usb/serial/Kconfig
> @@ -42,6 +42,13 @@ config USB_SERIAL_CONSOLE
>
> If unsure, say N.
>
> +config USB_SERIAL_SYSRQ
> + bool "Support inbound sysrq"
> + depends on USB_SERIAL_CONSOLE && MAGIC_SYSRQ
> + help
> + Say y here to enable support for sysrq if the usb serial
> + driver implements support for sysrq.
> +
I took this Kconfig option out, as it would just be confusing. Just
always enable this, and if a driver wants to support it, it can, no need
for ifdefs or anything else.
thanks,
greg k-h
prev parent reply other threads:[~2009-05-12 17:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-11 20:24 [PATCH 0/4] usb_debug serial, ftdi_sio serial and sysrq Jason Wessel
2009-05-11 20:24 ` [PATCH 1/4] usb_debug, usb_generic_serial: implement multi urb write Jason Wessel
2009-05-11 20:24 ` [PATCH 2/4] ftd_sio usb: move status check Jason Wessel
2009-05-11 20:24 ` [PATCH 3/4] usb_debug,usb_generic_serial: implement sysrq and serial break Jason Wessel
2009-05-11 20:24 ` [PATCH 4/4] ftd_sio usb: implement sysrq handling on break Jason Wessel
2009-05-12 17:02 ` Greg KH [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090512170217.GL16247@kroah.com \
--to=greg@kroah.com \
--cc=jason.wessel@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox