14 Dec, 2006

2 commits

  • Run this:

    #!/bin/sh
    for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
    echo "De-casting $f..."
    perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
    done

    And then go through and reinstate those cases where code is casting pointers
    to non-pointers.

    And then drop a few hunks which conflicted with outstanding work.

    Cc: Russell King , Ian Molton
    Cc: Mikael Starvik
    Cc: Yoshinori Sato
    Cc: Roman Zippel
    Cc: Geert Uytterhoeven
    Cc: Ralf Baechle
    Cc: Paul Mackerras
    Cc: Kyle McMartin
    Cc: Benjamin Herrenschmidt
    Cc: Martin Schwidefsky
    Cc: "David S. Miller"
    Cc: Jeff Dike
    Cc: Greg KH
    Cc: Jens Axboe
    Cc: Paul Fulghum
    Cc: Alan Cox
    Cc: Karsten Keil
    Cc: Mauro Carvalho Chehab
    Cc: Jeff Garzik
    Cc: James Bottomley
    Cc: Ian Kent
    Cc: Steven French
    Cc: David Woodhouse
    Cc: Neil Brown
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     
  • All kcalloc() calls of the form "kcalloc(1,...)" are converted to the
    equivalent kzalloc() calls, and a few kcalloc() calls with the incorrect
    ordering of the first two arguments are fixed.

    Signed-off-by: Robert P. J. Day
    Cc: Jeff Garzik
    Cc: Alan Cox
    Cc: Dominik Brodowski
    Cc: Adam Belay
    Cc: James Bottomley
    Cc: Greg KH
    Cc: Mark Fasheh
    Cc: Trond Myklebust
    Cc: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     

09 Dec, 2006

10 commits

  • This modifies Makefiles and Kconfigs to properly reflect the creation of
    generic HID layer.

    It also removes the dependency of BROKEN, which was introduced by the
    first patch in series (see the comment). Also updates credits.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • pb_fnmode parameter has to be passed to usbhid, both for compatibility reasons
    and also because it logically belongs there.

    Also removes empty hid-input.c file in drivers/usb/input.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • hid_input_report() was needlessly USB-specific in USB HID. This patch
    makes the function independent of HID implementation and fixes all
    the current users. Bluetooth patches comply with this prototype.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • - hiddev is USB-only (agreed with Marcel Holtmann that Bluetooth currently
    doesn't need it, and future planned interface (rawhid) will be more flexible
    and usable)
    - both HID and USB-hid can be now compiled as modules (wasn't possible before
    hiddev was fully separated from generic HID layer)

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • - 'dev' in struct hid_device changed from struct usb_device to
    struct device and fixed all the users
    - renamed functions which are part of USB HID API from 'hid_*' to
    'usbhid_*'
    - force feedback initialization moved from common part into USB-specific
    driver
    - added usbhid.h header for USB HID API users
    - removed USB-specific fields from struct hid_device and moved them
    to new usbhid_device, which is pointed to by hid_device->driver_data
    - fixed all USB users to use this new structure

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • - fixed generic API (added neccessary EXPORT_SYMBOL, fixed hid.h to provide correct
    prototypes)
    - extended hid_device with open/close/event function pointers to driver-specific
    functions
    - added driver specific driver_data to hid_device

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • The "big main" split of USB HID code into generic HID code and
    USB-transport specific HID handling.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • This patch is a part of generic HID layer introduction. USB HID is
    disabled, so that the code split and changes could be introduced in a
    way that is reviewable (i.e. separate patches), but not to break git
    bisect by uncompilable kernel throughout different stages of the code
    splitup and changes. The last patch of this series enables HID again.

    Signed-off-by: Jiri Kosina
    Signed-off-by: Marcel Holtmann
    Cc: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Jiri Kosina
     
  • This is the grungy swap all the occurrences in the right places patch that
    goes with the updates. At this point we have the same functionality as
    before (except that sgttyb() returns speeds not zero) and are ready to
    begin turning new stuff on providing nobody reports lots of bugs

    If you are a tty driver author converting an out of tree driver the only
    impact should be termios->ktermios name changes for the speed/property
    setting functions from your upper layers.

    If you are implementing your own TCGETS function before then your driver
    was broken already and its about to get a whole lot more painful for you so
    please fix it 8)

    Also fill in c_ispeed/ospeed on init for most devices, although the current
    code will do this for you anyway but I'd like eventually to lose that extra
    paranoia

    [akpm@osdl.org: bluetooth fix]
    [mp3@de.ibm.com: sclp fix]
    [mp3@de.ibm.com: warning fix for tty3270]
    [hugh@veritas.com: fix tty_ioctl powerpc build]
    [jdike@addtoit.com: uml: fix ->set_termios declaration]
    Signed-off-by: Alan Cox
    Signed-off-by: Martin Peschke
    Acked-by: Peter Oberparleiter
    Cc: Cornelia Huck
    Signed-off-by: Hugh Dickins
    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Signed-off-by: Josef Sipek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Josef Sipek
     

