Re: request: patch for oracom mp3 stick --> usb-storage: unusual_devs.h

2008-02-01 Thread Robert Spitzenpfeil
Matthew Dharm wrote: On Sat, Feb 02, 2008 at 12:22:14AM +0100, Robert Spitzenpfeil wrote: Alan Stern wrote: On Fri, 1 Feb 2008, Robert Spitzenpfeil wrote: Alan Stern wrote: So Robert, this suggests an experiment for you to try. First remove the US_FL_FIX_INQUIRY flag

Re: [PATCH 089/128] USB: at91_udc uses generic GPIO calls; minor cleanup

2008-02-01 Thread steve birtles
Hi Guys, I have checked this patch on a board that inverts the signal via a transistor: I.E the UcDragon YL9200 The patch appears to be functioning correctly. The reason they did this was to allow greater driving potential via a transistor, rather than stressing the Atmel chip directly

Re: request: patch for oracom mp3 stick --> usb-storage: unusual_devs.h

2008-02-01 Thread Matthew Dharm
On Sat, Feb 02, 2008 at 12:22:14AM +0100, Robert Spitzenpfeil wrote: > Alan Stern wrote: > >On Fri, 1 Feb 2008, Robert Spitzenpfeil wrote: > > > >>Alan Stern wrote: > >>>So Robert, this suggests an experiment for you to try. First remove > >>>the US_FL_FIX_INQUIRY flag in your unusual_devs entry,

Re: [PATCH 2.6.24] bugfix for an overflow condition in usb storage & isd200.c

2008-02-01 Thread Mark Glines
On Thu, 31 Jan 2008 21:37:13 +0200 Boaz Harrosh <[EMAIL PROTECTED]> wrote: > > Mark - This is for you on top of vanila v2.6.24 kernel from Linus. Sorry I didn't get back to you sooner. This fixes the issue I was having. > --- > > scsi_scan is issuing a 36-byte INQUIRY request to llds. isd20

