23 May, 2007

40 commits

  • This patch (as906) improves the error handling for the USB power/level
    attribute file. If an error occurs, the original power-level settings
    will be restored.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as881b) makes the ksuspend_usb_wq workqueue freezable. We
    don't want a rogue workqueue thread running around, unexpectedly
    suspending or resuming USB devices in the middle of a system sleep
    transition.

    This fixes Bugzilla #8498.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This fixes a bug in an OHCI quirk handler for Portege 4000; the
    Subvendor is 0x1179 (PCI_VENDOR_ID_TOSHIBA)
    not 0x102f (PCI_VENDOR_ID_TOSHIBA_2)

    bugid 8510

    00:02.0 USB Controller [0c03]: ALi Corporation USB 1.1 Controller
    [10b9:5237] (rev 03) (prog-if 10 [OHCI])
    Subsystem: Toshiba America Info Systems Unknown device [1179:0004]
    Flags: bus master, medium devsel, latency 64, IRQ 11
    Memory at f7eff000 (32-bit, non-prefetchable) [size=4K]
    Capabilities:

    Signed-off-by: Andrey Borzenkov
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Andrey Borzenkov
     
  • Looks like the error path had a copy-paste error. The normal exit path
    uses correct URB already.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • Fix debug output. Previously, it would output "0xFFFFFFB0" on 32-bit
    archs (and probably "0xFFFFFFFFFFFFFFB0" on 64-bits), because buf is
    taken as signed char, which is promoted to signed int, while %x always
    expects an unsigned int.

    Signed-off-by: Jan Engelhardt
    Signed-off-by: Greg Kroah-Hartman

    Jan Engelhardt
     
  • In preparation for struct class_device -> struct device input
    core conversion, switch to using input_dev->dev.parent when
    specifying device position in sysfs tree.

    Also, do not access input_dev->private directly, use helpers.

    Signed-off-by: Dmitry Torokhov
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Dmitry Torokhov
     
  • This patch (as907) prevents us from trying to allocate 0 bytes
    when an interface has no endpoint descriptors.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as905) removes a micro-optimization from the hub port
    initialization code. Previously we had been using a short timeout on
    the first attempt the read the device descriptor; now we will use the
    standard timeout length.

    It's not clear that the short timeout ever provided any benefit. And
    now we know of one case where it actually hurts: The device can't meet
    the short timeout and then it gets terminally confused.

    This fixes Bugzilla #8444.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • I haven't personally run across an oops because of this, but I feel safer
    with this fix in place.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • Cc: Matthias Urlichs
    Signed-off-by: Ben Collins
    Signed-off-by: Greg Kroah-Hartman

    Ben Collins
     
  • If this down_interruptible() does fail due to signal_pending() then the state
    of the driver will get trashed in interesting ways, because userspace cannot
    and will not retry the close().

    Cc: Jiri Slaby
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • Change PORT_WIDTH bit for UMTI_WIDE mode and fix a compile warning
    introduced in last revision.

    Signed-off-by: Li Yang
    Signed-off-by: Greg Kroah-Hartman

    Li Yang
     
  • This patch (as902) fixes a mistake I introduced into usb_bulk_msg().
    usb_fill_int_urb() already does the bit-shifting calculation for
    high-speed Interrupt intervals; it shouldn't be done twice.

    Signed-off-by: Alan Stern

    Alan Stern
     
  • Hello,

    I need to use MaxStream's PKG-U modules which includes a ftdi sio chipset for
    usb2serial communication, here are the patches for handling Maxstream's modules.

    The VID & PID to use with the open-source driver are provided on the CD-ROM
    bundled with the modules.

    From: Neil Superna ARMSTRONG
    Signed-off-by: Greg Kroah-Hartman

    Neil \"Superna\" ARMSTRONG
     
  • This patch (as883) removes an out-of-date WARN_ON from the main HCD
    endpoint-disable routine. The warning is triggered whenever an
    endpoint is disabled while the root hub is suspended. In the past
    that may not have been legal, but it definitely is legal now. Merely
    unbinding a USB driver will do it.

    Furthermore, I've never seen any occurrences of this warning that
    really did signal an actual bug or error condition. At this point it
    has outlived its purpose.

    Signed-off-by: Alan Stern
    Signed-off-by: David Brownell

    Alan Stern
     
  • This patch (as879) ties up some loose ends from an earlier patch.
    These are things I didn't think to include at the time but which
    clearly belonged there.

    If an autosuspend fails because driver activity races with
    the autosuspend call, restart the autosuspend timer.

    When a device is resumed by an external request, it counts
    as device activity and should update the last_busy time so
    that the next autoresume won't occur immediately.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as882) fixes a problem with the EHCI BIOS handoff. On my
    machine, the BIOS configures the controller and the handoff fails,
    leaving the controller configured. During resume-from-disk, this
    confuses ehci-hcd into thinking that the controller has not been
    tampered with.

    The problem is fixed by turning off the Configured Flag whenever a
    BIOS handoff is attempted, whether it succeeds or not.

    Signed-off-by: Alan Stern
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This fixes the issue of drivers claiming multiple interfaces. Operations
    are stopped as soon as an interface is suspend and resumed only as
    all interfaces have been resumed.

    Signed-off-by: Oliver Neukum
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • This just removes some warnings generated by the Docbook tools when
    turning USB (host and peripheral side) kerneldoc into HTML; they're
    all about missing ID attributes.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • Workaround another device firmware bug, wherein CDC descriptors get
    placed in a wrong place never previously observed in the wild.

    Fix a bug where a seeming RNDIS device returns a bogus response during
    device initialization.

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • Partial fix for bogosity in the ftdi-elan and u132-hcd drivers ... these
    have no business including with the internals of other drivers, much less
    doing so in a broken way!!

    A previous patch resolved one build fix, this resolves another...

    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • The Sitecom WL-117 is another "driverless" ZD1211 device where the virtual
    windows driver CD must be ejected before the WLAN device appears.

    zd1211rw takes care of the ejecting, but usb-storage must be told not to claim
    the device.

    From: Matthew Davidson
    Signed-off-by: Daniel Drake
    Signed-off-by: Greg Kroah-Hartman

    Matthew Davidson
     
  • this useless check should be removed.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • the transfer of allocating the descriptor in attach and no longer in open
    was incomplete resulting in a memory leak coverity spotted. This fix
    is against the patch set you posted.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c-s3c2410: Fix build warning
    i2c-tiny-usb: Fix truncated adapter name
    i2c: Legacy i2c drivers shouldn't issue uevents

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/lethal/sh-2.6:
    sh: Fix dreamcast build for IRQ changes.
    sh: Fix clock multiplier on SH7722.
    sh: Wire up kdump crash kernel exec in die().
    sh: sr.bl toggling around idle sleep.
    sh: disable genrtc support.
    fs: Kill sh dependency for binfmt_flat.
    sh: Disable psw support for R7785RP.
    sh: Fix page size alignment in __copy_user_page().
    sh: Fix up various compile warnings for SE boards.
    sh: Wire up signalfd/timerfd/eventfd syscalls.
    sh: revert addition of page fault notifiers
    spelling fixes: arch/sh/
    input: hp680_ts compile fixes.
    sh: landisk: Header cleanups.
    sh: landisk: rtc-rs5c313 support.
    sh: Kill off pmb slab cache destructor.
    sh: Fix up psw build rules for r7780rp.
    sh: Shut up compiler warnings in __do_page_fault().

    Linus Torvalds
     
  • * 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb:
    V4L/DVB (5691): Ov7670: reset clkrc in rgb565 mode
    V4L/DVB (5690): Cafe_ccic: Properly power down the sensor
    V4L/DVB (5680): Tuner-simple.c fix suport for SECAM with FI1216MF
    V4L/DVB (5630): Dvb-core: Handle failures to create devices
    V4L/DVB (5639a): Fix dst usage count
    V4L/DVB (5670): Adding new fields to v4l2_pix_format broke the ABI, reverted that change
    V4L/DVB (5640): Fix: em28xx shouldn't be selecting VIDEO_BUF
    V4L/DVB (5639): Fix Kconfig dependencies for ivtv

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux-2.6:
    [IA64] fix kmalloc(0) in arch/ia64/pci/pci.c
    [IA64] Only unwind non-running tasks.
    [IA64] Improve unwind checking.
    [IA64] Yet another section mismatch warning
    [IA64] Fix bogus messages about system calls not implemented.

    Linus Torvalds
     
  • A bug in the ov7670 sensor causes it to introduce noise unless the CLKRC
    register is rewritten *after* setting the image mode. Naturally,
    resetting CLKRC in this way will cause other modes to fail. So
    carefully poke the register only when indicated.

    Signed-off-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Corbet
     
  • The proper method for powering down the sensor on OLPC systems has
    changed somewhat; in particular, the sensor must be powered down
    completely (rather than simply told to power down) or the associated
    "camera active" LED will stay on.

    Signed-off-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab

    Jonathan Corbet
     
  • Allow to use SECAM-BG with the FI1216MF tuner.

    The selection is done with the secam=B module argument.

    The default behaviour should be the same as before.

    Signed-off-by: Matthieu CASTET
    Signed-off-by: Andrew Morton
    Acked-by: Hartmut Hackmann
    Signed-off-by: Mauro Carvalho Chehab

    matthieu castet
     
  • dvb-core is not started early enough when device drivers that use dvb are
    compiled in so dvb_register_device fails (silently) since dvb_class is
    NULL, this runs dvb_init using subsys_initcall instead of module_init.

    dvb_register_device will now check the return value of class_device_create.

    Signed-off-by: Simon Arlott
    Signed-off-by: Trent Piepho
    Signed-off-by: Mauro Carvalho Chehab

    Simon Arlott
     
  • Signed-off-by: Manu Abraham
    Signed-off-by: Mauro Carvalho Chehab

    Manu Abraham
     
  • Reverted the change to struct v4l2_pix_format. I completely missed that
    this struct was used by existing ioctls so that changing it broke the ABI.
    I will have to think of another way of setting the top/left coordinates
    but for now this change is reverted to preserve compatibility.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • ivtv were wrongly marked as dependent of USB.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • Fix for the following build warning:
    CC drivers/i2c/busses/i2c-s3c2410.o
    drivers/i2c/busses/i2c-s3c2410.c: In function 's3c24xx_i2c_probe':
    drivers/i2c/busses/i2c-s3c2410.c:839: warning: format '%ld' expects type 'long int', but argument 4 has type 'resource_size_t'

    Signed-off-by: Arnaud Patard
    Signed-off-by: Jean Delvare

    Arnaud Patard
     
  • Signed-off-by: Jean Delvare
    Cc: Till Harbaum

    Jean Delvare
     
  • Prevent legacy drivers from issuing uevents for device creation/removal,
    so that userspace can't cause modprobing loops for them. This became a
    problem for some legacy PC drivers. I can't easily see it becoming an
    issue with I2C legacy drivers, but consistency-in-paranoia seems likely
    to be a good thing here. For usable i2c-level driver model uevents, just
    switch to a new-style driver.

    Signed-off-by: David Brownell
    Signed-off-by: Jean Delvare

    David Brownell
     
  • Hiroyuki Kamezawa reported the problem that pci_acpi_scan_root() of
    ia64 might call kmalloc_node() with zero size.

    Currently ia64's pci_acpi_scan_root() assumes that _CRS method of root
    bridge has at least one resource window. But, the root bridges that
    has no resource window must be taken into account.

    Signed-off-by: Kenji Kaneshige
    Signed-off-by: Andrew Morton
    Signed-off-by: Tony Luck

    Kenji Kaneshige