08 Dec, 2006

8 commits

  • Conflicts:

    drivers/usb/input/hid.h

    Dmitry Torokhov
     
  • * 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (76 commits)
    [ARM] 4002/1: S3C24XX: leave parent IRQs unmasked
    [ARM] 4001/1: S3C24XX: shorten reboot time
    [ARM] 3983/2: remove unused argument to __bug()
    [ARM] 4000/1: Osiris: add third serial port in
    [ARM] 3999/1: RX3715: suspend to RAM support
    [ARM] 3998/1: VR1000: LED platform devices
    [ARM] 3995/1: iop13xx: add iop13xx support
    [ARM] 3968/1: iop13xx: add iop13xx_defconfig
    [ARM] Update mach-types
    [ARM] Allow gcc to optimise arm_add_memory a little more
    [ARM] 3991/1: i.MX/MX1 high resolution time source
    [ARM] 3990/1: i.MX/MX1 more precise PLL decode
    [ARM] 3986/1: H1940: suspend to RAM support
    [ARM] 3985/1: ixp4xx clocksource cleanup
    [ARM] 3984/1: ixp4xx/nslu2: Fix disk LED numbering (take 2)
    [ARM] 3994/1: ixp23xx: fix handling of pci master aborts
    [ARM] 3981/1: sched_clock for PXA2xx
    [ARM] 3980/1: extend the ARM Versatile sched_clock implementation from 32 to 63 bit
    [ARM] 3979/1: extend the SA11x0 sched_clock implementation from 32 to 63 bit period
    [ARM] 3978/1: macro to provide a 63-bit value from a 32-bit hardware counter
    ...

    Linus Torvalds
     
  • Move process freezing functions from include/linux/sched.h to freezer.h, so
    that modifications to the freezer or the kernel configuration don't require
    recompiling just about everything.

    [akpm@osdl.org: fix ueagle driver]
    Signed-off-by: Nigel Cunningham
    Cc: "Rafael J. Wysocki"
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Nigel Cunningham
     
  • Replace all uses of kmem_cache_t with struct kmem_cache.

    The patch was generated using the following script:

    #!/bin/sh
    #
    # Replace one string by another in all the kernel sources.
    #

    set -e

    for file in `find * -name "*.c" -o -name "*.h"|xargs grep -l $1`; do
    quilt add $file
    sed -e "1,\$s/$1/$2/g" $file >/tmp/$$
    mv /tmp/$$ $file
    quilt refresh
    done

    The script was run like this

    sh replace kmem_cache_t "struct kmem_cache"

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • SLAB_DMA is an alias of GFP_DMA. This is the last one so we
    remove the leftover comment too.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • SLAB_KERNEL is an alias of GFP_KERNEL.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • SLAB_ATOMIC is an alias of GFP_ATOMIC

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • SLAB_NOIO is an alias of GFP_NOIO with a single instance of use.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     

06 Dec, 2006

2 commits


05 Dec, 2006

2 commits


02 Dec, 2006