[PATCH 128/128] USB: fix codingstyle issues in drivers/usb/core/*.c

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the remaining .c files in drivers/usb/core/ Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/buffer.c | 11 + drivers/usb/core/config.c | 14 +++- drivers/usb/core/driver.c | 30 ++ dr

[PATCH 127/128] USB: fix codingstyle issues in drivers/usb/core/message.c

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the message.c file. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/message.c | 398 ++- 1 files changed, 204 insertions(+), 194 deletions(-) diff --git a/drivers/usb/core/message.c b/dri

[PATCH 125/128] USB: fix codingstyle issues in drivers/usb/core/devio.c

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the devio.c file. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/devio.c | 333 ++ 1 files changed, 188 insertions(+), 145 deletions(-) diff --git a/drivers/usb/core/devio.c b/driver

[PATCH 126/128] USB: fix codingstyle issues in drivers/usb/core/hcd-pci.c

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the hcd-pci.c file. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/hcd-pci.c | 129 +++- 1 files changed, 67 insertions(+), 62 deletions(-) diff --git a/drivers/usb/core/hcd-pci.c b/driv

[PATCH 124/128] USB: fix codingstyle issues in drivers/usb/core/devices.c

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the devices.c file. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/devices.c | 154 +++ 1 files changed, 82 insertions(+), 72 deletions(-) diff --git a/drivers/usb/core/devices.c b/drive

[PATCH 123/128] USB: fix codingstyle issues in drivers/usb/core/*.h

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the USB internal header files. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/hcd.h | 90 +++--- drivers/usb/core/hub.h | 18 drivers/usb/core/otg_whitelist.h |

[PATCH 122/128] USB: fix codingstyle issues in include/linux/usb/

2008-02-01 Thread Greg Kroah-Hartman
Fixes a number of coding style issues in the USB public header files. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/usb/audio.h | 14 ++-- include/linux/usb/cdc.h | 16 ++-- include/linux/usb/gadget.h| 123 ++-- include/linu

[PATCH 121/128] USB: fix codingstyle issues in include/linux/usb.h

2008-02-01 Thread Greg Kroah-Hartman
No logical code changes were made, but checkpatch.pl is much happier now. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux/usb.h | 204 --- 1 files changed, 113 insertions(+), 91 deletions(-) diff --git a/include/linux/usb.h

[PATCH 120/128] USB: mark USB drivers as being GPL only

2008-02-01 Thread Greg Kroah-Hartman
Over two years ago, the Linux USB developers stated that they believed there was no way to create a USB kernel driver that was not under the GPL. This patch moves the USB apis to enforce that decision. There are no known closed source USB drivers in the wild, so this patch should cause no problem

[PATCH 119/128] USB: use a real vendor and product id for root hubs

2008-02-01 Thread Greg Kroah-Hartman
Turns out that a company is out there using the vendor id of 0x in the wild, so use a real vendor/product id for the root hubs. Now that the Linux Foundation has a real vendor id, we use that, and the first product id: 0x1d6b is the vendor id of the Linux Foundation 0x0

[PATCH 118/128] USB: mount options: fix usbfs

2008-02-01 Thread Greg Kroah-Hartman
From: Miklos Szeredi <[EMAIL PROTECTED]> Add a .show_options super operation to usbfs. Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/inode.c | 42 -- 1 files changed, 36 inser

[PATCH 117/128] USB: Fix usb_serial_driver structure for Kobil cardreader driver.

2008-02-01 Thread Greg Kroah-Hartman
From: Stefan Bader <[EMAIL PROTECTED]> The device setup did miss to initialize the num_interrupt_out field, thus failing to successfully complete the probe function. Signed-off-by: Stefan Bader <[EMAIL PROTECTED]> Cc: stable <[EMAIL PROTECTED]> Cc: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Greg

[PATCH 116/128] usb: ehci should use u16 for isochronous intervals

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> While most isochronous endpoints have short polling intervals, the EHCI driver won't necessarily handle larger ones correctly. This patch switches to use a "u16" to represent those periods, not a u8, since it can always work: the largest expressible perio

[PATCH 115/128] usb: ehci, remove false clear-reset path

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Some of the "EHCI ports reset forever" problems may be explained by code paths which wrongly flagged resets as complete. This removes two such paths; the ehci_hub_status_data() path should be the only one to have an effect, since it was already properly fl

[PATCH 113/128] usb: ohci-sm501 driver

2008-02-01 Thread Greg Kroah-Hartman
From: Magnus Damm <[EMAIL PROTECTED]> usb: ohci-sm501 driver V2 This patch adds sm501 ohci support. It's all very straightforward with the exception of dma_declare_coherent_memory() and HCD_LOCAL_MEM. Together they are used to ensure that usb data is allocated using dma_alloc_coherent(), and that

[PATCH 114/128] USB: Use menuconfig objects

2008-02-01 Thread Greg Kroah-Hartman
From: Denis Cheng <[EMAIL PROTECTED]> commit 04d06ad0f1fdb499af84ae3d7969e2136a462f38 have added menuconfig support for the whole USB Kconfig, but there are still menuconfig need for usb/serial, usb/atm, and usb/gadget, so that the user can disable all the options in that menu at once instead of h

[PATCH 112/128] usb: dma bounce buffer support

2008-02-01 Thread Greg Kroah-Hartman
From: Magnus Damm <[EMAIL PROTECTED]> usb: dma bounce buffer support V4 This patch adds dma bounce buffer support to the usb core. These buffers can be enabled with the HCD_LOCAL_MEM flag, and they make sure that all data passed to the host controller is allocated using dma_alloc_coherent(). Sig

[PATCH 111/128] USB: last abuses of intfdata in close for usb-serial drivers

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> these drivers abused intfdata in close() as flags for binding. That races with reprobing of those devices. This patch fixes that by using the flag and the locks introduced with the patch against mos7720. Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> Sign

[PATCH 110/128] USB: kl5kusb105 don't flush to logically disconnected devices

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> If disconnect() is called for a logical disconnect, no more IO must be done after disconnect() returns, or the old and new drivers may conflict. This patch avoids this by using the flag and lock introduced by the earlier patch for the mos7720 driver. Signed

[PATCH 109/128] USB: oti6858: cleanup

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> - Rename the copied buffer functions from pl2303 to oti6858 to avodi confusion - Initialise speeds properly - Use modern baud rate handling - Remove GSERIAL/SSERIAL ioctl hacks that reference termios unlocked Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-

[PATCH 108/128] USB: more serial drivers writing after disconnect

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> this covers the rest of the obvious cases by using the flags and locks to guard against disconnect which were introduced in the earlier patch against mos7720. Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECT

[PATCH 107/128] USB: make sure usb serial drivers don't flush to logically disconnected devices

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> If disconnect() is called for a logical disconnect, no more IO must be done after disconnect() returns, or the old and new drivers may conflict. This patch avoids this by using the flag and lock introduced by the earlier patch for the mos7720 driver. Signed

[PATCH 106/128] USB: fix memleak in ark3116 serial driver

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> in an error case memory already allocated must be freed again. Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/ark3116.c |4 +++- 1 files changed, 3 insertions(+), 1 deletion

[PATCH 104/128] USB: constify function pointer tables

2008-02-01 Thread Greg Kroah-Hartman
From: Jan Engelhardt <[EMAIL PROTECTED]> Signed-off-by: Jan Engelhardt <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/misc/iowarrior.c |2 +- drivers/usb/mon/mon_bin.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[PATCH 105/128] USB: stop abuse of intfdata in cypress_m8

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> this driver uses usb_get_intfdata() == NULL as a test for disconnect(). You must not do that as this races with probe(). By the time you test your erstwhile interface may already be somebody else's interface. This fixes the close() method of cypress_m8 to us

[PATCH 102/128] USB: add support for SuperH OHCI

2008-02-01 Thread Greg Kroah-Hartman
From: Yoshihiro Shimoda <[EMAIL PROTECTED]> add support for SuperH OHCI. supported CPU are: - SH7720 - SH7721 - SH7763 Signed-off-by: Yoshihiro Shimoda <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/Kconf

[PATCH 103/128] USB: stop io performed by mos7720 upon close()

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> This fixes a problem where the mos7720 driver will make io to a device from which it has been logically disconnected. It does so by introducing a flag by which the generic usb serial code can signal the subdrivers their disconnection and appropriate locking.

[PATCH 100/128] USB: usbserial: provide ezusb functions for an external module.

2008-02-01 Thread Greg Kroah-Hartman
From: Paul Chavent <[EMAIL PROTECTED]> When building an external module, the ezusb_* functions are not defined if we haven't loaded any built'in module that use them (whiteheat, keyspan, ...). This patch allow to build those functions even if we only have selected the usbserial generic driver. S

[PATCH 101/128] USB: ftdi_sio: remove very old changelog entries from the file.

2008-02-01 Thread Greg Kroah-Hartman
People keep trying to add entries to this section of the driver for things. That's what the Changelog is supposed to be for, not the .c file. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/ftdi_sio.c | 222 + 1 files changed

[PATCH 099/128] USB: EHCI: add a short delay to the bus_suspend routine

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1031) adds a short delay to the bus-suspend routine in ehci-hcd. Without it some devices disconnect when they should suspend. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Ha

[PATCH 098/128] USB: EHCI: move del_timer_sync calls outside spinlocked region

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1030b) moves a del_timer_sync() call outside the scope of a spinlock, where it could cause a deadlock, and adds a new del_timer_sync() call for the new IAA watchdog timer (it was omitted by mistake). Signed-off-by: Alan Stern <[EMAIL PROTECTED]>

[PATCH 097/128] USB: usbfs: struct async is a fixed size structure

2008-02-01 Thread Greg Kroah-Hartman
From: Pete Zaitcev <[EMAIL PROTECTED]> The ISO descriptors are allocated separately in proc_submiturb for a fetch from user mode, then tucked at the end of URB. This seems like a dead code. Signed-off-by: Pete Zaitcev <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> ---

[PATCH 095/128] USB: ehci: minor ISO updates, always support split ISO

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Small updates to the EHCI driver's ISO support: - Get rid of the Kconfig option for full speed ISO. It may not be perfect yet, but it hasn't appeared to be dangerous and pretty much every configuration wants it. - Instead of two places to disable

[PATCH 096/128] USB: ehci completes high speed ISO URBs sooner

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> This has some bugfixes for the EHCI driver's ISO transfer scanning logic. It was leaving ITDs and SITDs on the schedule too long, for a few different reasons, which caused trouble. (a) Look at all microframes for high speed transfers, not just

[PATCH 094/128] USB: ehci saves some memory in ISO transfer descriptors

2008-02-01 Thread Greg Kroah-Hartman
From: Karsten Wiese <[EMAIL PROTECTED]> In the EHCI driver, itd->usecs[8] is used in periodic_usecs(), indexed by uframe. For an ITD's unused uframes it is 0, else it contains the same value as itd->stream->usecs. To check if an ITD's uframe is used, we can instead test itd->hw_transaction[ufram

[PATCH 093/128] USB: add ehci-ixp bus glue

2008-02-01 Thread Greg Kroah-Hartman
From: Vladimir Barinov <[EMAIL PROTECTED]> EHCI Glue driver for Intel IXP4XX EHCI USB controller Signed-off-by: Vladimir Barinov <[EMAIL PROTECTED]> Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/Kconfig|1 +

[PATCH 092/128] USB: misc: legousbtower: semaphore to mutex

2008-02-01 Thread Greg Kroah-Hartman
From: Daniel Walker <[EMAIL PROTECTED]> The dev->sem conforms to mutex style usage. This patch converts it to use the struct mutex type, and new API. There is also a small style fix around this comment, /* unlock here as tower_delete frees dev */ Where I broke the line up to meet the 80 char li

