|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
linux-next: manual merge of the ttydev tree with the usb.current treeHi Alan,
Today's linux-next merge of the ttydev tree got conflicts in drivers/usb/serial/generic.c and include/linux/usb/serial.h between commit d8298d029cdd5d944c3d8369d2862de94d12ae4b ("USB: serial: regression fix to move sysrq from hot path") from the usb.current tree and commit cf8456fe1aaed1776bf4c26c18adef76e472b9fa ("tty-usb-fix-perf-regression") from the ttydev tree. Also between commit a2170a444ef9a89a7ec9acc72d79e5db433effc4 ("USB: serial: optimize sysrq function calls") from the usb.current tree and commit bfce6b042a47c9cdd55c7cd231e58710ec1fa4e1 ("tty-usb-fix-kref-leak") from the ttydev tree. The first two commits above seem to be trying to do the same thing (or similar) so I have used the ttydev version for now. I fixed them up (see below) and can carry the fixes as necessary. -- Cheers, Stephen Rothwell sfr@... diff --cc drivers/usb/serial/generic.c index 48f6743,21dd6e7..0000000 --- a/drivers/usb/serial/generic.c +++ b/drivers/usb/serial/generic.c diff --cc include/linux/usb/serial.h index 4601e0d,0ec50ba..0000000 --- a/include/linux/usb/serial.h +++ b/include/linux/usb/serial.h @@@ -325,34 -330,6 +325,35 @@@ extern struct usb_serial_driver usb_ser extern struct bus_type usb_serial_bus_type; extern struct tty_driver *usb_serial_tty_driver; - static inline int usb_serial_handle_sysrq_char(struct usb_serial_port *port, ++static inline int usb_serial_handle_sysrq_char(struct tty_struct *tty, ++ struct usb_serial_port *port, + unsigned int ch) +{ +#ifdef CONFIG_MAGIC_SYSRQ + if (port->sysrq && port->console) { + if (ch && time_before(jiffies, port->sysrq)) { - handle_sysrq(ch, tty_port_tty_get(&port->port)); ++ handle_sysrq(ch, tty); + port->sysrq = 0; + return 1; + } + port->sysrq = 0; + } +#endif /* CONFIG_MAGIC_SYSRQ */ + return 0; +} + +static inline int usb_serial_handle_break(struct usb_serial_port *port) +{ +#ifdef CONFIG_MAGIC_SYSRQ + if (!port->sysrq) { + port->sysrq = jiffies + HZ*5; + return 1; + } + port->sysrq = 0; +#endif /* CONFIG_MAGIC_SYSRQ */ + return 0; +} + static inline void usb_serial_debug_data(int debug, struct device *dev, const char *function, int size, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@... More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |
|
|
Re: linux-next: manual merge of the ttydev tree with the usb.current treeOn Thu, Jul 09, 2009 at 01:04:30PM +1000, Stephen Rothwell wrote:
> Hi Alan, > > Today's linux-next merge of the ttydev tree got conflicts in > drivers/usb/serial/generic.c and include/linux/usb/serial.h between commit > d8298d029cdd5d944c3d8369d2862de94d12ae4b ("USB: serial: regression fix to > move sysrq from hot path") from the usb.current tree and commit > cf8456fe1aaed1776bf4c26c18adef76e472b9fa ("tty-usb-fix-perf-regression") > from the ttydev tree. Also between commit > a2170a444ef9a89a7ec9acc72d79e5db433effc4 ("USB: serial: optimize sysrq > function calls") from the usb.current tree and commit > bfce6b042a47c9cdd55c7cd231e58710ec1fa4e1 ("tty-usb-fix-kref-leak") from > the ttydev tree. > > The first two commits above seem to be trying to do the same thing (or > similar) so I have used the ttydev version for now. > > I fixed them up (see below) and can carry the fixes as necessary. Thanks for the fix, I don't know what happened in the tty tree, I've not touched the USB tree for a week or so now... thanks, greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@... More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |
|
|
Re: linux-next: manual merge of the ttydev tree with the usb.current treeHi Greg,
On Thu, 9 Jul 2009 16:19:56 -0700 Greg KH <greg@...> wrote: > > On Thu, Jul 09, 2009 at 01:04:30PM +1000, Stephen Rothwell wrote: > > > > Today's linux-next merge of the ttydev tree got conflicts in > > drivers/usb/serial/generic.c and include/linux/usb/serial.h between commit > > d8298d029cdd5d944c3d8369d2862de94d12ae4b ("USB: serial: regression fix to > > move sysrq from hot path") from the usb.current tree and commit > > cf8456fe1aaed1776bf4c26c18adef76e472b9fa ("tty-usb-fix-perf-regression") > > from the ttydev tree. Also between commit > > a2170a444ef9a89a7ec9acc72d79e5db433effc4 ("USB: serial: optimize sysrq > > function calls") from the usb.current tree and commit > > bfce6b042a47c9cdd55c7cd231e58710ec1fa4e1 ("tty-usb-fix-kref-leak") from > > the ttydev tree. > > > > The first two commits above seem to be trying to do the same thing (or > > similar) so I have used the ttydev version for now. > > > > I fixed them up (see below) and can carry the fixes as necessary. > > Thanks for the fix, I don't know what happened in the tty tree, I've not > touched the USB tree for a week or so now... Linus. -- Cheers, Stephen Rothwell sfr@... http://www.canb.auug.org.au/~sfr/ |
|
|
Re: linux-next: manual merge of the ttydev tree with the usb.current treeOn Fri, Jul 10, 2009 at 10:06:25AM +1000, Stephen Rothwell wrote:
> Hi Greg, > > On Thu, 9 Jul 2009 16:19:56 -0700 Greg KH <greg@...> wrote: > > > > On Thu, Jul 09, 2009 at 01:04:30PM +1000, Stephen Rothwell wrote: > > > > > > Today's linux-next merge of the ttydev tree got conflicts in > > > drivers/usb/serial/generic.c and include/linux/usb/serial.h between commit > > > d8298d029cdd5d944c3d8369d2862de94d12ae4b ("USB: serial: regression fix to > > > move sysrq from hot path") from the usb.current tree and commit > > > cf8456fe1aaed1776bf4c26c18adef76e472b9fa ("tty-usb-fix-perf-regression") > > > from the ttydev tree. Also between commit > > > a2170a444ef9a89a7ec9acc72d79e5db433effc4 ("USB: serial: optimize sysrq > > > function calls") from the usb.current tree and commit > > > bfce6b042a47c9cdd55c7cd231e58710ec1fa4e1 ("tty-usb-fix-kref-leak") from > > > the ttydev tree. > > > > > > The first two commits above seem to be trying to do the same thing (or > > > similar) so I have used the ttydev version for now. > > > > > > I fixed them up (see below) and can carry the fixes as necessary. > > > > Thanks for the fix, I don't know what happened in the tty tree, I've not > > touched the USB tree for a week or so now... > > In case you missed it, Alan has submitted the above two ttydev patches to > Linus. Ah, thanks, I'll handle the merge when they hit Linus's tree. greg k-h -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@... More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |
| Free embeddable forum powered by Nabble | Forum Help |