<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-stable.git/drivers/usb/serial/generic.c, branch v3.5</title>
<subtitle>Linux kernel stable tree</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/'/>
<entry>
<title>USB: serial-generic: use a single set of device IDs</title>
<updated>2012-06-13T21:01:56+00:00</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2012-05-31T21:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=0b84704a2d6fdf55a3dcdd2a1f2ac8b48913c84b'/>
<id>0b84704a2d6fdf55a3dcdd2a1f2ac8b48913c84b</id>
<content type='text'>
The usb-serial-generic driver uses different device IDs for its USB
matching and its serial matching.  This can lead to problems: The
driver can end up getting bound to a USB interface without being
allowed to bind to the corresponding serial port.

This patch (as1557) fixes the problem by using the same device ID
table (the one that can be altered by the "vendor=" and "product="
module parameters) for both purposes.  The unused table is removed.
Now the driver will bind only to the intended devices.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
CC: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The usb-serial-generic driver uses different device IDs for its USB
matching and its serial matching.  This can lead to problems: The
driver can end up getting bound to a USB interface without being
allowed to bind to the corresponding serial port.

This patch (as1557) fixes the problem by using the same device ID
table (the one that can be altered by the "vendor=" and "product="
module parameters) for both purposes.  The unused table is removed.
Now the driver will bind only to the intended devices.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
CC: Bjørn Mork &lt;bjorn@mork.no&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: generic.c: remove dbg() usage</title>
<updated>2012-05-15T23:27:18+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-05-15T23:27:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=689c2781ee9d16069a436964f014ffc260af99e5'/>
<id>689c2781ee9d16069a436964f014ffc260af99e5</id>
<content type='text'>
dbg() is a usb-serial specific macro.  This patch converts
the generic.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dbg() is a usb-serial specific macro.  This patch converts
the generic.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: rework usb_serial_register/deregister_drivers()</title>
<updated>2012-05-08T22:46:14+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-05-08T22:46:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=68e24113457e437b1576670f2419b77ed0531e9e'/>
<id>68e24113457e437b1576670f2419b77ed0531e9e</id>
<content type='text'>
This reworks the usb_serial_register_drivers() and
usb_serial_deregister_drivers() to not need a pointer to a struct
usb_driver anymore.  The usb_driver structure is now created dynamically
and registered and unregistered as needed.

This saves lines of code in each usb-serial driver.  All in-kernel users
of these functions were also fixed up at this time.  The pl2303 driver
was tested that everything worked properly.

Thanks for the idea to do this from Alan Stern.

Cc: Adhir Ramjiawan &lt;adhirramjiawan0@gmail.com&gt;
Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: Al Borchers &lt;alborchers@steinerpoint.com&gt;
Cc: Aleksey Babahin &lt;tamerlan311@gmail.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Andrew Worsley &lt;amworsley@gmail.com&gt;
Cc: Bart Hartgers &lt;bart.hartgers@gmail.com&gt;
Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Dan Carpenter &lt;error27@gmail.com&gt;
Cc: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: Donald Lee &lt;donald@asix.com.tw&gt;
Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Cc: Gary Brubaker &lt;xavyer@ix.netcom.com&gt;
Cc: Jesper Juhl &lt;jj@chaosbits.net&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Cc: Johan Hovold &lt;jhovold@gmail.com&gt;
Cc: Julia Lawall &lt;julia@diku.dk&gt;
Cc: Kautuk Consul &lt;consul.kautuk@gmail.com&gt;
Cc: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Cc: Lonnie Mendez &lt;dignome@gmail.com&gt;
Cc: Matthias Bruestle and Harald Welte &lt;support@reiner-sct.com&gt;
Cc: Matthias Urlichs &lt;smurf@smurf.noris.de&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Michal Sroczynski &lt;msroczyn@gmail.com&gt;
Cc: "Michał Wróbel" &lt;michal.wrobel@flytronic.pl&gt;
Cc: Oliver Neukum &lt;oliver@neukum.name&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Peter Berger &lt;pberger@brimson.com&gt;
Cc: Preston Fick &lt;preston.fick@silabs.com&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Cc: Rigbert Hamisch &lt;rigbert@gmx.de&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Cc: Simon Arlott &lt;simon@fire.lp0.eu&gt;
Cc: Support Department &lt;support@connecttech.com&gt;
Cc: Thomas Tuttle &lt;ttuttle@chromium.org&gt;
Cc: Uwe Bonnes &lt;bon@elektron.ikp.physik.tu-darmstadt.de&gt;
Cc: Wang YanQing &lt;Udknight@gmail.com&gt;
Cc: William Greathouse &lt;wgreathouse@smva.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reworks the usb_serial_register_drivers() and
usb_serial_deregister_drivers() to not need a pointer to a struct
usb_driver anymore.  The usb_driver structure is now created dynamically
and registered and unregistered as needed.