[PATCH 091/128] USB: add ehci-ppc-of bus glue (device-tree aware)

2008-02-01 Thread Greg Kroah-Hartman
From: Valentine Barshak <[EMAIL PROTECTED]> This adds device-tree-aware ehci-ppc-of driver. The code is based on the ehci-ppc-soc driver by Stefan Roese <[EMAIL PROTECTED]>. Signed-off-by: Valentine Barshak <[EMAIL PROTECTED]> Acked-by: Arnd Bergmann <[EMAIL PROTECTED]> Acked-by: Stefan Roese <[E

[PATCH 090/128] USB: pxa2xx_udc: use debugfs not procfs

2008-02-01 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov <[EMAIL PROTECTED]> Use debugfs instead of /proc/driver/udc Signed-off-by: Dmitry Baryshkov <[EMAIL PROTECTED]> Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/gadget/pxa2xx_udc.c | 117 ++

[PATCH 089/128] USB: at91_udc uses generic GPIO calls; minor cleanup

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Various small at91_udc cleanups: - Use generic GPIO calls, not older platform-specific ones - Use gpio_request()/gpio_free() - Use VERBOSE_DEBUG convention, not older VERBOSE - Fix sparse complaint about parameter type (changed to gfp_t) - Add missing

[PATCH 087/128] USB: Add documentation for USB suspend statistics.

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> This documents two newly created files: /sys/bus/usb/device/.../power/connected_duration /sys/bus/usb/device/.../power/active_duration Documentation was placed in Documentation/ABI/testing, since that's where the documentation is for the other USB sysfs power

[PATCH 088/128] USB: ohci-at91 uses generic GPIO calls

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Update the ohci-at91 bus glue to start understanding about the per-port power switch GPIOs it's given (on the sam9263-ek and potentially other boards). For the moment this just claims them and forces them active (assuming active-low power enables) whenever

[PATCH 085/128] USB: sierra driver - add update dtr logic

2008-02-01 Thread Greg Kroah-Hartman
From: Kevin Lloyd <[EMAIL PROTECTED]> The following improvements were made: - Fixed control line issue where asserting DTR on ep5 would close ep2 - Added support for calc_num_ports (will help support future composite devices) Signed-off-by: Kevin Lloyd <[EMAIL PROTECTED]> Signed-off-by: Greg

[PATCH 086/128] USB: Export suspend statistics

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> This patch exports two statistics to userspace: /sys/bus/usb/device/.../power/connected_duration /sys/bus/usb/device/.../power/active_duration connected_duration is the total time (in msec) that the device has been connected. active_duration is the total tim

[PATCH 083/128] USB: io_ti: clean up termios handling

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> Don't pass NULL into termios functions when calling them internally Remove all the crap which then checks for NULL which can't occur now Clear CMSPAR as it is not supported Report the baud rate back to the caller properly (See FIXME someone with the docs) Signed

[PATCH 084/128] USB: ftdi_sio: Support for more JTAG adaptors

2008-02-01 Thread Greg Kroah-Hartman
From: Harald Welte <[EMAIL PROTECTED]> [PATCH] ftdi_sio: add support for more FTDI based JTAG adaptors There are more devices similar to the Olimex JTAG adaptor, in that the first port of the FT2232C is used for JTAG, and only the second port is available as UART. I have thus renamed ftdi_olimex

[PATCH 082/128] USB: ti_usb: termios cleanups

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> Remove internal NULL passing in termios code Remove all the if checks it causes Encode the baud rate back properly Clear CMSPAR as it is not supported Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/

[PATCH 081/128] USB: mos7720: clean up termios

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> Remove lots of NULL checks that can no longer occur Encode the baud rate back into the termios (again someone with docs see FIXME to improve this further) Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- driv

[PATCH 080/128] USB: tosa_udc_use_gpio_vbus.patch

2008-02-01 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov <[EMAIL PROTECTED]> Use gpio_vbus instead of udc_is_connected for udc on tosa. Signed-off-by: Dmitry Baryshkov <[EMAIL PROTECTED]> Acked-by: Russell King <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- arch/arm/mach-pxa/tosa.c |9 ++---

[PATCH 079/128] USB: fix HCD Kconfig goofage

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Add a missing dependency which goofs up the xconfig display. Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/host/Kconfig |1 + 1 files changed, 1 insertions(+), 0 deletions(-) d

[PATCH 078/128] USB: gadget: at91_udc minor fix (there is no number six)

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Fix a small glitch noted by Yannick Cote. There is no endpoint number six, so if a (broken) host wrongly tried to change or read status of that endpoint, the driver could access reserved register space. Signed-off-by: David Brownell <[EMAIL PROTECTED]> Cc

[PATCH 076/128] USB: gadget: ethernet error path potential oops fix

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Fix potential (never-observed) oops on rare error path, bugzilla #9594. Fix uses the same test as used earlier. Also make the adjacent "else" block look like an "else" block instead of hiding like a bug. Signed-off-by: David Brownell <[EMAIL PROTECTED]>

[PATCH 077/128] USB: fix NULL pointer dereference on drivers/usb/serial/whiteheat.c

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Neukum <[EMAIL PROTECTED]> Am Sonntag, 16. Dezember 2007 05:23:47 schrieb Andrew Morton: > On Sat, 15 Dec 2007 07:08:52 -0800 (PST) [EMAIL PROTECTED] wrote: > > > http://bugzilla.kernel.org/show_bug.cgi?id=9573 > > There's a null pointer dereference on drivers/usb/serial/whiteheat.c

[PATCH 074/128] USB: add Marvell Orion USB host support

2008-02-01 Thread Greg Kroah-Hartman
From: Tzachi Perelstein <[EMAIL PROTECTED]> Some glue bits for the on-chip USB host controller in the Marvell Orion family of ARM SoCs, which is basically EHCI compatible. Signed-off-by: Tzachi Perelstein <[EMAIL PROTECTED]> Reviewed-by: Lennert Buytenhek <[EMAIL PROTECTED]> Signed-off-by: David

[PATCH 075/128] USB: ehci potential oops fix on ARC/TDI cores

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> Kernel bugzilla entry #9569 reports a potential OOPS in some code supporting the integrated root hub TT support used on ARC/TDI derived cores. (This seems to have been a longstanding issue.) This patch cleans up usage of urb->dev->tt to avoid that potenti

[PATCH 073/128] USB: ehci-hcd: fix sparse warning about shadowing 'status' symbol

2008-02-01 Thread Greg Kroah-Hartman
From: Marcin Slusarz <[EMAIL PROTECTED]> fix warning: drivers/usb/host/ehci-hcd.c:832:8: warning: symbol 'status' shadows an earlier one drivers/usb/host/ehci-hcd.c:790:71: originally declared here Signed-off-by: Marcin Slusarz <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTEC

[PATCH 071/128] USB: usb/storage/initializers.c: fix signedness difference

2008-02-01 Thread Greg Kroah-Hartman
From: Marcin Slusarz <[EMAIL PROTECTED]> fix warnings: drivers/usb/storage/initializers.c:83:26: warning: incorrect type in argument 5 (different signedness) drivers/usb/storage/initializers.c:83:26:expected unsigned int *act_len drivers/usb/storage/initializers.c:83:26:got int * drivers/

[PATCH 072/128] USB: usbdevfs_urb: __user annotation

2008-02-01 Thread Greg Kroah-Hartman
From: Marcin Slusarz <[EMAIL PROTECTED]> fix warning: drivers/usb/core/devio.c:1226:20: warning: incorrect type in assignment (different address spaces) drivers/usb/core/devio.c:1226:20:expected void *usercontext drivers/usb/core/devio.c:1226:20:got void [noderef] * Signed-off-by: Marcin

[PATCH 069/128] USB: Spelling fixes

2008-02-01 Thread Greg Kroah-Hartman
From: Joe Perches <[EMAIL PROTECTED]> Signed-off-by: Joe Perches <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/atm/ueagle-atm.c|2 +- drivers/usb/class/cdc-acm.c |2 +- drivers/usb/gadget/at91_udc.h |2 +- drivers/usb/g

[PATCH 070/128] USB: PS3: Fix EHCI ISO transfer bug

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> This adds a workaround for an issue reported with ISO transfers on some EHCI controllers, most recently with VIA KT800 and PS3 EHCI silicon. The issue is that the silicon doesn't necessarily seem to be done using ISO DMA descriptors (itd, sitd) when it mar

[PATCH 068/128] USB: gadget: pxa2xx_udc supports inverted vbus

2008-02-01 Thread Greg Kroah-Hartman
From: Dmitry Baryshkov <[EMAIL PROTECTED]> Some boards (like e.g. Tosa) invert the VBUS-detection signal: it's low when a host is supplying VBUS, and high otherwise. Allow specifying whether gpio_vbus value is inverted. Signed-off-by: Dmitry Baryshkov <[EMAIL PROTECTED]> Signed-off-by: David Brow

[PATCH 066/128] USB: testing driver: convert dev->sem to mutex

2008-02-01 Thread Greg Kroah-Hartman
From: Matthias Kaehlcke <[EMAIL PROTECTED]> USB testing driver: convert semaphore dev->sem to the mutex API Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/misc/usbtest.c |

[PATCH 067/128] USB: testing driver: don't free a locked mutex

2008-02-01 Thread Greg Kroah-Hartman
From: Andrew Morton <[EMAIL PROTECTED]> Dopey thing to do and lockdep will (or should) warn. Spotted by Daniel Walker. Cc: Matthias Kaehlcke <[EMAIL PROTECTED]> Cc: Daniel Walker <[EMAIL PROTECTED]> Cc: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-b

[PATCH 065/128] USB: mon nopage

2008-02-01 Thread Greg Kroah-Hartman
From: Nick Piggin <[EMAIL PROTECTED]> Convert USB mon driver from nopage to fault. Signed-off-by: Nick Piggin <[EMAIL PROTECTED]> Acked-by: Pete Zaitcev <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/mon/

[PATCH 063/128] USB: keyspan_pda: clean up speed handling

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/keyspan_pda.c | 38 +++--- 1 files changed, 19 insertions(

[PATCH 064/128] USB: mct232: speed, new termios and compliance cleanups

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Cc: Pete Zaitcev <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/mct_u232.c | 26 +- drivers/u

[PATCH 062/128] USB: belkin_sa: clean up for new style termios and speed handling, plus style

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Cox <[EMAIL PROTECTED]> A tester with actual hardware would be useful Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/belkin_sa.c | 37 --

[PATCH 061/128] USB: pl2303: Add autosuspend support to pl2303 usb serial converter.

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> Signed-off-by: Sarah Sharp <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/pl2303.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl

[PATCH 060/128] USB: pl2303: Move pl2303 vendor specific init to probe function.

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> Without this fix, the pl2303 usb-serial adapter would not suspend properly unless it had been opened first. A pl2303 type_1 chip will still break if the system is hibernated while the RS-232 connector is powered by another system. This was broken before, and

[PATCH 059/128] USB: pl2303: Cleanup FISH and SOUP macros in pl2303 driver.

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> Replace the FISH and SOUP macros that violated the macro guidelines in CodingStyle. Turn them into function calls with clearer variable names. Signed-off-by: Sarah Sharp <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/u

[PATCH 058/128] USB: dummy_hcd: change the default power budget

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1025) changes the default power budget for dummy-hcd to 500 mA and makes it a preprocessor parameter for easier testing. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/gadget/d

[PATCH 057/128] USB: EHCI: add separate IAA watchdog timer

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1028) was mostly written by David Brownell; I made only a few changes (extra log info and a small bug fix -- which might account for why David's version had to be reverted). It adds a new watchdog timer to the ehci-hcd driver to be used exclusive

[PATCH 055/128] USB: Edgeport USB Serial Converter: convert es_sem to mutex

2008-02-01 Thread Greg Kroah-Hartman
From: Matthias Kaehlcke <[EMAIL PROTECTED]> Edgeport USB Serial Converter: convert semaphore es_sem to the mutex API Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/io_ti.c | 21 +++-- 1 files cha

[PATCH 056/128] USB: add usbfs stubs for suspend and resume

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1022b) adds stub methods for suspend and resume to the usbfs driver. There isn't much they can do since there's no way to inform a user task about the events. But it's important to have the stubs, because an upcoming change to usbcore will autom

