Skip to contentSkip to conversation

USB changes for 2.5.51

PATCH New Greg KH 1 participant 1 message Dec 14, 2002

lore
Share & tools
lore

Greg KH

author
#0 lore raw

PATCH 1/1 USB changes for 2.5.51

This also includes a fix in the driver core hotplug call.

Please pull from: bk://linuxusb.bkbits.net/linus-2.5

thanks,

greg k-h

 drivers/base/hotplug.c             |    7 
 drivers/usb/class/Kconfig          |    5 
 drivers/usb/class/usblp.c          |   24 ++-
 drivers/usb/core/hub.c             |   32 +++-
 drivers/usb/core/usb.c             |   35 ++++
 drivers/usb/image/scanner.c        |   45 ++----
 drivers/usb/image/scanner.h        |    4 
 drivers/usb/net/pegasus.c          |   31 +++-
 drivers/usb/serial/Makefile        |    2 
 drivers/usb/serial/bus.c           |  138 ++++++++++++++++++
 drivers/usb/serial/usb-serial.c    |  275 ++++++++++++++++++++-----------------
 drivers/usb/serial/usb-serial.h    |   14 +
 drivers/usb/storage/unusual_devs.h |   16 +-
 drivers/usb/usb-skeleton.c         |  128 ++++++-----------
 include/linux/usb.h                |    3 
 sound/usb/usbaudio.c               |    4 
 16 files changed, 491 insertions(+), 272 deletions(-)

-----

[email protected], 2002-12-13 13:52:12-08:00, [email protected]
[PATCH] USB: pegasus kmalloc/kfree stuff

I made the changes to the set/get_registers code.

 drivers/usb/net/pegasus.c |   31 +++++++++++++++++++++++++------
 1 files changed, 25 insertions(+), 6 deletions(-)

------

[email protected], 2002-12-12 14:49:26-08:00, [email protected]
[PATCH] USB: usb-skeleton: removed static array of devices.

This allowed a lock to be removed.
Also removed the MOD_* functions, and some remove logic was cleaned up by Oliver Neukum.

 drivers/usb/usb-skeleton.c |   94 +++++++++++++--------------------------------
 1 files changed, 29 insertions(+), 65 deletions(-)

------

[email protected], 2002-12-12 14:25:55-08:00, [email protected]
[PATCH] USB: Fix compile errors with usb-skeleton driver.

 drivers/usb/usb-skeleton.c |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

------

[email protected], 2002-12-12 13:23:14-08:00, [email protected]
[PATCH] support for Sony Cybershot F717 digital camera / usb-storage

here is an id-patch to get the Sony Cybershot F717 6meg pixel digital camera working with the standard usb-storage device driver.

 drivers/usb/storage/unusual_devs.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

------

[email protected], 2002-12-12 12:39:31-08:00, [email protected]
[PATCH] USB: start to remove static minor based arrays in drivers

Here are minimal usb_find_interface() patches for the core, usblp and scanner.

Basic design is:
- device major (USB_MAJOR for now) and minor are stored in probe() function to struct usb_interface as kdev_t
- open() can use new core function usb_find_interface() to find matching device in drivers device list
- disconnect() will set kdev_t struct usb_interface to NODEV, so open wont open it anymore without new probe()

I tested these patches and they work for me. I will work on small patches of other work in these drivers (like removal of lock_kernel/unlock_kernel in usblp, fixing the disconnect problems in both drivers etc.). Those patches would be very small too, but there will be quite many.

 drivers/usb/class/usblp.c   |   24 ++++++++++++++---------
 drivers/usb/core/usb.c      |   35 ++++++++++++++++++++++++++++++++++
 drivers/usb/image/scanner.c |   45 +++++++++++++++-----------------------------
 drivers/usb/image/scanner.h |    4 ---
 include/linux/usb.h         |    3 ++
 5 files changed, 70 insertions(+), 41 deletions(-)

------

[email protected], 2002-12-12 12:36:38-08:00, [email protected]
[PATCH] usbaudio.c: fix for urb callback function change

 sound/usb/usbaudio.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

------

[email protected], 2002-12-12 11:58:03-08:00, [email protected]
[PATCH] USB: Moved usb-serial bus specific code to a separate file.

 drivers/usb/serial/Makefile     |    2 
 drivers/usb/serial/bus.c        |  138 ++++++++++++++++++++++++++++++++++++++++
 drivers/usb/serial/usb-serial.c |  130 +++++--------------------------------
 drivers/usb/serial/usb-serial.h |    5 +
 4 files changed, 162 insertions(+), 113 deletions(-)

------

[email protected], 2002-12-12 09:38:05-08:00, [email protected]
[PATCH] Driver core: Fix class leak in class_hotplug.

Thanks to Pat Mochel for pointing this out to me.

 drivers/base/hotplug.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)

------

[email protected], 2002-12-11 16:11:32+01:00, [email protected]
[PATCH] Disable bluetty.o if Bluetooth subsystem is used

This patch disables the USB Bluetooth TTY driver (bluetty.o) from the drivers/usb/class directory if the Linux Bluetooth subsystem is selected.

 drivers/usb/class/Kconfig |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

------

[email protected], 2002-12-10 17:02:12-08:00, [email protected]
[PATCH] USB: Added usb-serial driver core bus support.

This means that all individual usb-serial ports show up as their own devices in the driver model tree.

 drivers/usb/serial/usb-serial.c |  145 ++++++++++++++++++++++++++++++++++++----
 drivers/usb/serial/usb-serial.h |    9 ++
 2 files changed, 139 insertions(+), 15 deletions(-)

------

[email protected], 2002-12-10 15:05:29-08:00, [email protected]
[PATCH] Datafab KECF-USB / Sagatek DCS-CF / Simpletech UCF-100

sorry to bother you again - now that 2.4.20 is out, is there any chance to include this in 2.4.21? I've been trying since 2.4.19, a few other UNUSUAL_DEV entries were added, but not this one...

The device works fine with the patch (and doesn't work at all without it) for me and a few other people (devices with different "marketing" names, the same vendor:device id), no one has reported any problems. The patch has been in the 2.4-ac tree for a while, too.

 drivers/usb/storage/unusual_devs.h |   12 ++++++++++++
 1 files changed, 12 insertions(+)

------

[email protected], 2002-12-10 14:18:40-08:00, [email protected]
[PATCH] Patch for debounce in 2.5

I was getting annoyed that nobody fixed the obviously broken debounce loop, so I had to go ahead and fix that.

 drivers/usb/core/hub.c |   32 +++++++++++++++++++++++---------
 1 files changed, 23 insertions(+), 9 deletions(-)

------