This saves lines of code in each usb-serial driver.  All in-kernel users
of these functions were also fixed up at this time.  The pl2303 driver
was tested that everything worked properly.

Thanks for the idea to do this from Alan Stern.

Cc: Adhir Ramjiawan &lt;adhirramjiawan0@gmail.com&gt;
Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: Al Borchers &lt;alborchers@steinerpoint.com&gt;
Cc: Aleksey Babahin &lt;tamerlan311@gmail.com&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Andrew Worsley &lt;amworsley@gmail.com&gt;
Cc: Bart Hartgers &lt;bart.hartgers@gmail.com&gt;
Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Dan Carpenter &lt;error27@gmail.com&gt;
Cc: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: Donald Lee &lt;donald@asix.com.tw&gt;
Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Cc: Gary Brubaker &lt;xavyer@ix.netcom.com&gt;
Cc: Jesper Juhl &lt;jj@chaosbits.net&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Cc: Johan Hovold &lt;jhovold@gmail.com&gt;
Cc: Julia Lawall &lt;julia@diku.dk&gt;
Cc: Kautuk Consul &lt;consul.kautuk@gmail.com&gt;
Cc: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Cc: Lonnie Mendez &lt;dignome@gmail.com&gt;
Cc: Matthias Bruestle and Harald Welte &lt;support@reiner-sct.com&gt;
Cc: Matthias Urlichs &lt;smurf@smurf.noris.de&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Michal Sroczynski &lt;msroczyn@gmail.com&gt;
Cc: "Michał Wróbel" &lt;michal.wrobel@flytronic.pl&gt;
Cc: Oliver Neukum &lt;oliver@neukum.name&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Peter Berger &lt;pberger@brimson.com&gt;
Cc: Preston Fick &lt;preston.fick@silabs.com&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Cc: Rigbert Hamisch &lt;rigbert@gmx.de&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Cc: Simon Arlott &lt;simon@fire.lp0.eu&gt;
Cc: Support Department &lt;support@connecttech.com&gt;
Cc: Thomas Tuttle &lt;ttuttle@chromium.org&gt;
Cc: Uwe Bonnes &lt;bon@elektron.ikp.physik.tu-darmstadt.de&gt;
Cc: Wang YanQing &lt;Udknight@gmail.com&gt;
Cc: William Greathouse &lt;wgreathouse@smva.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: remove bizarre generic_serial probe function</title>
<updated>2012-05-07T21:46:48+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-05-07T21:46:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=2edd284bd752e58ccb312f3d623267fb79857db3'/>
<id>2edd284bd752e58ccb312f3d623267fb79857db3</id>
<content type='text'>
I can't remember why I wrote it like this many many years ago, but it's
not needed at all, let's rely on the usb-serial core for this function,
especially as it is being overridden by it anyway.

This lets us make usb_serial_probe() a static function, which it should
be.

Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I can't remember why I wrote it like this many many years ago, but it's
not needed at all, let's rely on the usb-serial core for this function,
especially as it is being overridden by it anyway.

This lets us make usb_serial_probe() a static function, which it should
be.

Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: remove usb_serial_disconnect call in all drivers</title>
<updated>2012-05-07T21:02:13+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-05-07T21:02:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=32078f915d1acab356080b144aa89fe3487f3979'/>
<id>32078f915d1acab356080b144aa89fe3487f3979</id>
<content type='text'>
This is now set by the usb-serial core, no need for the driver to
individually set it.

Thanks to Alan Stern for the idea to get rid of it.