[PATCH 054/128] USB: updates to usb_reset_composite_device()

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1023) updates the code in usb_reset_composite_device(): Some local variable declarations are moved to inner loops. The interface locks are not acquired. This isn't necessary any more; its only reason was to prevent an in

[PATCH 052/128] usb: Remove OHCI useless masking/unmasking of WDH interrupt

2008-02-01 Thread Greg Kroah-Hartman
From: Benjamin Herrenschmidt <[EMAIL PROTECTED]> The OHCI driver's IRQ handler, while processing a WDH interrupt, masks and unmasks it. I believe this is both broken (the write may still be posted during the donelist processing it's trying to safeguard) and useless as this IRQ may not be reissued

[PATCH 053/128] USB: repair USBDEVFS_CONNECT ioctl

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> For as long as I've known about it, the USBDEVFS_CONNECT ioctl hasn't done what it's supposed to. The current code reprobes _all_ the unbound USB interfaces; this patch (as1021) makes it reprobe only the interface for which it was called. Signed-off-by: Alan

[PATCH 051/128] USB: convert ehci debug files to use debugfs instead of sysfs

2008-02-01 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> We should not have multiple line files in sysfs, this moves the data to debugfs instead, like the UHCI driver. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Cc: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Ha

[PATCH 050/128] USB: convert ohci debug files to use debugfs instead of sysfs

