From: Mike Frysinger <vapier.adi@gmail.com>
To: Robin Getz <rgetz@blackfin.uclinux.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
greg@kroah.com, Jason Wessel <jason.wessel@windriver.com>,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH 2/2] usb_serial: only allow sysrq on a console port
Date: Mon, 6 Jul 2009 00:56:24 -0400 [thread overview]
Message-ID: <8bd0f97a0907052156m44483903i9b2f35428d1bbe62@mail.gmail.com> (raw)
In-Reply-To: <200907060038.18323.rgetz@blackfin.uclinux.org>
On Mon, Jul 6, 2009 at 00:38, Robin Getz wrote:
> On Sun 5 Jul 2009 14:17, Alan Cox pondered:
>> > If Jason's patch is necessary () - should this be fixed up for
>> > standard UARTs too?
>>
>> I think so yes, although I'd not realised it wasn't protected currently
>> ?
>
> Hmm - try as I may - I can't get this to fail - so it must be protected
> somewhere....
>
> Ahh---
>
> It is in include/linux/serial_core.h:uart_handle_break() - never checked the
> header for the magic before I bugged you... sorry about that...
>
>> > The above patch would sync the (seemlying duplicated) code between
>> > drivers/usb/serial/generic.c and include/linux/serial_core.h
>>
>> There is a lot of near duplicate code like this. That is one reason for
>> adding struct tty_port. In theory both could be collapsed into
>>
>> int tty_port_handle_sysrq(struct tty_port *port, unsigned int ch)
>> {
>> }
>>
>> at this point as both USB and serial layer UARTs now have a port object.
>> That would just need port->sysrq collapsing into the tty_port.
>> port->console sort of already is.
>
> It appears that the usb serial doesn't handle breaks like serial_core does. (I
> don't see any support for SAK in usb_serial either?)
>
> Maybe _that_ is the real problem that Jason is trying to work around???
perhaps, but what Jason proposed originally sounds pretty sane. if i
enable sysrq support on my desktop, i dont want some development board
being able to send a sysrq request back over my serial port and
rebooting my desktop.
-mike
next prev parent reply other threads:[~2009-07-06 4:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-29 18:34 [PATCH 0/2] more usb sysrq improvements Jason Wessel
2009-05-29 18:34 ` [PATCH 1/2] pl2303 usb_serial: implement sysrq handling on break Jason Wessel
2009-05-29 18:34 ` [PATCH 2/2] usb_serial: only allow sysrq on a console port Jason Wessel
2009-06-01 13:35 ` Alan Cox
2009-07-05 16:54 ` Robin Getz
2009-07-05 18:17 ` Alan Cox
2009-07-06 4:38 ` Robin Getz
2009-07-06 4:56 ` Mike Frysinger [this message]
2009-07-06 5:33 ` Robin Getz
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=8bd0f97a0907052156m44483903i9b2f35428d1bbe62@mail.gmail.com \
--to=vapier.adi@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=greg@kroah.com \
--cc=jason.wessel@windriver.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=rgetz@blackfin.uclinux.org \
/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
all inboxes | Powered by JetHome®