Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 295568 Details for
Bug 433889
Character loss on PL2303 devices after FC8 upgrade
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
pl2303 patch from the upstream changeset
pl2303_mode_switch.patch (text/plain), 2.24 KB, created by
Kevin W. Rudd
on 2008-02-21 22:47:02 UTC
(
hide
)
Description:
pl2303 patch from the upstream changeset
Filename:
MIME Type:
Creator:
Kevin W. Rudd
Created:
2008-02-21 22:47:02 UTC
Size:
2.24 KB
patch
obsolete
>diff -Naur linux-2.6.23.i386/drivers/char/tty_ioctl.c linux-2.6.23.i386-pl/drivers/char/tty_ioctl.c >--- linux-2.6.23.i386/drivers/char/tty_ioctl.c 2008-02-21 12:20:06.000000000 -0800 >+++ linux-2.6.23.i386-pl/drivers/char/tty_ioctl.c 2008-02-21 12:41:04.000000000 -0800 >@@ -304,6 +304,25 @@ > EXPORT_SYMBOL(tty_get_baud_rate); > > /** >+ * tty_termios_hw_change - check for setting change >+ * @a: termios >+ * @b: termios to compare >+ * >+ * Check if any of the bits that affect a dumb device have changed >+ * between the two termios structures, or a speed change is needed. >+ */ >+ >+int tty_termios_hw_change(struct ktermios *a, struct ktermios *b) >+{ >+if (a->c_ispeed != b->c_ispeed || a->c_ospeed != b->c_ospeed) >+ return 1; >+ if ((a->c_cflag ^ b->c_cflag) & ~(HUPCL | CREAD | CLOCAL)) >+ return 1; >+ return 0; >+} >+EXPORT_SYMBOL(tty_termios_hw_change); >+ >+/** > * change_termios - update termios values > * @tty: tty to update > * @new_termios: desired new value >diff -Naur linux-2.6.23.i386/drivers/usb/serial/pl2303.c linux-2.6.23.i386-pl/drivers/usb/serial/pl2303.c >--- linux-2.6.23.i386/drivers/usb/serial/pl2303.c 2007-10-09 13:31:38.000000000 -0700 >+++ linux-2.6.23.i386-pl/drivers/usb/serial/pl2303.c 2008-02-21 12:37:55.000000000 -0800 >@@ -483,6 +483,13 @@ > } > spin_unlock_irqrestore(&priv->lock, flags); > >+ /* The PL2303 is reported to lose bytes if you change >+ serial settings even to the same values as before. Thus >+ we actually need to filter in this specific case */ >+ >+ if (!tty_termios_hw_change(port->tty->termios, old_termios)) >+ return; >+ > cflag = port->tty->termios->c_cflag; > > buf = kzalloc(7, GFP_KERNEL); >diff -Naur linux-2.6.23.i386/include/linux/tty.h linux-2.6.23.i386-pl/include/linux/tty.h >--- linux-2.6.23.i386/include/linux/tty.h 2007-10-09 13:31:38.000000000 -0700 >+++ linux-2.6.23.i386-pl/include/linux/tty.h 2008-02-21 12:36:05.000000000 -0800 >@@ -322,6 +322,7 @@ > extern speed_t tty_get_baud_rate(struct tty_struct *tty); > extern speed_t tty_termios_baud_rate(struct ktermios *termios); > extern speed_t tty_termios_input_baud_rate(struct ktermios *termios); >+extern int tty_termios_hw_change(struct ktermios *a, struct ktermios *b); > > extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *); > extern void tty_ldisc_deref(struct tty_ldisc *);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 433889
: 295568