2008-02-01 Thread Greg Kroah-Hartman
From: Tony Jones <[EMAIL PROTECTED]> We should not have multiple line files in sysfs, this moves the data to debugfs instead, like the UHCI driver. Signed-off-by: Tony Jones <[EMAIL PROTECTED]> Cc: Kay Sievers <[EMAIL PROTECTED]> Cc: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Ha

[PATCH 049/128] USB: always announce a device has been added to the system

2008-02-01 Thread Greg Kroah-Hartman
Distros (like SuSE) want to know this information, to make it easier to handle support issues. Might as well let everyone benefit from this. This is also enabled whenever CONFIG_USB_DEBUG is enabled, to help with debugging. Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/co

[PATCH 048/128] USB: dummy_hcd: don't register drivers on the platform bus

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1017) makes dummy_hcd behave more like the other USB peripheral controller drivers by no longer registering its gadget driver on the platform bus. Doing that has always been a mistake, since a usb_gadget_driver isn't a platform_driver. Instead t

[PATCH 047/128] USB: force handover port to companion when hub_port_connect_change fails

2008-02-01 Thread Greg Kroah-Hartman
From: Balaji Rao <[EMAIL PROTECTED]> This patch hands over the port to the companion when the hub_port_connect_change fails. Signed-off-by: Balaji Rao <[EMAIL PROTECTED]> Signed-off-by: Alan Stern <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/core/hcd.