Cc: William Greathouse &lt;wgreathouse@smva.com&gt;
Cc: Matthias Bruestle and Harald Welte &lt;support@reiner-sct.com&gt;
Cc: Lonnie Mendez &lt;dignome@gmail.com&gt;
Cc: Peter Berger &lt;pberger@brimson.com&gt;
Cc: Al Borchers &lt;alborchers@steinerpoint.com&gt;
Cc: Gary Brubaker &lt;xavyer@ix.netcom.com&gt;
Cc: Oliver Neukum &lt;oliver@neukum.name&gt;
Cc: Matthias Urlichs &lt;smurf@smurf.noris.de&gt;
Cc: Support Department &lt;support@connecttech.com&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Kautuk Consul &lt;consul.kautuk@gmail.com&gt;
Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Bart Hartgers &lt;bart.hartgers@gmail.com&gt;
Cc: Johan Hovold &lt;jhovold@gmail.com&gt;
Cc: Preston Fick &lt;preston.fick@silabs.com&gt;
Cc: Uwe Bonnes &lt;bon@elektron.ikp.physik.tu-darmstadt.de&gt;
Cc: Simon Arlott &lt;simon@fire.lp0.eu&gt;
Cc: Andrew Worsley &lt;amworsley@gmail.com&gt;
Cc: "Michał Wróbel" &lt;michal.wrobel@flytronic.pl&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Cc: Aleksey Babahin &lt;tamerlan311@gmail.com&gt;
Cc: Dan Carpenter &lt;error27@gmail.com&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Cc: Donald Lee &lt;donald@asix.com.tw&gt;
Cc: Julia Lawall &lt;julia@diku.dk&gt;
Cc: Michal Sroczynski &lt;msroczyn@gmail.com&gt;
Cc: Wang YanQing &lt;Udknight@gmail.com&gt;
Cc: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: Thomas Tuttle &lt;ttuttle@chromium.org&gt;
Cc: Rigbert Hamisch &lt;rigbert@gmx.de&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Cc: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Cc: Jesper Juhl &lt;jj@chaosbits.net&gt;
Cc: Adhir Ramjiawan &lt;adhirramjiawan0@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is now set by the usb-serial core, no need for the driver to
individually set it.

Thanks to Alan Stern for the idea to get rid of it.

