03 Mar, 2010

3 commits

  • This patch (as1329) converts the USB stack over to the PM core's
    runtime PM framework. This involves numerous changes throughout
    usbcore, especially to hub.c and driver.c. Perhaps the most notable
    change is that CONFIG_USB_SUSPEND now depends on CONFIG_PM_RUNTIME
    instead of CONFIG_PM.

    Several fields in the usb_device and usb_interface structures are no
    longer needed. Some code which used to depend on CONFIG_USB_PM now
    depends on CONFIG_USB_SUSPEND (requiring some rearrangement of header
    files).

    The only visible change in behavior should be that following a system
    sleep (resume from RAM or resume from hibernation), autosuspended USB
    devices will be resumed just like everything else. They won't remain
    suspended. But if they aren't in use then they will naturally
    autosuspend again in a few seconds.

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

    Alan Stern
     
  • This patch (as1326) adds usb_enable_autosuspend() and
    usb_disable_autosuspend() routines for use by drivers. If a driver
    knows that its device can handle suspends and resumes correctly, it
    can enable autosuspend all by itself. This is equivalent to the user
    writing "auto" to the device's power/level attribute.

    The implementation differs slightly from what it used to be. Now
    autosuspend is disabled simply by doing usb_autoresume_device() (to
    increment the usage counter) and enabled by doing
    usb_autosuspend_device() (to decrement the usage counter).

    The set_level() attribute method is updated to use the new routines,
    and the USB Power-Management documentation is updated.

    The patch adds a usb_enable_autosuspend() call to the hub driver's
    probe routine, allowing the special-case code for hubs in quirks.c to
    be removed.

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

    Alan Stern
     
  • This patch (as1316) adds some error checking to usb_submit_urb().
    It's conditional on CONFIG_USB_DEBUG, so it won't affect normal users.
    The new check makes sure that the actual type of the endpoint
    described by urb->pipe agrees with the type encoded in the pipe value.

    The USB error code documentation is updated to include the code
    returned by the new check, and the usbfs SUBMITURB handler is updated
    to use the correct pipe type when legacy user code tries to submit a
    bulk transfer to an interrupt endpoint.

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

    Alan Stern
     

24 Dec, 2009

1 commit


12 Dec, 2009

2 commits

  • This patch (as1303) revises the USB Power Management infrastructure to
    make it compatible with the new driver-model Runtime PM framework:

    Drivers are no longer allowed to access intf->pm_usage_cnt
    directly; the PM framework manages its own usage counters.

    usb_autopm_set_interface() is eliminated, because it directly
    sets intf->pm_usage_cnt.

    usb_autopm_enable() and usb_autopm_disable() are eliminated,
    because they call usb_autopm_set_interface().

    usb_autopm_get_interface_no_resume() and
    usb_autopm_put_interface_no_suspend() are added. They
    correspond to pm_runtime_get_noresume() and
    pm_runtime_put_noidle() in the PM framework.

    The power/level attribute no longer accepts "suspend", only
    "on" and "auto". The PM framework doesn't allow devices to be
    forced into a suspended mode.

    The hub driver contains the only code that violates the new
    guidelines. It is updated to use the new interface routines instead.

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

    Alan Stern
     
  • This patch (as1302) removes the auto_pm flag from struct usb_device.
    The flag's only purpose was to distinguish between autosuspends and
    external suspends, but that information is now available in the
    pm_message_t argument passed to suspend methods.

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

    Alan Stern
     

23 Sep, 2009

3 commits

  • Neither /sys/usb/devices nor /sys/bus/devices exist. The correct path
    is /sys/bus/usb/devices.

    Signed-off-by: Jean Delvare
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     
  • Hi there.

    On Aug 21 2009, Alan Stern wrote:
    > On Thu, 20 Aug 2009, Rogério Brito wrote:
    > > Again, just reiterating, what I said before, even though I am not sure
    > > if I can reproduce it, I will try to.
    >
    > A usbmon trace showing what happens when you plug in the drive and
    > when you run smartctl would help.

    The documentation for usbmon in the kernel 2.6.31-rc7 kernel doesn't
    match what the kernel exposes in the debug fs tree. This patch fixes it.

    Signed-off-by: Rogério Brito
    Signed-off-by: Greg Kroah-Hartman

    Rogério Brito
     
  • I think this sentence was confusing regarding the possible size
    of the data area.

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

    Pete Zaitcev
     

13 Jun, 2009

2 commits


25 Mar, 2009

1 commit

  • This patch adds an extension to the binary API so it reaches parity with
    existing text API (so-called "1u"). The extension delivers additional data,
    such as ISO descriptors and the interrupt interval.

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

    Pete Zaitcev
     

