24 May, 2007

7 commits

  • Currently try_to_freeze_tasks() has to wait until all of the vforked processes
    exit and for this reason every user can make it fail. To fix this problem we
    can introduce the additional process flag PF_FREEZER_SKIP to be used by tasks
    that do not want to be counted as freezable by the freezer and want to have
    TIF_FREEZE set nevertheless. Then, this flag can be set by tasks using
    sys_vfork() before they call wait_for_completion(&vfork) and cleared after
    they have woken up. After clearing it, the tasks should call try_to_freeze()
    as soon as possible.

    Signed-off-by: Rafael J. Wysocki
    Cc: Gautham R Shenoy
    Cc: Oleg Nesterov
    Cc: Pavel Machek
    Cc: "Eric W. Biederman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • If the freezing of tasks fails and a task is preempted in refrigerator()
    before calling frozen_process(), then thaw_tasks() may run before this task is
    frozen. In that case the task will freeze and no one will thaw it.

    To fix this race we can call freezing(current) in refrigerator() along with
    frozen_process(current) under the task_lock() which also should be taken in
    the error path of try_to_freeze_tasks() as well as in thaw_process().
    Moreover, if thaw_process() additionally clears TIF_FREEZE for tasks that are
    not frozen, we can be sure that all tasks are thawed and there are no pending
    "freeze" requests after thaw_tasks() has run.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Cc: Gautham R Shenoy
    Cc: Oleg Nesterov
    Cc: "Eric W. Biederman"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • gcc-4.3:

    drivers/ide/pci/serverworks.c: In function 'svwks_tune_chipset':
    drivers/ide/pci/serverworks.c:176: warning: overflow in implicit constant conversion
    drivers/ide/pci/serverworks.c:190: warning: overflow in implicit constant conversion
    drivers/ide/pci/serverworks.c:211: warning: overflow in implicit constant conversion
    drivers/ide/pci/serverworks.c:212: warning: overflow in implicit constant conversion

    Signed-off-by: Andrew Morton
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Andrew Morton
     
  • There are a few entries in ata_device_blacklist[] in libata-core.c
    marked with HORKAGE_NODMA but are missing from drive_blacklist[]
    in ide-dma.c. This patch makes the lists in sync.

    Also remove a duplicated entry for "SanDisk SDP3B-64".

    Signed-off-by: Junio C Hamano
    Cc: Alan Cox
    Cc: Dave Jones
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Junio C Hamano
     
  • Compiling with '-Wswitch-enum' I noticed following:

    CC drivers/ide/ide-proc.o
    drivers/ide/ide-proc.c: In function ‘proc_ide_read_imodel’:
    drivers/ide/ide-proc.c:54: warning: enumeration value ‘ide_etrax100’ not handled in switch
    drivers/ide/ide-proc.c:54: warning: enumeration value ‘ide_acorn’ not handled in switch

    How about the following patch?

    Signed-off-by: Mika Kukkonen
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Mika Kukkonen
     
  • It turns out from customer reports to Red Hat and some PCI dumps that the
    MegaIDE in RAID mode doesn't provide the drive tuning data that the
    serverworks driver expects but sometimes does provide something that
    fools the code.

    For the RAID class case skip the oem setup and don't trust the BIOS data.
    We then tune from scratch and this sorts it out. (This has been confirmed
    on an afflicted IBM blade)

    [libata serverworks.c never trusts the BIOS in the first place so is
    accidentally immune]

    Signed-off-by: Alan Cox
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Alan Cox
     
  • Add the IDE device ID to atiixp_pci_tbl struct in atiixp.c for ATI SB700.

    From: Henry Su
    Signed-off-by: Luugi Marsan
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Henry Su
     

23 May, 2007

