20 Mar, 2007

1 commit


10 Mar, 2007

1 commit


24 Feb, 2007

1 commit


20 Feb, 2007

4 commits

  • Per device data such as brightness belongs to the indivdual device
    and should therefore be separate from the the backlight operation
    function pointers. This patch splits the two types of data and
    allows simplifcation of some code.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • backlight_device->sem has a very specific use as documented in the
    header file. The external users of this are using it for a different
    reason, to serialise access to the update_status() method.

    backlight users were supposed to implement their own internal
    serialisation of update_status() if needed but everyone is doing
    things differently and incorrectly. Therefore add a global mutex to
    take care of serialisation for everyone, once and for all.

    Locking for get_brightness remains optional since most users don't
    need it.

    Also update the lcd class in a similar way.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • Remove uneeded owner field from backlight_properties structure.

    Nothing uses it and it is unlikely that it will ever be used. The
    backlight class uses other means to ensure that nothing references
    unloaded code.

    Based on a patch from Dmitry Torokhov

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • * master.kernel.org:/pub/scm/linux/kernel/git/gregkh/usb-2.6: (39 commits)
    USB: at91-ohci, handle extra at91sam9261 ahb clock
    USB: another id for cp2101 driver
    USB: ueagle-atm.c needs sched.h
    USB: at91_udc, shrink runtime footprint
    usbnet: add missing Kconfig for KC2190 cables
    usbnet: init fault (oops) cleanup, whitespace fixes
    usbnet: recognize SiteCom CN-124
    usb: Remove Airprime device from option.c
    USB: change __init to __devinit for isp116x_probe
    USB: ps3: don't call ps3_system_bus_driver_register on other platforms
    USB: hid-core.c: Removes GTCO CalComp Interwrite IPanel PIDs from blacklist
    USB: kernel-doc fixes
    USB: quirky device for cdc-acm
    USB: cdc-acm: fix incorrect throtteling, make set_control optional
    USB: unconfigure devices which have config 0
    USB: make usb_iso_packet_descriptor.status signed
    USB: fix g_serial small error
    USB: use __u32 rather than u32 in userspace ioctls in usbdevice_fs.h
    USB Storage: US_FL_IGNORE_RESIDUE needed for Aiptek MP3 Player
    USB: Fix misspelled "USBNET_MII" kernel config option.
    ...

    Linus Torvalds
     

17 Feb, 2007

2 commits


15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

13 Feb, 2007

2 commits

  • Many struct file_operations in the kernel can be "const". Marking them const
    moves these to the .rodata section, which avoids false sharing with potential
    dirty data. In addition it'll catch accidental writes at compile time to
    these shared resources.

    Signed-off-by: Arjan van de Ven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arjan van de Ven
     
  • Commit 40b20c257a13c5a526ac540bc5e43d0fdf29792a by Len Brown introduced
    a null pointer dereference in the appledisplay driver. This patch fixes
    it.

    Signed-off-by: Michael Hanselmann
    Cc: Len Brown
    Cc: Greg KH
    Cc: Benjamin Herrenschmidt
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     

10 Feb, 2007

1 commit


08 Feb, 2007

2 commits


06 Jan, 2007

1 commit

  • x86_64:

    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_putc':
    drivers/usb/misc/sisusbvga/sisusb_con.c:405: warning: cast from pointer to integer of different size
    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_putcs':
    drivers/usb/misc/sisusbvga/sisusb_con.c:440: warning: cast from pointer to integer of different size
    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_clear':
    drivers/usb/misc/sisusbvga/sisusb_con.c:494: warning: cast from pointer to integer of different size
    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_bmove':
    drivers/usb/misc/sisusbvga/sisusb_con.c:566: warning: cast from pointer to integer of different size
    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_switch':
    drivers/usb/misc/sisusbvga/sisusb_con.c:614: warning: cast from pointer to integer of different size
    drivers/usb/misc/sisusbvga/sisusb_con.c: In function 'sisusbcon_scroll_area':
    drivers/usb/misc/sisusbvga/sisusb_con.c:941: warning: cast from pointer to integer of different size

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

    Andrew Morton
     

23 Dec, 2006