Cc: William Greathouse &lt;wgreathouse@smva.com&gt;
Cc: Matthias Bruestle and Harald Welte &lt;support@reiner-sct.com&gt;
Cc: Lonnie Mendez &lt;dignome@gmail.com&gt;
Cc: Peter Berger &lt;pberger@brimson.com&gt;
Cc: Al Borchers &lt;alborchers@steinerpoint.com&gt;
Cc: Gary Brubaker &lt;xavyer@ix.netcom.com&gt;
Cc: Oliver Neukum &lt;oliver@neukum.name&gt;
Cc: Matthias Urlichs &lt;smurf@smurf.noris.de&gt;
Cc: Support Department &lt;support@connecttech.com&gt;
Cc: Rusty Russell &lt;rusty@rustcorp.com.au&gt;
Cc: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab@redhat.com&gt;
Cc: Kautuk Consul &lt;consul.kautuk@gmail.com&gt;
Cc: Bill Pemberton &lt;wfp5p@virginia.edu&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Bart Hartgers &lt;bart.hartgers@gmail.com&gt;
Cc: Johan Hovold &lt;jhovold@gmail.com&gt;
Cc: Preston Fick &lt;preston.fick@silabs.com&gt;
Cc: Uwe Bonnes &lt;bon@elektron.ikp.physik.tu-darmstadt.de&gt;
Cc: Simon Arlott &lt;simon@fire.lp0.eu&gt;
Cc: Andrew Worsley &lt;amworsley@gmail.com&gt;
Cc: "Michał Wróbel" &lt;michal.wrobel@flytronic.pl&gt;
Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Cc: Eric Dumazet &lt;eric.dumazet@gmail.com&gt;
Cc: "Eric W. Biederman" &lt;ebiederm@xmission.com&gt;
Cc: Felipe Balbi &lt;balbi@ti.com&gt;
Cc: Aleksey Babahin &lt;tamerlan311@gmail.com&gt;
Cc: Dan Carpenter &lt;error27@gmail.com&gt;
Cc: Jiri Kosina &lt;jkosina@suse.cz&gt;
Cc: Donald Lee &lt;donald@asix.com.tw&gt;
Cc: Julia Lawall &lt;julia@diku.dk&gt;
Cc: Michal Sroczynski &lt;msroczyn@gmail.com&gt;
Cc: Wang YanQing &lt;Udknight@gmail.com&gt;
Cc: Dan Williams &lt;dcbw@redhat.com&gt;
Cc: Thomas Tuttle &lt;ttuttle@chromium.org&gt;
Cc: Rigbert Hamisch &lt;rigbert@gmx.de&gt;
Cc: "Rafael J. Wysocki" &lt;rjw@sisk.pl&gt;
Cc: Kuninori Morimoto &lt;kuninori.morimoto.gx@renesas.com&gt;
Cc: Jesper Juhl &lt;jj@chaosbits.net&gt;
Cc: Adhir Ramjiawan &lt;adhirramjiawan0@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: generic.c: remove dbg() tracing calls</title>
<updated>2012-05-03T23:44:12+00:00</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@linuxfoundation.org</email>
</author>
<published>2012-05-03T23:44:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=de5789e22bcb4f7365b08c80bf3cdc3ab0a624d3'/>
<id>de5789e22bcb4f7365b08c80bf3cdc3ab0a624d3</id>
<content type='text'>
dbg() was used a lot a long time ago to trace code flow.  Now that we have
ftrace, this isn't needed at all, so remove these calls.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
dbg() was used a lot a long time ago to trace code flow.  Now that we have
ftrace, this isn't needed at all, so remove these calls.

Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: fix double newlines in debug output</title>
<updated>2012-04-25T18:42:17+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>jhovold@gmail.com</email>
</author>
<published>2012-04-25T14:12:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c1d830c5be5207ca0a4e936f135324ed7a2eea92'/>
<id>c1d830c5be5207ca0a4e936f135324ed7a2eea92</id>
<content type='text'>
Remove trailing newlines from debug messages.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove trailing newlines from debug messages.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: remove redundant write-urb kill</title>
<updated>2012-04-25T18:42:16+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>jhovold@gmail.com</email>
</author>
<published>2012-04-25T14:12:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=c5b4ee64ae4adc14ba803f5efebf212e06d022c1'/>
<id>c5b4ee64ae4adc14ba803f5efebf212e06d022c1</id>
<content type='text'>
Since commit 1ce7b9349fad ("USB: serial: reuse generic write urb and
bulk-out buffer") the port write_urb is simply a pointer to the first
member of write_urbs so there's no need to kill it twice.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since commit 1ce7b9349fad ("USB: serial: reuse generic write urb and
bulk-out buffer") the port write_urb is simply a pointer to the first
member of write_urbs so there's no need to kill it twice.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>usb-serial: new API for driver registration</title>
<updated>2012-02-24T20:39:17+00:00</updated>
<author>
<name>Alan Stern</name>
<email>stern@rowland.harvard.edu</email>
</author>
<published>2012-02-23T19:55:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=765e0ba62613fb90f09c1b5926750df0aa56f349'/>
<id>765e0ba62613fb90f09c1b5926750df0aa56f349</id>
<content type='text'>
This patch (as1522) adds two new routines to the usb-serial core, for
registering and unregistering serial drivers.  Instead of registering
the usb_driver and usb_serial_drivers separately, with error checking
for each one, the drivers can all be registered and unregistered by a
single function call.  This reduces duplicated code.

More importantly, the new core routines change the order in which the
drivers are registered.  Currently the usb-serial drivers are all
registered first and the usb_driver is done last, which leaves a
window for problems.  A udev script may quickly add a new dynamic-ID
for a usb-serial driver, causing the corresponding usb_driver to be
probed.  If the usb_driver hasn't been registered yet then an oops
will occur.

The new routine prevents such problems by registering the usb_driver
first.  To insure that it gets probed properly for already-attached
serial devices, we call driver_attach() after all the usb-serial
drivers have been registered.

Along with adding the new routines, the patch modifies the "generic"
serial driver to use them.  Further patches will similarly modify all
the other in-tree USB serial drivers.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch (as1522) adds two new routines to the usb-serial core, for
registering and unregistering serial drivers.  Instead of registering
the usb_driver and usb_serial_drivers separately, with error checking
for each one, the drivers can all be registered and unregistered by a
single function call.  This reduces duplicated code.

More importantly, the new core routines change the order in which the
drivers are registered.  Currently the usb-serial drivers are all
registered first and the usb_driver is done last, which leaves a
window for problems.  A udev script may quickly add a new dynamic-ID
for a usb-serial driver, causing the corresponding usb_driver to be
probed.  If the usb_driver hasn't been registered yet then an oops
will occur.

The new routine prevents such problems by registering the usb_driver
first.  To insure that it gets probed properly for already-attached
serial devices, we call driver_attach() after all the usb-serial
drivers have been registered.

Along with adding the new routines, the patch modifies the "generic"
serial driver to use them.  Further patches will similarly modify all
the other in-tree USB serial drivers.

Signed-off-by: Alan Stern &lt;stern@rowland.harvard.edu&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>USB: serial: use dev_err_console in generic write</title>
<updated>2012-02-10T18:21:04+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>jhovold@gmail.com</email>
</author>
<published>2012-02-10T12:20:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/linux-stable.git/commit/?id=f1475a00a11b07e6ac7f97971466c1bfbf491957'/>
<id>f1475a00a11b07e6ac7f97971466c1bfbf491957</id>
<content type='text'>
Use dev_err_console in write path so that an error at least gets
reported once.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use dev_err_console in write path so that an error at least gets
reported once.

Signed-off-by: Johan Hovold &lt;jhovold@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
