From: Greg KH To: torvalds@transmeta.com Cc: linux-usb-devel@lists.sourceforge.net Subject: [BK PATCH] USB changes for 2.5.10 This includes the changesets I sent out yesterday, with a few more added. Pull from: bk://linuxusb.bkbits.net/linus-2.5 Documentation/usb/ehci.txt | 15 + drivers/usb/Config.help | 8 drivers/usb/class/printer.c | 21 + drivers/usb/core/Config.in | 11 - drivers/usb/core/usb.c | 181 +++++++++++++++-- drivers/usb/host/ehci-hub.c | 36 +-- drivers/usb/host/ohci-hub.c | 5 drivers/usb/image/mdc800.c | 9 drivers/usb/image/scanner.c | 9 drivers/usb/image/scanner.h | 5 drivers/usb/input/hid-core.c | 2 drivers/usb/input/hiddev.c | 28 +- drivers/usb/media/Makefile | 2 drivers/usb/media/dabusb.c | 15 + drivers/usb/media/dabusb.h | 5 drivers/usb/media/usbvideo.c | 100 ++++++--- drivers/usb/media/usbvideo.h | 27 -- drivers/usb/misc/auerswald.c | 34 ++- drivers/usb/misc/brlvger.c | 21 + drivers/usb/net/pegasus.h | 2 drivers/usb/net/usbnet.c | 33 +-- drivers/usb/serial/keyspan.c | 171 ++++++++++++---- drivers/usb/usb-skeleton.c | 38 ++- include/linux/brlvger.h | 7 include/linux/usb.h | 452 ++++++++++++++++++++++--------------------- 25 files changed, 795 insertions(+), 442 deletions(-) ------ ChangeSet@1.570, 2002-04-26 15:57:44-07:00, greg@kroah.com USB core added check for num_minors at registration time to catch buggy drivers. drivers/usb/core/usb.c | 5 +++++ 1 files changed, 5 insertions(+) ------ ChangeSet@1.569, 2002-04-26 15:52:19-07:00, greg@kroah.com USB core document the return value of usb_register_dev() better. drivers/usb/core/usb.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) ------ ChangeSet@1.568, 2002-04-26 15:08:32-07:00, vojtech@suse.cz [PATCH] One more buggy KVM switch to be blacklisted. USB hid driver This adds a blacklist entry for another KVM switch which chokes on get_request(). drivers/usb/input/hid-core.c | 2 ++ 1 files changed, 2 insertions(+) ------ ChangeSet@1.566, 2002-04-26 12:14:02-07:00, david-b@pacbell.net [PATCH] PATCH 2.5.10 ehci.txt USB ehci documentation update It mostly updates the description of the EHCI driver to point out that several non-NEC implementations are now expected to work, and that (high speed) ISO is supported. Documentation/usb/ehci.txt | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) ------ ChangeSet@1.565, 2002-04-26 12:13:18-07:00, david-b@pacbell.net [PATCH] PATCH 2.5.10 usbnet, check_connect updates USB usbnet driver update The patch cleans up the handling of connection checking to match the truth that it's effectively tristate (connected, not, and can't know) vs binary ("connected" and "can't know" as the same value, since it was OK to ifup). Since ethtool supports the tristate semantics, it matters now. drivers/usb/net/usbnet.c | 33 +++++++++++---------------------- 1 files changed, 11 insertions(+), 22 deletions(-) ------ ChangeSet@1.558.1.1, 2002-04-26 13:56:47-05:00, kai@tp1.ruhr-uni-bochum.de Properly export drivers/usb/media video interface Mark the API functions accessed by other drivers with EXPORT_SYMBOL() and make the remaining functions static. drivers/usb/media/Makefile | 2 drivers/usb/media/usbvideo.c | 100 ++++++++++++++++++++++++++++++------------- drivers/usb/media/usbvideo.h | 27 ----------- 3 files changed, 73 insertions(+), 56 deletions(-) ------ ChangeSet@1.564, 2002-04-25 16:20:39-07:00, greg@kroah.com USB keyspan driver patch that fixes lots of different problems. - Modified port open, port close, and send setup() logic to fix various data and endpoint synchronization bugs and device LED status bugs. - Changed keyspan_write_room() to accurately return transmit buffer availability. - Changed forwardingLength from 1 to 16 for all adapters. drivers/usb/serial/keyspan.c | 171 ++++++++++++++++++++++++++++++++----------- 1 files changed, 130 insertions(+), 41 deletions(-) ------ ChangeSet@1.563, 2002-04-25 15:13:02-07:00, greg@kroah.com added support for USB_DYNAMIC_MINORS to the usb drivers that can use it. drivers/usb/class/printer.c | 21 +++++++++++++++------ drivers/usb/image/mdc800.c | 9 +++++++++ drivers/usb/image/scanner.c | 9 ++++++--- drivers/usb/image/scanner.h | 5 +++++ drivers/usb/input/hiddev.c | 28 ++++++++++++++++++++-------- drivers/usb/media/dabusb.c | 15 ++++++++++++--- drivers/usb/media/dabusb.h | 5 +++++ drivers/usb/misc/auerswald.c | 33 ++++++++++++++++++++++----------- drivers/usb/misc/brlvger.c | 21 ++++++++++++--------- drivers/usb/usb-skeleton.c | 38 ++++++++++++++++++++++++-------------- include/linux/brlvger.h | 5 +++++ 11 files changed, 135 insertions(+), 54 deletions(-) ------ ChangeSet@1.562, 2002-04-25 15:12:28-07:00, greg@kroah.com added CONFIG_USB_DYNAMIC_MINORS to the Config.in file :) drivers/usb/core/Config.in | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) ------ ChangeSet@1.561, 2002-04-25 15:11:42-07:00, greg@kroah.com added CONFIG_USB_DYNAMIC_MINORS support to the USB core Here's a patch that finishes off my previous patch that enabled us to use less than 16 minor numbers per USB device that uses the USB major number. This patch allows all such devices to share all 256 minor numbers at once, much like the usbserial core shares the USB serial major with all usb-serial drivers. This also solves Oliver's problem of having 30 printers :) drivers/usb/Config.help | 8 ++ drivers/usb/core/usb.c | 169 ++++++++++++++++++++++++++++++++++++++++++------ include/linux/usb.h | 9 ++ 3 files changed, 166 insertions(+), 20 deletions(-) ------ ChangeSet@1.544.3.5, 2002-04-25 12:03:22-07:00, greg@kroah.com added MODULE_LICENSE() to the auerswald USB driver. drivers/usb/misc/auerswald.c | 1 + 1 files changed, 1 insertion(+) ------ ChangeSet@1.544.3.4, 2002-04-25 10:26:03-07:00, david-b@pacbell.net [PATCH] PATCH 2.5.10 -- polling interval (hub + ...) This patch is the result of that discussion a short while back to fix the "hub driver polls too quickly at high speed" bug. - redefines "interval" of usb_fill_int_urb() to be what the endpoint descriptor returns, and transparently does the log-to-linear conversion if it's high speed - (most of the patch by volume!!) moves declarations forward so testing dev->speed there will compile. No driver changes were needed -- most drivers pass the endpoint bInterval value already, and those that don't are not dealing with high speed device quirks. p.s. Includes an unrelated one-liner: deletes export of usb_inc_dev_use() so it now shows up in kernel doc. Minor oversight in an earlier patch. drivers/usb/core/usb.c | 1 include/linux/usb.h | 443 ++++++++++++++++++++++++------------------------- 2 files changed, 226 insertions(+), 218 deletions(-) ------ ChangeSet@1.544.3.3, 2002-04-25 10:25:29-07:00, david-b@pacbell.net [PATCH] PATCH 2.5.10: set_bit() and friends now need a long paramater USB set_bit() and friends now need a long paramater Fixes the set_bit() warnings in the ehci and ohci driver drivers/usb/host/ehci-hub.c | 36 ++++++++++++++++++++---------------- drivers/usb/host/ohci-hub.c | 5 ++++- 2 files changed, 24 insertions(+), 17 deletions(-) ------ ChangeSet@1.544.3.2, 2002-04-23 14:18:41-07:00, petkan@mastika.lnxw.com [PATCH] SOHOware NUB110 addet to the support list USB pegasus driver SOHOware NUB110 addet to the support list drivers/usb/net/pegasus.h | 2 ++ 1 files changed, 2 insertions(+) ------ ChangeSet@1.544.3.1, 2002-04-23 14:18:26-07:00, greg@kroah.com USB voyager driver changed the number of minor devices the braille voyager driver uses. include/linux/brlvger.h | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) ------