[PATCH 046/128] USB: usb peripheral controller driver oops avoidance

2008-02-01 Thread Greg Kroah-Hartman
From: Patrik Sevallius <[EMAIL PROTECTED]> I'm having problem with oopses when rebooting, if I modprobe g_serial and rmmod g_serial and do a reboot I get an oops in device_shutdown(). The reason seems to be that usb_gadget_unregister_driver() doesn't do enough cleanup. With this at91_udc patch I

[PATCH 044/128] USB: Prepare serial core for autosuspend.

2008-02-01 Thread Greg Kroah-Hartman
From: Sarah Sharp <[EMAIL PROTECTED]> Claim the interface for a USB to serial converter when the tty is open, and release the interface when the tty is closed. If a driver doesn't provide a resume function, use the generic resume instead. Make sure the generic resume function does not submit the

[PATCH 045/128] USB: cyberjack: remove a unnecessary variable.

2008-02-01 Thread Greg Kroah-Hartman
From: Andre Haupt <[EMAIL PROTECTED]> This also fixes a sparse warning that symbol 'result' shadows an earlier one. Signed-off-by: Andre Haupt <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/cyberjack.c |1 - 1 files changed, 0 insertions(+),

[PATCH 043/128] USB: gadget code switches to pr_err() and friends

2008-02-01 Thread Greg Kroah-Hartman
From: David Brownell <[EMAIL PROTECTED]> We now have pr_err(), pr_warning(), and friends ... start using them in the gadget stack instead of printk(KERN_ERR) and friends. This gives us shorter lines and somewhat increased readability. Signed-off-by: David Brownell <[EMAIL PROTECTED]> Signed-off-b