1 commit

  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (68 commits)
    ACPI: replace kmalloc+memset with kzalloc
    ACPI: Add support for acpi_load_table/acpi_unload_table_id
    fbdev: update after backlight argument change
    ACPI: video: Add dev argument for backlight_device_register
    ACPI: Implement acpi_video_get_next_level()
    ACPI: Kconfig - depend on PM rather than selecting it
    ACPI: fix NULL check in drivers/acpi/osl.c
    ACPI: make drivers/acpi/ec.c:ec_ecdt static
    ACPI: prevent processor module from loading on failures
    ACPI: fix single linked list manipulation
    ACPI: ibm_acpi: allow clean removal
    ACPI: fix git automerge failure
    ACPI: ibm_acpi: respond to workqueue update
    ACPI: dock: add uevent to indicate change in device status
    ACPI: ec: Lindent once again
    ACPI: ec: Change #define to enums there possible.
    ACPI: ec: Style changes.
    ACPI: ec: Acquire Global Lock under EC mutex.
    ACPI: ec: Drop udelay() from poll mode. Loop by reading status field instead.
    ACPI: ec: Rename gpe_bit to gpe
    ...

    Linus Torvalds
     

21 Dec, 2006

4 commits

  • ELAN's U132 is a USB to CardBus OHCI controller adapter,
    designed specifically for CardBus 3G data cards to
    function in machines without a CardBus slot.
    The "ftdi-elan" module is a USB client driver, that detects
    a supported CardBus OHCI controller plugged into the
    U132 adapter and thereafter provides the conduit for
    for access by the "u132-hcd" module.
    The "u132-hcd" module is a (cut-down OHCI) host controller
    that supports a single OHCI function of the CardBus
    card inserted into the U132 adapter.

    The problem with the initial implementation is that when
    the CardBus card inserted into the U132 adapter has multiple
    functions (and a CardBus card can support up to 4 functions),
    it was the first function that was arbitrarily choosen.

    The first batch of 3G cards tested, like the Merlin Qualcomm
    V620, have two functions each supporting a seperate USB OHCI
    host controller, of which it was that first function that is
    wired up to the 3G modem.

    Then along comes the Vodafone Mobile Connect 3G/GPRS data card,
    aka "Option GT 3G Quad" as printed on it's rear or "Option N.V.
    GlobeTrotter Fusion Quad Lite" as read with "lspci -v". And it
    has the meaningful functionality in the second CardBus function.

    That presents a problem because it was the "ftdi-elan" module
    alone that knows how to communicate to the embedded CardBus slot
    and the "u132-hcd" module alone that knows how to access the
    pcmcia configuration and CardBus accessible memory space. And
    of course, the information about attached (internally hardwired)
    devices is contained within USB configuration embedded somewhere
    within the CardBus card.

    If only the "u132-hcd" module probe() interface could return a
    result code that propagated back to the instigating function
    platform_device_register() then the "ftdi-elan" module could
    try an alternative CardBus function. However in spite of
    the recent changes to the drivers/base/ routines that moved
    device_attach() from bus_add_device() to bus_attach_device()
    both of those routines lose the "failed to attach" 0 result
    code and thus the calling routine, namely device_add() is
    incapable of propaging the "failed to attach" condition back
    to platform_device_add() and consequently back to the caller
    of platform_device_register()

    Experiments show that patching bus_attach_device() to return
    ENODEV fails with the kernel locking up very early during
    boot. But, however, if the patch is restricted to calls from
    platform_device_add() then it does seem to work.

    Unfortunately, until the kernel's drivers/base is properly
    modified to propagate -ENODEV back to the caller of
    platform_device_register(), it is necessary to "fix" the
    "ftdi-elan" module by importing knowledge from the
    "u132-hcd" module. This is the reason for the duplicated
    functionality introduced in this patch.

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

    Tony Olech
     
  • Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Burman Yan
     
  • in disconnect you set the interface's private data to NULL. In your IO
    methods you unconditionally follow the pointer into never never land.

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

    Oliver Neukum
     
  • The PhidgetServo causes an Oops when any of its sysfs attributes are read
    or written too, making the driver useless.

    Signed-off-by: Sean Young
    Signed-off-by: Greg Kroah-Hartman

    Sean Young
     

20 Dec, 2006

2 commits

  • Len Brown
     
  • This patch set adds generic abstract layer support for acpi video driver to
    have generic user interface to control backlight and output switch control by
    leveraging the existing backlight sysfs class driver, and by adding a new
    video output sysfs class driver.

    This patch:

    Add dev argument for backlight_device_register to link the class device to
    real device object. The platform specific driver should find a way to get the
    real device object for their video device.

    [akpm@osdl.org: build fix]
    [akpm@osdl.org: fix msi-laptop.c]
    Signed-off-by: Luming Yu
    Cc: "Antonino A. Daplas"
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Len Brown

    Yu Luming
     

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

1 commit


08 Dec, 2006

2 commits


06 Dec, 2006

1 commit


05 Dec, 2006

1 commit


02 Dec, 2006

10 commits