16 Oct, 2007

2 commits

  • Fix USB docbook warnings.

    Warning(linux-2.6.23-git8//include/linux/usb/gadget.h:487): No description found for parameter 'g'
    Warning(linux-2.6.23-git8//include/linux/usb/gadget.h:506): No description found for parameter 'g'

    Warning(linux-2.6.23-git8//drivers/usb/core/hub.c:1416): No description found for parameter 'usb_dev'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (95 commits)
    [ARM] 4578/1: CM-x270: PCMCIA support
    [ARM] 4577/1: ITE 8152 PCI bridge support
    [ARM] 4576/1: CM-X270 machine support
    [ARM] pxa: Avoid pxa_gpio_mode() in gpio_direction_{in,out}put()
    [ARM] pxa: move pxa_set_mode() from pxa2xx_mainstone.c to mainstone.c
    [ARM] pxa: move pxa_set_mode() from pxa2xx_lubbock.c to lubbock.c
    [ARM] pxa: Make cpu_is_pxaXXX dependent on configuration symbols
    [ARM] pxa: PXA3xx base support
    [NET] smc91x: fix PXA DMA support code
    [SERIAL] Fix console initialisation ordering
    [ARM] pxa: tidy up arch/arm/mach-pxa/Makefile
    [ARM] Update arch/arm/Kconfig for drivers/Kconfig changes
    [ARM] 4600/1: fix kernel build failure with build-id-supporting binutils
    [ARM] 4599/1: Preserve ATAG list for use with kexec (2.6.23)
    [ARM] Rename consistent_sync() as dma_cache_maint()
    [ARM] 4572/1: ep93xx: add cirrus logic edb9307 support
    [ARM] 4596/1: S3C2412: Correct IRQs for SDI+CF and add decoding support
    [ARM] 4595/1: ns9xxx: define registers as void __iomem * instead of volatile u32
    [ARM] 4594/1: ns9xxx: use the new gpio functions
    [ARM] 4593/1: ns9xxx: implement generic clockevents
    ...

    Linus Torvalds
     

15 Oct, 2007

2 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (207 commits)
    [SCSI] gdth: fix CONFIG_ISA build failure
    [SCSI] esp_scsi: remove __dev{init,exit}
    [SCSI] gdth: !use_sg cleanup and use of scsi accessors
    [SCSI] gdth: Move members from SCp to gdth_cmndinfo, stage 2
    [SCSI] gdth: Setup proper per-command private data
    [SCSI] gdth: Remove gdth_ctr_tab[]
    [SCSI] gdth: switch to modern scsi host registration
    [SCSI] gdth: gdth_interrupt() gdth_get_status() & gdth_wait() fixes
    [SCSI] gdth: clean up host private data
    [SCSI] gdth: Remove virt hosts
    [SCSI] gdth: Reorder scsi_host_template intitializers
    [SCSI] gdth: kill gdth_{read,write}[bwl] wrappers
    [SCSI] gdth: Remove 2.4.x support, in-kernel changelog
    [SCSI] gdth: split out pci probing
    [SCSI] gdth: split out eisa probing
    [SCSI] gdth: split out isa probing
    gdth: Make one abuse of scsi_cmnd less obvious
    [SCSI] NCR5380: Use scsi_eh API for REQUEST_SENSE invocation
    [SCSI] usb storage: use scsi_eh API in REQUEST_SENSE execution
    [SCSI] scsi_error: Refactoring scsi_error to facilitate in synchronous REQUEST_SENSE
    ...

    Linus Torvalds
     
  • ... should be unsigned int

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

14 Oct, 2007

1 commit


13 Oct, 2007

35 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6: (75 commits)
    PM: merge device power-management source files
    sysfs: add copyrights
    kobject: update the copyrights
    kset: add some kerneldoc to help describe what these strange things are
    Driver core: rename ktype_edd and ktype_efivar
    Driver core: rename ktype_driver
    Driver core: rename ktype_device
    Driver core: rename ktype_class
    driver core: remove subsystem_init()
    sysfs: move sysfs file poll implementation to sysfs_open_dirent
    sysfs: implement sysfs_open_dirent
    sysfs: move sysfs_dirent->s_children into sysfs_dirent->s_dir
    sysfs: make sysfs_root a regular directory dirent
    sysfs: open code sysfs_attach_dentry()
    sysfs: make s_elem an anonymous union
    sysfs: make bin attr open get active reference of parent too
    sysfs: kill unnecessary NULL pointer check in sysfs_release()
    sysfs: kill unnecessary sysfs_get() in open paths
    sysfs: reposition sysfs_dirent->s_mode.
    sysfs: kill sysfs_update_file()
    ...

    Linus Torvalds
     
  • This patch (as1002) fixes a small race which can occur when a driver
    expects usbcore to reschedule an autosuspend request. If the request
    arrives too late, it won't be rescheduled. The patch adds an extra
    argument to autosuspend_check(), indicating that a reschedule is
    needed no matter how much time has elapsed.

    It also tries to avoid letting asynchronous changes to the value of
    jiffies cause a delay to become negative, by caching a local copy of
    the current time.

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

    Alan Stern
     
  • Keep track of the device status (as returned by the GET_STATUS
    request) and allow it to be manipulated by set_selfpowered() as
    well as SET_FEATURE/CLEAR_FEATURE (for remote wakeup)

    Implement the wakeup() op, which refuses to do anything if the
    DEVICE_REMOTE_WAKEUP feature wasn't set by the host. Now this
    driver passes USBCV (at least, with gadget zero).

    Fix one more locking bug; lockdep is every developer's friend.

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

    Haavard Skinnemoen
     
  • Not surprisingly the Nikon D40X DSC needs the same quirks as the D40,
    but it has a separate ID.
    See http://bugs.gentoo.org/show_bug.cgi?id=191431

    From: Ortwin Glück
    Signed-off-by: Greg Kroah-Hartman

    Ortwin Glück
     
  • This patch (as997) fixes a bug in the USB serial core. The core needs
    to pay attention to drivers' requirements regarding the number and
    type of endpoints a device has.

    At the same time, the patch changes the NUM_DONT_CARE constant (which
    is stored in a single-byte field) from -1 to a safer, unsigned value.
    It also improves the kerneldoc for several fields in the
    usb_serial_driver structure.

    Finally, the patch replaces a list_for_each() with list_for_each_entry().

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

    Alan Stern
     
  • System suspends and hibernation are supposed to be as transparent as
    possible. By this reasoning, if a USB device is already autosuspended
    before the system sleep begins then it should remain autosuspended
    after the system wakes up.

    This patch (as1001) adds a skip_sys_resume flag to the usb_device
    structure and uses it to avoid waking up devices which were suspended
    when a system sleep began.

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

    Alan Stern
     
  • This patch (as999) fixes a problem that sometimes shows up when host
    controller driver modules are loaded in the wrong order. If ehci-hcd
    happens to initialize an EHCI controller while the companion OHCI or
    UHCI controller is in the middle of a port reset, the reset can fail
    and the companion may get very confused. The patch adds an
    rw-semaphore and uses it to keep EHCI initialization and port resets
    mutually exclusive.

    Signed-off-by: Alan Stern
    Acked-by: David Brownell
    Cc: David Miller
    Cc: Dely L Sy
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Attached is a very small patch (several comment lines) and a one-line
    coded change) that allows for USB storage devices that are larger than
    2TB.

    At the company where I work we need such support, and one of my
    co-workers, Jane Liu, pointed out that SCSI low-layer drivers need to
    specify what size CDBs they accept. After looking through the code it
    became obvious that the current USB Storage code accepted the default of
    12-byte CDBs, so I changed it to accept 16-byte CDBs. This allows our
    device to work.

    Signed-off-by: Richard Sharpe
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Richard Sharpe
     
  • This patch supports for SHARP WS011SH[0] to ipaq.c

    [0]: http://www.willcom-inc.com/ja/lineup/ws/011sh/index.html
    (Sorry , Japanese only.)

    Signed-off-by: Nobuhiro Iwamatsu
    Signed-off-by: Greg Kroah-Hartman

    Nobuhiro Iwamatsu
     
  • This is a driver for the Atmel USBA UDC which can be found integrated
    on AT32AP700x AVR32 processors. For hardware documentation, please see
    the AT32AP7000 data sheet:

    http://www.atmel.com/dyn/resources/prod_documents/doc32003.pdf

    This is a dual speed controller (connects at high or full speed).
    The driver supports up to 7 control, bulk, interrupt and isochronous
    endpoints with some constraints. Bulk, interrupt and isochronous
    transfers are driven by DMA.

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

    Haavard Skinnemoen
     
  • This adds SSB bus glue for the USB OHCI HCD.

    Signed-off-by: Michael Buesch
    Signed-off-by: John W. Linville
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Michael Buesch
     
  • Cleanup: references to two PM routines (and HCD entry points)
    that no longer exist are swapped with their replacements.

    Evidently au1xxx and ppc-soc EHCI support doesn't get compiled
    with power management very much, or these build bugs would have
    been patched long ago.

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

    David Brownell
     
  • Add OHCI big endian frame_no quirk. The frame_no value stored in the
    HCCA is a 16 bit field at a specific offset, but since not all CPUs can
    do 16-bit memory accesses it's used as a 32 bit field. And that's why
    big-endian OHCI must shift 16 bits ... unless the spec is not followed.

    Currently there's one MPC52xx platform that doesn't need the shift. This
    patch adds a new "big endian frame_no" quirk to control that at runtime.

    Signed-off-by: Valentine Barshak
    Acked-by: Dale Farnsworth
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Valentine Barshak
     
  • Funsoft has a bogus ioctl handler doing bogus termios handling in a bogus
    manner. Fortunately we can simply delete all the bogus bits and get the
    right default behaviour !

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

    Alan Cox
     
  • Visor has a huge complex routine which displays termios bits for debug
    but doesn't do anything. Get the correct behaviour by removing it all

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

    Alan Cox
     
  • This patch (as996) adds an unusual_devs entry for the Nikon DSC D2Xs
    camera.

    Signed-off-by: Alan Stern
    Cc: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Move to , reducing
    some of the clutter in the main include directory.

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

    David Brownell
     
  • powertop currently tracks interrupts generated by uhci, ehci, and ohci,
    but it has no way of telling which USB device to blame USB bus activity on.
    This patch exports the number of URBs that are submitted for a given device.
    Cat the file 'urbnum' in /sys/bus/usb/devices/.../

    Signed-off-by: Sarah Sharp
    Signed-off-by: Greg Kroah-Hartman

    Sarah Sharp
     
  • After Serial gadget is being unloaded, neither serial itself, nor other
    gadget stuff can be loaded subsequently.

    Signed-off-by: Vitaly Bordug
    Signed-off-by: Greg Kroah-Hartman

    Vitaly Bordug
     
  • Kill two unused variables in drivers/usb/misc/sisusbvga/sisusb.c.

    Signed-off-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    WANG Cong
     
  • Fix a longstanding race in the Ethernet gadget driver, which can cause an
    oops on device disconnect. The fix is just to make the TX path check
    whether its freelist is empty. That check is otherwise not necessary,
    since the queue is always stopped when that list empties (and restarted
    when request completion puts an entry back on that freelist).

    The race window starts when the network code decides to transmit a packet,
    and ends when hard_start_xmit() grabs the freelist lock. When disconnect()
    is called inside that window, it shuts down the TX queue and breaks the
    otherwise-solid assumption that packets are never sent through a TX queue
    that's stopped.

    Signed-off-by: Benedikt Spranger
    Signed-off-by: Thomas Gleixner
    Signed-off-by: David Brownell
    Signed-off-by: Andrew Morton
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Benedikt Spranger
     
  • drivers/usb/misc/sisusbvga/sisusb.c: In function 'sisusb_open':
    drivers/usb/misc/sisusbvga/sisusb.c:2444: warning: 'sisusb' is used uninitialized in this function

    I can tell that'll oops just by looking at it.

    How come this code assume a 7,000 column xterm? :(

    Cc: Felipe Balbi
    Cc: Thomas
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • Fixed the problem that accessed register of this controller after
    having called iounmap().

    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Yoshihiro Shimoda
     
  • Fixed the problem that does not work in the big endian machine.

    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Yoshihiro Shimoda
     
  • Fixed the problem that does not work in the case of bRequest = 0x05 in
    Class or Vendor Request.

    Signed-off-by: Yoshihiro Shimoda
    Signed-off-by: Greg Kroah-Hartman

    Yoshihiro Shimoda
     
  • This patch makes four needlessly global functions static.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Greg Kroah-Hartman

    Adrian Bunk
     
  • This patch implements a USB serial port driver for the Winchiphead
    CH341 USB-RS232 Converter. This chip also implements an IEEE 1284
    parallel port, I2C and SPI, but that is not supported by the driver.

    Signed-off-by: Frank A Kingswood
    Signed-off-by: Greg Kroah-Hartman

    Frank A Kingswood
     
  • When an error occurs, existing logging uses dbg() so the cause of a
    problem is hard to determine. Error conditions shouldn't only be
    properly reported with debugging enabled.

    A side effect of this change is that when an uninitialised device is
    started, a log message similar to the following is sent:
    cxacru 5-2:1.0: receive of cm 0x90 failed (-104)
    This is normal - the device did not respond so firmware will be loaded.

    Signed-off-by: Simon Arlott
    Acked-by: Duncan Sands
    Signed-off-by: Greg Kroah-Hartman

    Simon Arlott
     
  • This patch adds an additional device ID to the cp2101 USB serial
    driver. This device is a Gemalto Prox-PU or CU contactless card reader
    (ISO14443-A/B and Mifare). The reader is a standard Gemalto serial
    proximity reader using the Gemalto Block Protocol (see reader's
    documentation) bundled with a built-in CP2102 for serial/USB
    conversion.

    Signed-off-by: Edouard Lafargue (edouard@lafargue.name)
    Signed-off-by: Greg Kroah-Hartman

    Edouard Lafargue
     
  • Upgrade the unusual_devs.h file to support the Nikon D200

    Signed-off-by: Mike Pagano
    Signed-off-by: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Phil Dibowitz
     
  • This patch (as995) cleans up the remains of the former NO_AUTOSUSPEND
    quirk. Since autosuspend is disabled by default, we will let
    userspace worry about which devices can safely be suspended. Thus the
    lengthy series of quirk entries is no longer needed, and neither is
    the quirk ID. I suppose someone might eventually run across a hub
    that can't be suspended; let's ignore the possibility for now.

    The patch also cleans up the hasty way in which autosuspend gets
    disabled. Setting udev->autosuspend_delay to -1 wasn't quite right,
    because the value is always supposed to be a multiple of HZ. It's
    better to leave the delay value alone and set autosuspend_disabled,
    which is what the quirk routine used to do.

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

    Alan Stern
     
  • This patch (as992) fixes a recently-added bug. During a FREEZE or
    PRETHAW suspend notification, non-root devices don't actually get
    suspended. So we shouldn't tell their parent hubs that they did.

    (This code path used to be skipped over, until the FREEZE/PRETHAW test
    got moved out of usb_suspend_both() into generic_suspend().)

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

    Alan Stern
     
  • This patch (as991) updates the unusual_devs entry for the Nokia 6131
    phone. As reported by Juan Ignacio Cherrutti, there's new firmware
    available but it still has the same old transfer-size limit.

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

    Alan Stern
     
  • This patch (jx001) fixes a variable assignment mistake in hub driver.
    limited_power should be set to 0 if the hub is self-powered,and 1 if
    the hub is bus-powered.

    However, the effect of the code was exactly opposite to the spec's
    statement for the Local Power Source field. The spec says, this field
    is 1 meaning Local power supply lost while this field is 0 indicating
    Local power supply good.(This statement is very confusing.)

    So this patch switchs the 0 and 1.

    Signed-off-by: Jason Xiao
    Acked-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    jidong xiao
     
  • the error code paths can be enter with buffers to freed buffers.
    Serial core would do a kfree() on memory already freed.

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

    Oliver Neukum