33 commits

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [RTNETLINK]: Remove remains of wireless extensions over rtnetlink
    [RTNETLINK]: Allow changing of subsets of netdevice flags in rtnl_setlink
    [AF_RXRPC]: Make call state names available if CONFIG_PROC_FS=n
    [AF_RXRPC]: AF_RXRPC depends on IPv4
    [IPSEC]: Fix warnings with casting int to pointer

    Linus Torvalds
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (29 commits)
    USB: Add support for Olimex arm-usb-ocd JTAG interface serial port
    USB: Add support for Sierra Wireless Aircard 595U
    USB: ldusb bugfix
    USB: ftdi_sio: Add USB Product Id for OpenDCC
    USB: fix ratelimit call semantics
    USB: handle errors in power/level attribute
    USB: make the autosuspend workqueue thread freezable
    USB: Fix USB OHCI Subvendor for Toshiba Portege 4000
    USB: usblp: Use correct DMA address in case of probe error
    USB: Fix debug output of ark3116
    USB: Onetouch - switch to using input_dev->dev.parent
    USB: don't try to kzalloc 0 bytes
    USB: remove short initial timeout for device descriptor fetch
    USB: Deref URB after usbmon is done with it
    USB: Remove duplicate IDs from option card driver
    USB: auerswald: fix file release handler
    USB: fsl_usb2_udc: Fix UMTI_WIDE support and a compile warning
    USB: set the correct Interrupt interval in usb_bulk_msg
    USB: New device PID for ftdi_sio driver
    USB: remove unneeded WARN_ON
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
    Input: ads7846 - SPI_CPHA mode bugfix
    Input: ads7846 - document that it handles tsc2046 too
    Input: input-polldev - add module info
    Input: ucb1x00-ts - remove commented out code
    Input: ucb1400_ts - use sched_setscheduler()
    Input: ALPS - force stream mode
    Input: iforce - minor clean-ups
    Input: iforce - fix force feedback not working
    Input: adbhid - do not access input_dev->private directly
    Input: logips2pp - add type 72 (PS/2 TrackMan Marble)

    Linus Torvalds
     
  • This patch adds support for the serial port on Olimex arm-usb-ocd
    JTAG interface.

    The device appears as two serial ports, but the first one is reserved
    for the JTAG interface. The JTAG interface can be used with OpenOCD
    from userspace. For more information, please see:

    http://openocd.berlios.de/web/
    http://www.olimex.com/dev/arm-usb-ocd.html

    Signed-off-by: Tony Lindgren
    Signed-off-by: Greg Kroah-Hartman

    Tony Lindgren
     
  • This patch adds support for the newly released Aircard 595U EVDO
    modem to the Sierra Wireless driver (sierra.c) in kernel 2.6.21.

    I suspect that my mailer may be mangling patches so let me know and
    I'll try to resend it.

    From: Danny Budik
    Signed-off-by: Greg Kroah-Hartman

    Danny Budik
     
  • This patch fixes a problem reported with consecutive reads in the ldusb
    driver.

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

    Oliver Neukum
     
  • USB product id registration for the OpenDCC (www.opendcc.de)
    model railway central unit. Applies to 2.6.21.1.

    Signed-off-by: Guido Scholz
    Signed-off-by: Greg Kroah-Hartman

    Guido Scholz
     
  • This patch (as910) fixes a ratelimit modification so that the
    original error-handling path will be followed even when the log-rate
    limitation kicks in.

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

    Alan Stern
     
  • 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
     
  • In commit [1] the SPI mode is set to 1, but it should be 0. As stated
    in the commit, ads784x samples the data on the rising edge. SPI mode 1
    samples on the falling edge [2] though.

    The root cause of this is a bug in the omap_uwire code, which treats
    CPHA=1 incorrectly; so these two bugs cancel each other out on one
    of the main regression test platforms for this driver.

    [1] kernel.org GIT 7937e86a70235e1584486654687dc9908a11e00a
    [2] http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

    Signed-off-by: David Brownell
    Signed-off-by: Dmitry Torokhov

    Semih Hazar