07 Apr, 2009

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (74 commits)
    [SCSI] sg: fix q->queue_lock on scsi_error_handler path
    [SCSI] replace __inline with inline
    [SCSI] a2091: make 2 functions static
    [SCSI] a3000: make 2 functions static
    [SCSI] ses: #if 0 the unused ses_match_host()
    [SCSI] use kmem_cache_zalloc instead of kmem_cache_alloc/memset
    [SCSI] sg: fix iovec bugs introduced by the block layer conversion
    [SCSI] qlogicpti: use request_firmware
    [SCSI] advansys: use request_firmware
    [SCSI] qla1280: use request_firmware
    [SCSI] libiscsi: fix iscsi pool error path
    [SCSI] cxgb3i: call ddp release function directly
    [SCSI] cxgb3i: merge cxgb3i_ddp into cxgb3i module
    [SCSI] cxgb3i: close all tcp connections upon chip reset
    [SCSI] cxgb3i: re-read ddp settings information after chip reset
    [SCSI] cxgb3i: re-initialize ddp settings after chip reset
    [SCSI] cxgb3i: subscribe to error notification from cxgb3 driver
    [SCSI] aacraid driver update
    [SCSI] mptsas: remove unneeded check
    [SCSI] config: Make need for SCSI_CDROM clearer
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
    backlight: Adds HP Jornada 700 series backlight driver
    backlight: Add HP Jornada 700 series LCD driver
    backlight: fix pwm_bl.c when multiple PWM backlights exist
    backlight: mbp_nvidia_bl - Add a debug switch
    backlight: Add support for MacBook 5, MacBook Air 2, and MacBook Pro 5

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
    leds: introduce lp5521 led driver
    leds: just ignore invalid GPIOs in leds-gpio
    leds: Fix &&/|| confusion in leds-pca9532.c
    leds: move h1940-leds's probe function to .devinit.text
    leds: remove an unnecessary "goto" on drivers/leds/leds-s3c24.c
    leds: add BD2802GU LED driver
    leds: remove experimental flag from leds-clevo-mail
    leds: Prevent multiple LED triggers with the same name
    leds: Add gpio-led trigger
    leds: Add rb532 LED driver for the User LED
    leds: Add suspend/resume state flags to leds-gpio
    leds: simple driver for pwm driven LEDs
    leds: Fix leds-gpio driver multiple module_init/exit usage
    leds: Add dac124s085 driver
    leds: allow led-drivers to use a variable range of brightness values
    leds: Add openfirmware platform device support

    Linus Torvalds
     

06 Apr, 2009

