Greg Kroah-Hartman
0b623f871d
Revert "USB: serial: sierra: put reset_resume callback back."
...
This reverts commit 6971113e10
.
As Alan pointed out, this really isn't needed as it doesn't handle this
properly. Ideally this should be handled by the usb-serial core one
day. So revert it.
Reported-by: Alan Stern <stern@rowland.harvard.edu >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Anton Samokhvalov <pg83@yandex.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-16 08:39:56 -07:00
Greg Kroah-Hartman
dcd82cd1c2
USB: serial: fix up reset_resume callback
...
If the usb-serial driver doesn't have a reset_resume callback, then we
need to tell the USB core that it doesn't, and it needs to rebind the
device.
Thanks to Alan for pointing out my mistake, and providing the fix.
Reported-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-16 08:37:17 -07:00
Greg Kroah-Hartman
1c1eaba8e7
USB: serial: ch341: make the reset_resume callback actually work.
...
I hooked up the wrong callback in my previous patch, this should fix it.
Reported-by: Alan Stern <stern@rowland.harvard.edu >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-16 08:36:13 -07:00
Bjørn Mork
3a2300385f
USB: serial: generic driver is only for testing
...
Make some noise during probe to make sure the users
are aware of the intended purpose of this driver.
Signed-off-by: Bjørn Mork <bjorn@mork.no >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-16 05:29:20 -07:00
Greg Kroah-Hartman
e4083ea5a7
USB: symbolserial.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the symbolserial.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Johan Hovold <jhovold@gmail.com >
CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
CC: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:32 -07:00
Greg Kroah-Hartman
fe2baf87a8
USB: spcp8x5.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the spcp8x5.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:30 -07:00
Greg Kroah-Hartman
9760b28324
USB: qcserial.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the qcserial.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Thomas Tuttle <ttuttle@chromium.org >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Paul Gortmaker <paul.gortmaker@windriver.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:27 -07:00
Greg Kroah-Hartman
00c533fd64
USB: navman.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the navman.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:25 -07:00
Greg Kroah-Hartman
9f857ae922
USB: ir-usb.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the ir-usb.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Johan Hovold <jhovold@gmail.com >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:23 -07:00
Greg Kroah-Hartman
f73e1ffa27
USB: ipaq.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the ipaq.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Johan Hovold <jhovold@gmail.com >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:20 -07:00
Greg Kroah-Hartman
689c2781ee
USB: generic.c: remove dbg() usage
...
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 <gregkh@linuxfoundation.org >
2012-05-15 16:27:18 -07:00
Greg Kroah-Hartman
a94e9b94cc
USB: f81232.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the f81232.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:17 -07:00
Greg Kroah-Hartman
c89aa63898
USB: belkin_sa.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the belkin_sa.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: William Greathouse <wgreathouse@smva.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:11 -07:00
Greg Kroah-Hartman
d2f20e12e9
USB: ark3116.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the ark3116.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
CC: Bart Hartgers <bart.hartgers@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:11 -07:00
Greg Kroah-Hartman
66afb5b535
USB: aircable.c: remove dbg() usage
...
dbg() is a usb-serial specific macro. This patch converts
the aircable.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.
CC: Paul Gortmaker <paul.gortmaker@windriver.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 16:27:08 -07:00
Greg Kroah-Hartman
6971113e10
USB: serial: sierra: put reset_resume callback back.
...
A few patches ago, I removed the reset_resume callback in this driver.
Now that the usb-serial core supports reset_resume, put this driver
callback back as well, so it should work identically to how it was
originally.
Now if this function really is doing what it should be doing, well,
that's a different story, but we are at least doing the identical thing
that we were before...
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Anton Samokhvalov <pg83@yandex.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 15:43:19 -07:00
Greg Kroah-Hartman
622b80cf6a
USB: serial: ch341: put reset_resume callback back.
...
A few patches ago, I removed the reset_resume callback, changing it to
resume instead. Now that the usb-serial core supports reset_resume, put
this driver callback back as well, so it should work identically to how
it was originally.
Now if this function really is doing what it should be doing, well,
that's a different story, but we are at least doing the identical thing
that we were before...
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 15:41:47 -07:00
Greg Kroah-Hartman
7186364e46
USB: serial: hook up reset_resume callback
...
The callback is now hooked up for any USB to serial driver that wants
it. We only register the callback if any of the usb-serial structures
want it, this keeps the USB core happy.
Thanks to Alan Stern for the ideas on how to do this.
Cc: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-15 15:40:00 -07:00
Bjørn Mork
ef206f3f01
USB: add read support to usb-serial/../new_id
...
Keep the usb-serial support for dynamic IDs in sync with the usb
support. This enables readout of dynamic device IDs for
usb-serial drivers. Common code is exported from the usb core
system and reused by the usb-serial bus driver.
Signed-off-by: Bjørn Mork <bjorn@mork.no >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-14 09:30:40 -07:00
Darren Hart
975dc33b82
USB: serial: ti_usb_3410_5052: Add support for the FRI2 serial console
...
The Kontron M2M development board, also known as the Fish River Island II,
has an optional daughter card providing access to the PCH_UART (EG20T) via
a ti_usb_3410_5052 uart to usb chip.
http://us.kontron.com/products/systems+and+platforms/m2m/m2m+smart+services+developer+kit.html
Signed-off-by: Darren Hart <dvhart@linux.intel.com >
CC: Al Borchers <alborchers@steinerpoint.com >
CC: Peter Berger <pberger@brimson.com >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-11 15:14:07 -07:00
Greg Kroah-Hartman
d530296f63
USB: serial: opticon: hook up suspend/resume callbacks
...
With a previous patch, the usb_driver suspend/resume callbacks got
overridden and were never called if a usb_serial driver defined them.
This patch fixes the opticon driver to move the suspend/resume callbacks
into the usb_serial_driver structure where they will be properly called.
It then removes the unused usb_driver structure.
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: Julia Lawall <julia@diku.dk >
Cc: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-10 14:35:21 -07:00
Bill Pemberton
f88e6a30da
USB: serial: add copyright and license to quatech2
...
Add a copyright and license statement to the head of quatech.c source
file. No code change here.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-10 14:05:01 -07:00
Bill Pemberton
f7a33e608d
USB: serial: add quatech2 usb to serial driver
...
This supports the Quatech USB 2 usb to serial adapters.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-10 12:46:20 -07:00
Greg Kroah-Hartman
68e2411345
USB: serial: rework usb_serial_register/deregister_drivers()
...
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 <adhirramjiawan0@gmail.com >
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Al Borchers <alborchers@steinerpoint.com >
Cc: Aleksey Babahin <tamerlan311@gmail.com >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Andrew Worsley <amworsley@gmail.com >
Cc: Bart Hartgers <bart.hartgers@gmail.com >
Cc: Bill Pemberton <wfp5p@virginia.edu >
Cc: Dan Carpenter <error27@gmail.com >
Cc: Dan Williams <dcbw@redhat.com >
Cc: Donald Lee <donald@asix.com.tw >
Cc: Eric Dumazet <eric.dumazet@gmail.com >
Cc: "Eric W. Biederman" <ebiederm@xmission.com >
Cc: Felipe Balbi <balbi@ti.com >
Cc: Gary Brubaker <xavyer@ix.netcom.com >
Cc: Jesper Juhl <jj@chaosbits.net >
Cc: Jiri Kosina <jkosina@suse.cz >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Julia Lawall <julia@diku.dk >
Cc: Kautuk Consul <consul.kautuk@gmail.com >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: Lonnie Mendez <dignome@gmail.com >
Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com >
Cc: Matthias Urlichs <smurf@smurf.noris.de >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Cc: Michal Sroczynski <msroczyn@gmail.com >
Cc: "Michał Wróbel" <michal.wrobel@flytronic.pl >
Cc: Oliver Neukum <oliver@neukum.name >
Cc: Paul Gortmaker <paul.gortmaker@windriver.com >
Cc: Peter Berger <pberger@brimson.com >
Cc: Preston Fick <preston.fick@silabs.com >
Cc: "Rafael J. Wysocki" <rjw@sisk.pl >
Cc: Rigbert Hamisch <rigbert@gmx.de >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Simon Arlott <simon@fire.lp0.eu >
Cc: Support Department <support@connecttech.com >
Cc: Thomas Tuttle <ttuttle@chromium.org >
Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de >
Cc: Wang YanQing <Udknight@gmail.com >
Cc: William Greathouse <wgreathouse@smva.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-08 15:46:14 -07:00
Éric Piel
b69cc67205
USB: ftdi-sio: add support for Physik Instrumente E-861
...
This adds VID/PID for the PI E-861. Without it, I had to do:
modprobe -q ftdi-sio product=0x1008 vendor=0x1a72
http://www.physikinstrumente.com/en/products/prdetail.php?sortnr=900610
Signed-off-by: Éric Piel <piel@delmic.com >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 16:43:35 -07:00
Greg Kroah-Hartman
2edd284bd7
USB: serial: remove bizarre generic_serial probe function
...
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 <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 14:46:48 -07:00
Greg Kroah-Hartman
3abee859c1
USB: serial: sierra: remove reset_resume callback
...
This really just is the resume callback for the device, so use that,
especially as the usb-serial core just overrode this callback so it
wasn't being made anyway.
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Anton Samokhvalov <pg83@yandex.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 14:12:11 -07:00
Greg Kroah-Hartman
2bfd1c96a9
USB: serial: ch341: remove reset_resume callback
...
This really just is the resume callback for the device, so use that,
especially as the usb-serial core just overrode this callback so it
wasn't being made anyway.
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 14:10:27 -07:00
Greg Kroah-Hartman
32078f915d
USB: serial: remove usb_serial_disconnect call in all drivers
...
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 <wgreathouse@smva.com >
Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com >
Cc: Lonnie Mendez <dignome@gmail.com >
Cc: Peter Berger <pberger@brimson.com >
Cc: Al Borchers <alborchers@steinerpoint.com >
Cc: Gary Brubaker <xavyer@ix.netcom.com >
Cc: Oliver Neukum <oliver@neukum.name >
Cc: Matthias Urlichs <smurf@smurf.noris.de >
Cc: Support Department <support@connecttech.com >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Cc: Kautuk Consul <consul.kautuk@gmail.com >
Cc: Bill Pemberton <wfp5p@virginia.edu >
Cc: Paul Gortmaker <paul.gortmaker@windriver.com >
Cc: Bart Hartgers <bart.hartgers@gmail.com >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Preston Fick <preston.fick@silabs.com >
Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de >
Cc: Simon Arlott <simon@fire.lp0.eu >
Cc: Andrew Worsley <amworsley@gmail.com >
Cc: "Michał Wróbel" <michal.wrobel@flytronic.pl >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Eric Dumazet <eric.dumazet@gmail.com >
Cc: "Eric W. Biederman" <ebiederm@xmission.com >
Cc: Felipe Balbi <balbi@ti.com >
Cc: Aleksey Babahin <tamerlan311@gmail.com >
Cc: Dan Carpenter <error27@gmail.com >
Cc: Jiri Kosina <jkosina@suse.cz >
Cc: Donald Lee <donald@asix.com.tw >
Cc: Julia Lawall <julia@diku.dk >
Cc: Michal Sroczynski <msroczyn@gmail.com >
Cc: Wang YanQing <Udknight@gmail.com >
Cc: Dan Williams <dcbw@redhat.com >
Cc: Thomas Tuttle <ttuttle@chromium.org >
Cc: Rigbert Hamisch <rigbert@gmx.de >
Cc: "Rafael J. Wysocki" <rjw@sisk.pl >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: Jesper Juhl <jj@chaosbits.net >
Cc: Adhir Ramjiawan <adhirramjiawan0@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 14:02:13 -07:00
Greg Kroah-Hartman
5026bb07be
USB: serial: remove usb_serial_probe call in all drivers
...
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 <wgreathouse@smva.com >
Cc: Matthias Bruestle and Harald Welte <support@reiner-sct.com >
Cc: Lonnie Mendez <dignome@gmail.com >
Cc: Peter Berger <pberger@brimson.com >
Cc: Al Borchers <alborchers@steinerpoint.com >
Cc: Gary Brubaker <xavyer@ix.netcom.com >
Cc: Oliver Neukum <oliver@neukum.name >
Cc: Matthias Urlichs <smurf@smurf.noris.de >
Cc: Support Department <support@connecttech.com >
Cc: Rusty Russell <rusty@rustcorp.com.au >
Cc: Alan Stern <stern@rowland.harvard.edu >
Cc: Mauro Carvalho Chehab <mchehab@redhat.com >
Cc: Kautuk Consul <consul.kautuk@gmail.com >
Cc: Bill Pemberton <wfp5p@virginia.edu >
Cc: Paul Gortmaker <paul.gortmaker@windriver.com >
Cc: Bart Hartgers <bart.hartgers@gmail.com >
Cc: Johan Hovold <jhovold@gmail.com >
Cc: Preston Fick <preston.fick@silabs.com >
Cc: Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de >
Cc: Simon Arlott <simon@fire.lp0.eu >
Cc: Andrew Worsley <amworsley@gmail.com >
Cc: "Michał Wróbel" <michal.wrobel@flytronic.pl >
Cc: Andrew Morton <akpm@linux-foundation.org >
Cc: Eric Dumazet <eric.dumazet@gmail.com >
Cc: "Eric W. Biederman" <ebiederm@xmission.com >
Cc: Felipe Balbi <balbi@ti.com >
Cc: Aleksey Babahin <tamerlan311@gmail.com >
Cc: Dan Carpenter <error27@gmail.com >
Cc: Jiri Kosina <jkosina@suse.cz >
Cc: Donald Lee <donald@asix.com.tw >
Cc: Julia Lawall <julia@diku.dk >
Cc: Michal Sroczynski <msroczyn@gmail.com >
Cc: Wang YanQing <Udknight@gmail.com >
Cc: Dan Williams <dcbw@redhat.com >
Cc: Thomas Tuttle <ttuttle@chromium.org >
Cc: Rigbert Hamisch <rigbert@gmx.de >
Cc: "Rafael J. Wysocki" <rjw@sisk.pl >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: Jesper Juhl <jj@chaosbits.net >
Cc: Adhir Ramjiawan <adhirramjiawan0@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 13:48:33 -07:00
Alan Stern
c7f3619b90
usb-serial: clean up unneeded PM-related fields
...
This patch (as1551) cleans up the PM-related entries in the usb_driver
structures of the various USB serial driver modules. Those entries
are now filled in by the usb-serial core during driver registration,
so they don't need to be initialized explicitly in the source code.
The same is true of the one remaining no_dynamic_id entry.
reset_resume remains a small problem, because the serial core doesn't
support it. The patch ignores these entries.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 13:05:51 -07:00
Alan Stern
5cbe61c5af
usb-serial: ftdi_sio: fix oops during autosuspend
...
This patch (as1550) fixes a bug in the usb-serial core that affects
the ftdi_sio driver and most likely others as well. The core
implements suspend and resume routines, but it doesn't store pointers
to those routines in the usb_driver structures that it registers,
even though it does set those drivers' supports_autosuspend flag. The
end result is that when one of these devices is autosuspended, we try
to call through a NULL pointer.
The patch fixes the problem by setting the suspend and resume method
pointers to the appropriate routines in the USB serial core, along
with the supports_autosuspend field, in each driver as it is
registered.
This should be back-ported to all the stable kernels that have the new
usb_serial_register_drivers() interface.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu >
Reported-and-tested-by: Frank Schäfer <schaefer.frank@gmx.net >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-07 12:59:02 -07:00
Greg Kroah-Hartman
4db02fecb4
USB: whiteheat.c: remove dbg() tracing calls
...
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.
CC: Support Department <support@connecttech.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:45:01 -07:00
Greg Kroah-Hartman
d2bad7818c
USB: usb_wwan.c: remove dbg() tracing calls
...
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.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
CC: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:45:00 -07:00
Greg Kroah-Hartman
4a7ce90c0a
USB: ti_usb_3410_5052.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Adhir Ramjiawan <adhirramjiawan0@gmail.com >
CC: Andrew Lunn <andrew@lunn.ch >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:58 -07:00
Greg Kroah-Hartman
b6b6df8a56
USB: symbolserial.c: remove dbg() tracing calls
...
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.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Johan Hovold <jhovold@gmail.com >
CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
CC: Alan Stern <stern@rowland.harvard.edu >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:55 -07:00
Greg Kroah-Hartman
bb7a9c4a42
USB: ssu100.c: remove dbg() tracing calls
...
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.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:53 -07:00
Greg Kroah-Hartman
76533636aa
USB: spcp8x5.c: remove dbg() tracing calls
...
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.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:51 -07:00
Greg Kroah-Hartman
64318a5295
USB: sierra.c: remove dbg() tracing calls
...
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.
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Johan Hovold <jhovold@gmail.com >
CC: Anton Samokhvalov <pg83@yandex.ru >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:48 -07:00
Greg Kroah-Hartman
3a3eec0c1f
USB: qcserial.c: remove dbg() tracing calls
...
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.
CC: Thomas Tuttle <ttuttle@chromium.org >
CC: Paul Gortmaker <paul.gortmaker@windriver.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Rigbert Hamisch <rigbert@gmx.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:46 -07:00
Greg Kroah-Hartman
77b3b30d18
USB: oti6858.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:43 -07:00
Greg Kroah-Hartman
e79a8a4be4
USB: option.c: remove dbg() tracing calls
...
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.
CC: Matthias Urlichs <smurf@smurf.noris.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:41 -07:00
Greg Kroah-Hartman
815fd56974
USB: opticon.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
CC: Julia Lawall <julia@diku.dk >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:40 -07:00
Greg Kroah-Hartman
69d1d34a9b
USB: omninet.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:38 -07:00
Greg Kroah-Hartman
8cf38740e6
USB: navman.c: remove dbg() tracing calls
...
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.
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:35 -07:00
Greg Kroah-Hartman
3363155b66
USB: mos7840.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Donald Lee <donald@asix.com.tw >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Jiri Kosina <jkosina@suse.cz >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:33 -07:00
Greg Kroah-Hartman
ca09907d96
USB: mos7720.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:31 -07:00
Greg Kroah-Hartman
b69919ca24
USB: mct_u232.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Rusty Russell <rusty@rustcorp.com.au >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Mauro Carvalho Chehab <mchehab@redhat.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:28 -07:00
Greg Kroah-Hartman
f65ee14fa8
USB: kobil_sct.c: remove dbg() tracing calls
...
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.
CC: Johan Hovold <jhovold@gmail.com >
CC: Alan Stern <stern@rowland.harvard.edu >
CC: Felipe Balbi <balbi@ti.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:26 -07:00
Greg Kroah-Hartman
b20430bcc0
USB: kl5kusb105.c: remove dbg() tracing calls
...
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.
CC: Oliver Neukum <oliver@neukum.name >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2012-05-03 16:44:23 -07:00