16 commits

  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (103 commits)
    usbcore: remove unused argument in autosuspend
    USB: keep count of unsuspended children
    USB hub: simplify remote-wakeup handling
    USB: struct usb_device: change flag to bitflag
    OHCI: make autostop conditional on CONFIG_PM
    USB: Add autosuspend support to the hub driver
    EHCI: Fix root-hub and port suspend/resume problems
    USB: create a new thread for every USB device found during the probe sequence
    USB: add driver for the USB debug devices
    USB: added dynamic major number for USB endpoints
    USB: pegasus error path not resetting task's state
    USB: endianness fix for asix.c
    USB: build the appledisplay driver
    USB serial: replace kmalloc+memset with kzalloc
    USB: hid-core: canonical defines for Apple USB device IDs
    USB: idmouse cleanup
    USB: make drivers/usb/core/driver.c:usb_device_match() static
    USB: lh7a40x_udc remove double declaration
    USB: pxa2xx_udc recognizes ixp425 rev b0 chip
    usbtouchscreen: add support for DMC TSC-10/25 devices
    ...

    Linus Torvalds
     
  • Thanks to several earlier patches, usb_autosuspend_device() and
    usb_autoresume_device() are never called with a second argument other
    than 1. This patch (as819) removes the now-redundant argument.

    It also consolidates some common code between those two routines,
    putting it into a new subroutine called usb_autopm_do_device(). And
    it includes a sizable kerneldoc update for the affected functions.

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

    Alan Stern
     
  • This patch (as818b) simplifies autosuspend processing by keeping track
    of the number of unsuspended children of each USB hub. This will
    permit us to avoid a good deal of unnecessary work all the time; we
    will no longer have to create a bunch of workqueue entries to carry
    out autosuspend requests, only to have them fail because one of the
    hub's children isn't suspended.

    The basic idea is simple. There already is a usage counter in the
    usb_device structure for preventing autosuspends. The patch just
    increments that counter for every unsuspended child. There's only one
    tricky part: When a device disconnects we need to remember whether it
    was suspended at the time (leave the counter alone) or not (decrement
    the counter).

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

    Alan Stern
     
  • This patch (as817) simplifies the remote-wakeup processing in the hub
    driver. Now instead of using a specialized code path, it relies on
    the standard USB resume routines. The hub_port_resume() function does
    an initial get_port_status() to see whether the port has already
    resumed itself (as it does when a remote-wakeup request is sent).
    This will slow down handling of other resume events slightly, but not
    enough to matter.

    The patch also changes the hub_port_status() routine, making it return
    an error if a short reply is received.

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

    Alan Stern
     
  • This patch (as816) changes an existing flag in the usb_device
    structure to a bitflag, preparing the way for more bitflags to come
    in the future.

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

    Alan Stern
     
  • Unlike UHCI, OHCI does not exert any DMA load on the system when no
    devices are connected. Consequently there is no advantage to doing
    an autostop other than the power savings, so we shouldn't compile the
    necessary code unless CONFIG_PM is enabled.

    This patch (as820) makes the root-hub suspend and resume routines
    conditional on CONFIG_PM. It also prevents autostop from activating
    if the device_may_wakeup flag isn't set; some people use this flag to
    alert the driver about Resume-Detect bugs in the hardware.

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

    Alan Stern
     
  • This patch (as742b) adds autosuspend/autoresume support to the USB hub
    driver. The largest aspect of the change is that we no longer need a
    special flag for root hubs that want to be resumed. Now every hub is
    autoresumed whenever khubd needs to access it.

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

    Alan Stern
     
  • This patch (as738b) fixes numerous problems in the controller/root-hub
    suspend/resume/remote-wakeup support in ehci-hcd:

    The bus_resume() routine should wake up only the ports that
    were suspended by bus_suspend(). Ports that were already
    suspended should remain that way.

    The interrupt mask is used to detect loss of power in the
    bus_resume() routine (if the mask is 0 then power was lost).
    However bus_suspend() always sets the mask to 0. Instead the
    mask should retain its normal value, with port-change-detect
    interrupts disabled if remote wakeup is turned off.

    The interrupt mask should be reset to its correct value at the
    end of bus_resume() regardless of whether power was lost.

    bus_resume() reinitializes the operational registers if power
    was lost. However those registers are not in the aux power
    well, hence they can lose their values whenever the controller
    is put into D3. They should always be reinitialized.

    When a port-change interrupt occurs and the root hub is
    suspended, the interrupt handler should request a root-hub
    resume instead of starting up the controller all by itself.

    There's no need for the interrupt handler to request a
    root-hub resume every time a suspended port sends a
    remote-wakeup request.

    The pci_resume() method doesn't need to check for connected
    ports when deciding whether or not to reset the controller.
    It can make that decision based on whether Vaux power was
    maintained.

    Even when the controller does not need to be reset,
    pci_resume() must undo the effect of pci_suspend() by
    re-enabling the interrupt mask.

    If power was lost, pci_resume() must not call ehci_run().
    At this point the root hub is still supposed to be suspended,
    not running. It's enough to rewrite the command register and
    set the configured_flag.

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

    Alan Stern
     
  • Might speed up some systems. If nothing else, a bad driver should not
    take the whole USB subsystem down with it.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • It's a simple usb-serial driver that just creates a tty device to read
    and write from.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This patch is an update for Greg K-H's proposed usbfs2:
    http://sourceforge.net/mailarchive/message.php?msg_id=19295229

    It creates a dynamic major for USB endpoints and fixes
    the endpoint minor calculation.

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

    Sarah Bailey
     
  • there is an error path in the pegasus driver which can leave
    the task in TASK_UNINTERRUPTIBLE. Depending on when it
    schedules next, this can be bad.

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

    Oliver Neukum
     
  • the latest update for asix.c reverted some endianness fixes. This
    reinstates them.

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

    Oliver Neukum
     
  • We do already have both the code and a config option, so why not build
    this driver? ;-)

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

    Adrian Bunk
     
  • Replace kmalloc+memset with kzalloc

    Signed-off-by: Yan Burman
    Signed-off-by: Greg Kroah-Hartman

    Burman Yan
     
  • Use canonical defines for the Apple USB device IDs.
    Also add the Geyser IV devices missing in my previous patch.

    Signed-off-by: Julien BLACHE
    Acked-by: Dmitry Torokhov
    Signed-off-by: Greg Kroah-Hartman

    Julien BLACHE