30 Jan, 2009

1 commit

  • Move DMA-mapping.txt to Documentation/PCI/.

    DMA-mapping.txt was supposed to be moved from Documentation/ to
    Documentation/PCI/. The 00-INDEX files in those two directories
    were updated, along with a few other text files, but the file
    itself somehow escaped being moved, so move it and update more
    text files and source files with its new location.

    Signed-off-by: Randy Dunlap
    Acked-by: Greg Kroah-Hartman
    cc: Jesse Barnes
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

08 Jan, 2009

1 commit

  • This patch (as1160b) adds support routines for asynchronous autosuspend
    and autoresume, with accompanying documentation updates. There
    already are several potential users of this interface, and others are
    likely to arise as autosuspend support becomes more widespread.

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

    Alan Stern
     

02 Jan, 2009

1 commit


18 Dec, 2008

3 commits


19 Nov, 2008

1 commit

  • The UWB radio manager coordinates the use of the radio between the
    PALs that may be using it. PALs request use of the radio with
    uwb_radio_start() and the radio manager will start beaconing if its
    not already doing so. When the last PAL has called uwb_radio_stop()
    beaconing will be stopped.

    In the future, the radio manager will have a more sophisticated channel
    selection algorithm, probably following the Channel Selection Policy
    from the WiMedia Alliance when it is finalized. For now, channel 9
    (BG1, TFC1) is selected.

    The user may override the channel selected by the radio manager and may
    force the radio to stop beaconing.

    The WUSB Host Controller PAL makes use of this and there are two new
    debug PAL commands that can be used for testing.

    Signed-off-by: David Vrabel

    David Vrabel
     

20 Oct, 2008

1 commit


18 Oct, 2008

3 commits


10 Oct, 2008

1 commit


24 Sep, 2008

1 commit


17 Sep, 2008

2 commits


14 Aug, 2008

2 commits

  • this mentions a new deadlock due to advanced power management.

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

    Oliver Neukum
     
  • This patch removes the auerswald USB driver from the linux kernel
    2.6.26.

    This driver was included into the kernel mainly to connect to the ISDN
    framework. This was done in linux 2.4.x. For 2.6.x, due to the fragile
    and moving ISDN support, this connection was never realized, and the
    only use of this driver was for device configuration. In the age of DSL,
    the demand of ISDN support is getting very low.

    Meanwhile, with the advent of libusb, an userspace driver was done for
    the device configuration which works fine for linux and mac. (Thanks to
    the libusb developers!). The userspace driver is downloadable from the
    auerswald web site.

    So this driver is obsolete now and has to be removed. Many thanks to all
    developers which helped me to bring this driver up and working.

    Signed-off-by: Wolfgang Muees
    Signed-off-by: Greg Kroah-Hartman

    Wolfgang Mües
     

27 Jul, 2008

1 commit


22 Jul, 2008

3 commits

  • This patch (as1109b) makes USB-Persist more resilient to errors. With
    the current code, if a normal resume fails, it's an unrecoverable
    error. With the patch, if a normal resume fails (and if the device is
    enabled for USB-Persist) then a reset-resume is tried.

    This fixes the problem reported in Bugzilla #10977.

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

    Alan Stern
     
  • Teach "gadget serial" to use the new abstracted (and bugfixed) TTY glue,
    and remove all the orignal tangled-up code. Update the documentation
    accordingly. This is a net object code shrink and cleanup; it should
    make it a lot easier to see how the TTY glue should accomodate updates
    to the TTY layer, be bugfixed, etc.

    Notable behavior changes include: it can now support getty even when
    there's no USB connection; it fits properly into the mdev/udev world;
    and RX handling is better (throttling works, and low latency).

    Configurations with scripts setting up the /dev/ttygserial device node
    (with "experimental" major number) may want to change that to be a
    symlink pointing to the /dev/ttyGS0 file, as a migration aid; else,
    just switch entirely over to mdev/udev.

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

    David Brownell
     
  • The driver was removed before kernel 2.6.0

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

    Adrian Bunk
     

25 Apr, 2008

5 commits


11 Mar, 2008

1 commit


02 Feb, 2008

1 commit

  • G_PRINTER: Adds a USB printer gadget driver for use in printer firmware.

    This adds a USB printer gadget driver for use in printer firmware.
    The printer gadget channels data between the USB host and a userspace
    program driving the print engine. The user space program reads and
    writes the device file /dev/g_printer to receive or send printer data.
    It can use ioctl calls to the device file to get or set printer status.

    Signed-off-by: Craig W. Nadler
    Signed-off-by: David Brownell
    Signed-off-by: Greg Kroah-Hartman

    Craig W. Nadler