[PATCH 041/128] USB: make ksuspend_usbd thread non-freezable

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1012b) makes the ksuspend_usbd kernel thread non-freezable. Since the PM core has been changed to lock all devices during a system sleep, the thread no longer needs to be frozen. It won't interfere with a system sleep because before trying to re

[PATCH 042/128] USB: don't change HC power state for a FREEZE

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1016) prevents PCI-based host controllers from undergoing a power-state change during a FREEZE or a PRETHAW. Such changes are needed only during a SUSPEND. Signed-off-by: Alan Stern <[EMAIL PROTECTED]> CC: David Brownell <[EMAIL PROTECTED]> Sign

[PATCH 039/128] USB: linux/usb/Kbuild needs only "header-y", not "unifdef-y"

2008-02-01 Thread Greg Kroah-Hartman
From: Robert P. J. Day <[EMAIL PROTECTED]> Given that none of the referenced header files test the proprocessor conditional __KERNEL__, there's no point "unifdef"fing them. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- include/linux

[PATCH 040/128] USB: Drop unnecessary continue in a few drivers

2008-02-01 Thread Greg Kroah-Hartman
From: Julia Lawall <[EMAIL PROTECTED]> Continue is not needed at the bottom of a loop. The semantic patch implementing this change is as follows: @@ @@ for (...;...;...) { ... if (...) { ... - continue; } } Signed-off-by: Julia Lawall <[EMAIL PROTECTED]> Signed-off-by: Greg Kro