37 commits

  • Signed-off-by: Kristoffer Ericson
    Signed-off-by: Richard Purdie

    Kristoffer Ericson
     
  • Signed-off-by: Kristoffer Ericson
    Signed-off-by: Richard Purdie

    Kristoffer Ericson
     
  • When multiple PWMs are used as backlights, the current code uses
    pdev->name as the backlight name when registering, which will be
    conflicting, use dev_name() instead.

    Signed-off-by: Peter Edwards
    Signed-off-by: Eric Miao
    Signed-off-by: Richard Purdie

    Eric Miao
     
  • This patch adds a debug switch to enable (little) diagnostic
    output, to help to trace down the remaining problems.

    Signed-off-by: Mario Schwalbe
    Signed-off-by: Andrew Morton
    Signed-off-by: Richard Purdie

    Mario Schwalbe
     
  • This patch adds support for the new Apple models incorporating an Nvidia
    chipset. Apple still uses the same protocol as on older models, but the
    registers moved to a different address. To do this, two sets of functions
    are added for the Intel/Nvidia chipset models and passed by the DMI_MATCH
    function.

    The initial code has been contributed by Hu Gang .

    The driver is known to work on MacBook Pro 3, MacBook Pro 4 and MacBook
    Pro 5.

    Its known to work with limitations on MacBook 5 / MacBook Air 2. Changing
    brightness within X doesn't work, if using Nvidia's proprietary graphics
    driver with no known fix at present. Changing brightness on a text console
    or using the open-source driver does work.

    MacBook Pro 5 has a known bug where the initial brightness after bootup is
    the last recently used brightness (in Mac OSX), while the firmware reports
    maximum. Impossible to fix.

    [akpm@linux-foundation.org: build fix]
    [rpurdie@linux.intel.com: Rebased the patch against latest git]
    Signed-off-by: Mario Schwalbe
    Signed-off-by: Andrew Morton
    Signed-off-by: Richard Purdie

    Mario Schwalbe
     
  • LP5521 is a three channel led driver with support
    for hardware accelerated patterns (currently used
    via lp5521-only sysfs interface).

    Currently, it's used on n810 device.

    Signed-off-by: Felipe Balbi
    Signed-off-by: Richard Purdie

    Felipe Balbi
     
  • Sometimes it's awkward to make sure that the array in the
    platform_data handed to the leds-gpio driver has only valid
    data ... some leds may not be always available, and coping
    with that currently requires patching or rebuilding the array.

    This patch fixes that by making it be OK to pass an invalid
    GPIO (such as "-EINVAL") ... such table entries are skipped.

    [rpurdie@linux.intel.com: adjusted to apply against other led tree changes]
    Signed-off-by: David Brownell
    Tested-by: Diego Dompe
    Signed-off-by: Richard Purdie

    David Brownell
     
  • This fixes the expression in the driver to do the correct thing,
    not that I think anyone would send SND_* without EV_SND.

    Thanks to Roel Kluin for noticing.

    Signed-off-by: Riku Voipio
    Signed-off-by: Richard Purdie

    Riku Voipio
     
  • A pointer to h1940leds_probe is passed to the core via
    platform_driver_register and so the function must not disappear when the
    .init sections are discarded. Otherwise (if also having HOTPLUG=y)
    unbinding and binding a device to the driver via sysfs will result in an
    oops as does a device being registered late.

    An alternative to this patch is using platform_driver_probe instead of
    platform_driver_register plus removing the pointer to the probe function
    from the struct platform_driver.

    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Richard Purdie

    Uwe Kleine-König
     
  • This goto is unnecessary.

    Signed-off-by: Zhenwen Xu
    Signed-off-by: Andrew Morton
    Signed-off-by: Richard Purdie

    Zhenwen Xu
     
  • ROHM BD2802GU is a RGB LED controller attached to i2c bus and specifically
    engineered for decoration purposes. This RGB controller incorporates
    lighting patterns and illuminates.

    This driver is designed to minimize power consumption, so when there is no
    emitting LED, it enters to reset state. And because the BD2802GU has lots
    of features that can't be covered by the current LED framework, it
    provides Advanced Configuration Function(ADF) mode, so that user
    applications can set registers of BD2802GU directly.

    Here are basic usage examples :
    ; to turn on LED (not blink)
    $ echo 1 > /sys/class/leds/led1_R/brightness
    ; to blink LED
    $ echo timer > /sys/class/leds/led1_R/trigger
    $ echo 1 > /sys/class/leds/led1_R/delay_on
    $ echo 1 > /sys/class/leds/led1_R/delay_off
    ; to turn off LED
    $ echo 0 > /sys/class/leds/led1_R/brightness

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Kim Kyuwon
    Signed-off-by: Andrew Morton
    Signed-off-by: Richard Purdie

    Kim Kyuwon
     
  • The leds-clevo-mail driver is in the mainline kernel since 2.6.25 and works
    without severe problems. Make this driver available for a larger audience.

    Signed-off-by: Márton Németh
    Signed-off-by: Richard Purdie

    Németh Márton
     
  • Signed-off-by: Adam Nielsen
    Signed-off-by: Richard Purdie

    Adam Nielsen
     
  • The gpio led trigger will allow leds to be triggered by
    gpio events.

    When we give the led a gpio number, the trigger will
    request_irq() on that so we don't have to keep polling
    for gpio state.

    It's useful for usecases as n810's keypad leds that could
    be triggered by the gpio event generated when user slides
    up to show the keypad.

    We also provide means for userland to tell us what is the
    desired brightness for that special led when it goes on
    so userland could use information from ambient light sensors
    and not set led brightness too high if it's not necessary.

    Signed-off-by: Felipe Balbi
    Signed-off-by: Richard Purdie

    Felipe Balbi
     
  • Mikrotik built six LEDs into the Routerboard 532, from which one is
    destined for custom use, the so called "User LED". This patch adds a
    driver for it, based on the LEDs class.

    Signed-off-by: Phil Sutter
    Acked-by: Florian Fainelli
    Signed-off-by: Richard Purdie

    Phil Sutter
     
  • Add an option to preserve LED state when suspending/resuming to the LED
    gpio driver. Based on a suggestion from Robert Jarzmik.

    Tested-by: Robert Jarzmik
    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • Add a simple driver for pwm driver LEDs. pwm_id and period can be defined
    in board file. It is developed for pxa, however it is probably generic
    enough to be used on other platforms with pwm.

    Signed-off-by: Luotao Fu
    Signed-off-by: Andrew Morton
    Signed-off-by: Richard Purdie

    Luotao Fu
     
  • You can't have multiple module_init()/module_exit calls so resort to messy
    ifdefs potentially pending some code refactoring.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • Add an LED driver using the DAC124S085 DAC from NatSemi

    [randy.dunlap@oracle.com: use header files for interfaces]
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Randy Dunlap
    Signed-off-by: Richard Purdie

    Guennadi Liakhovetski
     
  • This patch allows drivers to override the default maximum brightness value
    of 255. We take care to preserve backwards-compatibility as much as
    possible, so that user-space ABI doesn't change for existing drivers.
    LED trigger code has also been updated to use the per-LED maximum.

    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Richard Purdie

    Guennadi Liakhovetski
     
  • Add bindings to support LEDs defined as of_platform devices in addition to
    the existing bindings for platform devices.

    New options in Kconfig allow the platform binding code and/or the
    of_platform code to be turned on. The of_platform code is of course only
    available on archs that have OF support.

    The existing probe and remove methods are refactored to use new functions
    create_gpio_led(), to create and register one led, and delete_gpio_led(),
    to unregister and free one led. The new probe and remove methods for the
    of_platform driver can then share most of the common probe and remove code
    with the platform driver.

    The suspend and resume methods aren't shared, but they are very short. The
    actual led driving code is the same for LEDs created by either binding.

    The OF bindings are based on patch by Anton Vorontsov
    . They have been extended to allow multiple LEDs
    per device.

    Signed-off-by: Trent Piepho
    Acked-by: Grant Likely
    Acked-by: Sean MacLennan
    Signed-off-by: Richard Purdie

    Trent Piepho
     
  • We should now have the logic in place to handle this properly
    without regressing on the write performance, so re-enable
    the sync writes.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • By default, CFQ will anticipate more IO from a given io context if the
    previously completed IO was sync. This used to be fine, since the only
    sync IO was reads and O_DIRECT writes. But with more "normal" sync writes
    being used now, we don't want to anticipate for those.

    Add a bio/request flag that informs the IO scheduler that this is a sync
    request that we should not idle for. Introduce WRITE_ODIRECT specifically
    for O_DIRECT writes, and make sure that the other sync writes set this
    flag.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • For the older SSD devices that don't do command queuing, we do want to
    enable plugging to get better merging.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • When you are going to be submitting several sync writes, we want to
    give the IO scheduler a chance to merge some of them. Instead of
    using the implicitly unplugging WRITE_SYNC variant, use WRITE_SYNC_PLUG
    and rely on sync_buffer() doing the unplug when someone does a
    wait_on_buffer()/lock_buffer().

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • When you are going to be submitting several sync writes, we want to
    give the IO scheduler a chance to merge some of them. Instead of
    using the implicitly unplugging WRITE_SYNC variant, use WRITE_SYNC_PLUG
    and rely on sync_buffer() doing the unplug when someone does a
    wait_on_buffer()/lock_buffer().

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • Then it can submit all the buffers without unplugging for each one.
    We will kick off the pending IO if we come across a new address space.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • (S)WRITE_SYNC always unplugs the device right after IO submission.
    Sometimes we want to build up a queue before doing so, so add
    variants that explicitly DON'T unplug the queue. The caller must
    then do that after submitting all the IO.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • This makes sure that we never wait on async IO for sync requests, instead
    of doing the split on writes vs reads.

    Signed-off-by: Jens Axboe
    Signed-off-by: Linus Torvalds

    Jens Axboe
     
  • * 'audit.b62' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit-current:
    Audit: remove spaces from audit_log_d_path
    audit: audit_set_auditable defined but not used
    audit: incorrect ref counting in audit tree tag_chunk
    audit: Fix possible return value truncation in audit_get_context()
    audit: ignore terminating NUL in AUDIT_USER_TTY messages
    Audit: fix handling of 'strings' with NULL characters
    make the e->rule.xxx shorter in kernel auditfilter.c
    auditsc: fix kernel-doc notation
    audit: EXECVE record - removed bogus newline

    Linus Torvalds
     
  • * 'for-next' of git://git.o-hand.com/linux-mfd:
    mfd: fix da903x warning
    mfd: fix MAINTAINERS entry
    mfd: Use the value of the final spin when reading the AUXADC
    mfd: Storage class should be before const qualifier
    mfd: PASIC3: supply clock_rate to DS1WM via driver_data
    mfd: remove DS1WM clock handling
    mfd: remove unused PASIC3 bus_shift field
    pxa/magician: remove deprecated .bus_shift from PASIC3 platform_data
    mfd: convert PASIC3 to use MFD core
    mfd: convert DS1WM to use MFD core
    mfd: Support active high IRQs on WM835x
    mfd: Use bulk read to fill WM8350 register cache
    mfd: remove duplicated #include from pcf50633

    Linus Torvalds
     
  • * 'for-linus' of git://repo.or.cz/cris-mirror:
    CRISv32: Remove extraneous space between -I and the path.
    cris: convert obsolete hw_interrupt_type to struct irq_chip
    BUG to BUG_ON changes
    cpumask: use mm_cpumask() wrapper: cris
    cpumask: Use accessors code.: cris
    cpumask: prepare for iterators to only go to nr_cpu_ids/nr_cpumask_bits.: cris

    Linus Torvalds
     
  • * 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (140 commits)
    ACPI: processor: use .notify method instead of installing handler directly
    ACPI: button: use .notify method instead of installing handler directly
    ACPI: support acpi_device_ops .notify methods
    toshiba-acpi: remove MAINTAINERS entry
    ACPI: battery: asynchronous init
    acer-wmi: Update copyright notice & documentation
    acer-wmi: Cleanup the failure cleanup handling
    acer-wmi: Blacklist Acer Aspire One
    video: build fix
    thinkpad-acpi: rework brightness support
    thinkpad-acpi: enhanced debugging messages for the fan subdriver
    thinkpad-acpi: enhanced debugging messages for the hotkey subdriver
    thinkpad-acpi: enhanced debugging messages for rfkill subdrivers
    thinkpad-acpi: restrict access to some firmware LEDs
    thinkpad-acpi: remove HKEY disable functionality
    thinkpad-acpi: add new debug helpers and warn of deprecated atts
    thinkpad-acpi: add missing log levels
    thinkpad-acpi: cleanup debug helpers
    thinkpad-acpi: documentation cleanup
    thinkpad-acpi: drop ibm-acpi alias
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (23 commits)
    sh: sh7785lcr: Map whole PCI address space.
    sh: Fix up DSP context save/restore.
    sh: Fix up number of on-chip DMA channels on SH7091.
    sh: update defconfigs.
    sh: Kill off broken direct-mapped cache mode.
    sh: Wire up ARCH_HAS_DEFAULT_IDLE for cpuidle.
    sh: Add a command line option for disabling I/O trapping.
    sh: Select ARCH_HIBERNATION_POSSIBLE.
    sh: migor: Fix up CEU use flags.
    input: migor_ts: add wakeup support
    rtc: rtc-sh: use set_irq_wake()
    input: sh_keysc: use enable/disable_irq_wake()
    sh: intc: set_irq_wake() support
    sh: intc: install enable, disable and shutdown callbacks
    clocksource: sh_cmt: use remove_irq() and remove clockevent workaround
    sh: ap325 and Migo-R use new sh_mobile_ceu_info flags
    sh: Fix up -Wformat-security whining.
    sh: ap325rxa: Add ov772x support, again.
    sh: Sanitize asm/mmu.h for assembly use.
    sh: Tidy up sh7786 pinmux table.
    ...

    Linus Torvalds
     
  • * 'avr32-arch' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6:
    avr32: add hardware handshake support to atmel_serial
    avr32: add RTS/CTS/CLK pin selection for the USARTs
    Add RTC support for Merisc boards
    avr32: at32ap700x: setup DMA for AC97C in the machine code
    avr32: at32ap700x: setup DMA for ABDAC in the machine code
    Add Merisc board support
    avr32: use gpio_is_valid() to check USBA vbus_pin I/O line
    atmel-usba-udc: use gpio_is_valid() to check vbus_pin I/O line
    avr32: fix timing LCD parameters for EVKLCD10X boards
    avr32: use GPIO line PB15 on EVKLCD10x boards for backlight
    avr32: configure MCI detect and write protect pins for EVKLCD10x boards
    avr32: set pin mask to alternative 18 bpp for EVKLCD10x boards
    avr32: add pin mask for 18-bit color on the LCD controller
    avr32: fix 15-bit LCDC pin mask to use MSB lines

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (714 commits)
    Staging: sxg: slicoss: Specify the license for Sahara SXG and Slicoss drivers
    Staging: serqt_usb: fix build due to proc tty changes
    Staging: serqt_usb: fix checkpatch errors
    Staging: serqt_usb: add TODO file
    Staging: serqt_usb: Lindent the code
    Staging: add USB serial Quatech driver
    staging: document that the wifi staging drivers a bit better
    Staging: echo cleanup
    Staging: BUG to BUG_ON changes
    Staging: remove some pointless conditionals before kfree_skb()
    Staging: line6: fix build error, select SND_RAWMIDI
    Staging: line6: fix checkpatch errors in variax.c
    Staging: line6: fix checkpatch errors in toneport.c
    Staging: line6: fix checkpatch errors in pcm.c
    Staging: line6: fix checkpatch errors in midibuf.c
    Staging: line6: fix checkpatch errors in midi.c
    Staging: line6: fix checkpatch errors in dumprequest.c
    Staging: line6: fix checkpatch errors in driver.c
    Staging: line6: fix checkpatch errors in audio.c
    Staging: line6: fix checkpatch errors in pod.c
    ...

    Linus Torvalds
     
  • * 'tracing-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (413 commits)
    tracing, net: fix net tree and tracing tree merge interaction
    tracing, powerpc: fix powerpc tree and tracing tree interaction
    ring-buffer: do not remove reader page from list on ring buffer free
    function-graph: allow unregistering twice
    trace: make argument 'mem' of trace_seq_putmem() const
    tracing: add missing 'extern' keywords to trace_output.h
    tracing: provide trace_seq_reserve()
    blktrace: print out BLK_TN_MESSAGE properly
    blktrace: extract duplidate code
    blktrace: fix memory leak when freeing struct blk_io_trace
    blktrace: fix blk_probes_ref chaos
    blktrace: make classic output more classic
    blktrace: fix off-by-one bug
    blktrace: fix the original blktrace
    blktrace: fix a race when creating blk_tree_root in debugfs
    blktrace: fix timestamp in binary output
    tracing, Text Edit Lock: cleanup
    tracing: filter fix for TRACE_EVENT_FORMAT events
    ftrace: Using FTRACE_WARN_ON() to check "freed record" in ftrace_release()
    x86: kretprobe-booster interrupt emulation code fix
    ...

    Fix up trivial conflicts in
    arch/parisc/include/asm/ftrace.h
    include/linux/memory.h
    kernel/extable.c
    kernel/module.c

    Linus Torvalds