[PATCH 037/128] USB: usb_serial: clean tty reference in the last close

2008-02-01 Thread Greg Kroah-Hartman
From: Aristeu Rozanski <[EMAIL PROTECTED]> When a usb serial adapter is used as console, the usb serial console driver bumps the open_count on the port struct used but doesn't attach a real tty to it (only a fake one temporaly). If this port is opened later using the regular character device inter

[PATCH 038/128] USB: usb_serial_console: allocate fake tty and termios before calling driver open() method

2008-02-01 Thread Greg Kroah-Hartman
From: Aristeu Rozanski <[EMAIL PROTECTED]> The usb serial method set_termios() is called for the first time from open() method in order to set up the termios structure with the default device's settings, ignoring the current settings. Once it's initialized, the next set_termios() calls will update

[PATCH 036/128] USB: usb_serial_console: fix command line parsing

2008-02-01 Thread Greg Kroah-Hartman
From: Aristeu Rozanski <[EMAIL PROTECTED]> Currently usb serial console support ignores the device and always use ttyUSB0. Signed-off-by: Aristeu Rozanski <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/serial/console.c |9 ++--- 1 files changed,

[PATCH 035/128] USB: cypress_cy7c63: updated contact/usage information

2008-02-01 Thread Greg Kroah-Hartman
From: Oliver Bock <[EMAIL PROTECTED]> here's a minor update to the cypress_cy7c63 driver providing new contact and usage information. From: Oliver Bock <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/misc/cypress_cy7c63.c |7 +-- 1 files changed

[PATCH 033/128] USB: usb-storage: new "lockable" subclass 0x07

2008-02-01 Thread Greg Kroah-Hartman
From: Alan Stern <[EMAIL PROTECTED]> This patch (as1011) adds a #define for the newly-created Lockable (i.e., password-protected) subclass 0x07 for USB mass-storage devices. The private ISD200 entry (which had been mapped to subclass 0x07) is moved to 0xf0, which is unlikely to conflict with any o

[PATCH 032/128] USB: Add missing "space" to printk messages

2008-02-01 Thread Greg Kroah-Hartman
From: Joe Perches <[EMAIL PROTECTED]> Signed-off-by: Joe Perches <[EMAIL PROTECTED]> Acked-by: David Brownell <[EMAIL PROTECTED]> Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]> --- drivers/usb/atm/ueagle-atm.c|4 ++-- drivers/usb/gadget/amd5536udc.c |2 +- drivers/usb/gadget/m6

  1   2   >