01 Apr, 2006

40 commits

  • * master.kernel.org:/home/rmk/linux-2.6-serial:
    [SERIAL] Allow 8250 PCI, PNP, GSC and HP300 support to be disabled

    Linus Torvalds
     
  • * master.kernel.org:/home/rmk/linux-2.6-mmc:
    [MMC] Pass -DDEBUG on compiler command line if MMC_DEBUG selected
    [MMC] Add OMAP MMC host driver

    Linus Torvalds
     
  • * 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev:
    [PATCH] libata: fix ata_xfer_tbl termination
    [PATCH] libata: make ata_qc_issue complete failed qcs
    [PATCH] libata: fix ata_qc_issue failure path
    [PATCH] ata_piix: fix ich6/m_map_db
    [libata] ahci: add ATI SB600 PCI IDs

    Linus Torvalds
     
  • Decrease the number of pointer derefs in drivers/serial/jsm/jsm_tty.c

    Benefits of the patch:
    - Fewer pointer dereferences should make the code slightly faster.
    - Size of generated code is smaller
    - Improved readability

    Signed-off-by: Jesper Juhl
    Acked-by: "V. ANANDA KRISHNAN"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Signed-off-by: Brad Campbell
    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • And remove the comments that were put in inplace of a fix too....

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • Currently a device failure during recovery leaves bits set in the bitmap.
    This normally isn't a problem as the offending device will be rejected because
    of errors. However if device re-adding is being used with non-persistent
    bitmaps, this can be a problem.

    Signed-off-by: Neil Brown
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    NeilBrown
     
  • This patch removes the old radeon driver which has been replaced by a
    newer one.

    Signed-off-by: Michael Hanselmann
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Adrian Bunk
    Acked-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     
  • The monochrome->color expansion routine that handles bitmaps which have
    (widths % 8) != 0 (slow_imageblit) produces corrupt characters in big-endian.
    This is caused by a bogus bit test in slow_imageblit().

    Fix.

    This patch may deserve to go to the stable tree. The code has already been
    well tested in little-endian machines. It's only in big-endian where there is
    uncertainty and Herbert confirmed that this is the correct way to go.

    It should not introduce regressions.

    Signed-off-by: Antonino Daplas
    Acked-by: Herbert Poetzl
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Fixes for the pxafb driver:

    * Return -EINVAL for resolutions that are too large as per framebuffer
    driver policy.

    * Increase the error timeout for disabling the LCD controller. The current
    timeout is sometimes too short on the Sharp Zaurus Cxx00 hardware and an
    extra delay in an error path shouldn't pose any problems.

    * Fix a dev reference which causes a compile error when DEBUG is defined.

    Signed-off-by: Richard Purdie
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Generalise the Corgi backlight driver by moving the default intensity and
    limit mask settings into the platform specific data structure. This enables
    the driver to support other Zaurus hardware, specifically the SL-6000x (Tosa)
    model.

    Also change the spinlock to a mutex (the spinlock is overkill).

    Signed-off-by: Richard Purdie
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Updates to the HP Jornada 680 Backlight driver:

    - Correct the suspend/resume functions so the driver compiles
    (SUSPEND_POWER_DOWN/RESUME_POWER_ON no longer exist).

    - Convert the driver to match the recent platform device changes.

    - Replace the unsafe static struct platform_device with dynamic allocation.

    - Convert the driver to the new backlight code.

    This has not been tested on a device due to lack of hardware but wouldn't
    compile beforehand.

    Signed-off-by: Richard Purdie
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Backlight class attributes are currently easy to implement incorrectly.
    Moving certain handling into the backlight core prevents this whilst at the
    same time makes the drivers simpler and consistent. The following changes are
    included:

    The brightness attribute only sets and reads the brightness variable in the
    backlight_properties structure.

    The power attribute only sets and reads the power variable in the
    backlight_properties structure.

    Any framebuffer blanking events change a variable fb_blank in the
    backlight_properties structure.

    The backlight driver has only two functions to implement. One function is
    called when any of the above properties change (to update the backlight
    brightness), the second is called to return the current backlight brightness
    value. A new attribute "actual_brightness" is added to return this brightness
    as determined by the driver having combined all the above factors (and any
    driver/device specific factors).

    Additionally, the backlight core takes care of checking the maximum brightness
    is not exceeded and of turning off the backlight before device removal.

    The corgi backlight driver is updated to reflect these changes.

    Signed-off-by: Richard Purdie
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Add acceleration support in w100fb.c (i.e. ATI Imageons) for the copyarea and
    fillrect operations.

    Signed-off-by: Alberto Mardegan
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Mardegan
     
  • The current display was not saved during initialization. This leads to hard
    to track console corruption, such as a misplaced cursor, which is correctible
    by switching consoles. Fix this minor bug.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Add an LED trigger for IDE disk activity to the ide-disk driver.

    Signed-off-by: Richard Purdie
    Acked-by: Bartlomiej Zolnierkiewicz
    Cc: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Ensure ide-taskfile.c calls any driver specific end_request function if
    present.

    Signed-off-by: Richard Purdie
    Cc: Alan Cox
    Acked-by: Bartlomiej Zolnierkiewicz
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Adds LED drivers for LEDs found on the Sharp Zaurus c6000 model (tosa).

    Signed-off-by: Dirk Opfer
    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dirk Opfer
     
  • NEW_LEDS support for ixp4xx boards where LEDs are connected to the GPIO lines.

    This includes a new generic ixp4xx driver (leds-ixp4xx-gpio.c name
    "IXP4XX-GPIO-LED")

    Signed-off-by: John Bowler
    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    John Bowler
     
  • Adds an LED driver for LEDs exported by the Sharp LOCOMO chip as found on some
    models of Sharp Zaurus.

    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Adds LED drivers for LEDs found on the Sharp Zaurus c7x0 (corgi, shepherd,
    husky) and cxx00 (akita, spitz, borzoi) models.

    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Add an example of a complex LED trigger in the form of a generic timer which
    triggers the LED its attached to at a user specified frequency and duty cycle.

    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Add support for LED triggers to the LED subsystem. "Triggers" are events
    which change the state of an LED. Two kinds of trigger are available, simple
    ones which can be added to exising code with minimum disruption and complex
    ones for implementing new or more complex functionality.

    Signed-off-by: Richard Purdie
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Add the foundations of a new LEDs subsystem. This patch adds a class which
    presents LED devices within sysfs and allows their brightness to be
    controlled.

    Signed-off-by: Richard Purdie
    Cc: Russell King
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Purdie
     
  • Add TIOCL_GETKMSGREDIRECT needed by the userland suspend tool to get the
    current value of kmsg_redirect from the kernel so that it can save it and
    restore it after resume.

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Cc: Michael Kerrisk
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Fix a few memory leaks in drivers/isdn/sc/ioctl.c::sc_ioctl()

    Signed-off-by: Jesper Juhl
    Acked-by: Karsten Keil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jesper Juhl
     
  • Delete two useless kmalloc wrappers and use kmalloc/kzalloc. Some weird
    NULL checks are also simplified.

    Signed-off-by: Tobias Klauser
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tobias Klauser
     
  • The "3c59x: use mii_check_media" patch introduced a netif_carrier_off in
    vortex_up. 10base2 stoped working because of this. This is removed.

    Tx/Rx reset is back in vortex_up because the 3c900B-Combo stops working after
    changing from half duplex to full duplex when Tx/Rx reset is done with
    vortex_timer.

    Also brought back some mii stuff to be sure that it does not break something
    else.

    Thanks to Pete Clements for reporting and testing.

    Signed-off-by: Steffen Klassert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Steffen Klassert
     
  • The pre-2.6.16 patch "3c59x collision statistics fix" accidentally caused
    vortex_error() to not run iowrite16(TxEnable, ioaddr + EL3_CMD) if we got a
    maxCollisions interrupt but MAX_COLLISION_RESET is not set.

    Thanks to Pete Clements for reporting and testing.

    Acked-by: Steffen Klassert
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • Convert the remaining semaphores to mutexes in the IPMI driver. The
    watchdog was using a semaphore as a real semaphore (for IPC), so the
    conversion there required adding a completion.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Tidy up various coding standard things, mostly removing the space after !,
    but also break some long lines and fix a few other spacing inconsistencies.
    Also fixes some bad error reporting when deleting an IPMI user.

    Signed-off-by: Corey Minyard
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Matt Domsch noticed a startup race with the IPMI kernel thread, it was
    possible (though extraordinarly unlikely) that a message could come in
    before the upper layer was ready to handle it. This patch splits the
    startup processing of an IPMI interface into two parts, one to get ready
    and one to actually start the processes to receive messages from the
    interface.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Corey Minyard
    Cc: Matt Domsch
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Corey Minyard
     
  • Alan sayeth "Based on Linus original comments about _GPL we should export
    tty_insert_flip_char as EXPORT_SYMBOL because it used to be EXPORT_SYMBOL
    equivalent (trivial inline). The other features are new extensions are were
    not available to drivers before so need not be provided except as _GPL
    functionality as far as I can see."

    Addresses http://bugzilla.kernel.org/show_bug.cgi?id=6294

    Cc: Alan Cox
    Cc: Russell King
    Cc: Paul Fulghum
    Cc: Philippe Vouters
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • EDAC_752X uses pci_scan_single_device(), which is only available if
    CONFIG_HOTPLUG is enabled, so limit this driver with HOTPLUG.

    Signed-off-by: Randy Dunlap
    Cc: Dave Peterson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The boot cmdline is parsed in parse_early_param() and
    parse_args(,unknown_bootoption).

    And __setup() is used in obsolete_checksetup().

    start_kernel()
    -> parse_args()
    -> unknown_bootoption()
    -> obsolete_checksetup()

    If __setup()'s callback (->setup_func()) returns 1 in
    obsolete_checksetup(), obsolete_checksetup() thinks a parameter was
    handled.

    If ->setup_func() returns 0, obsolete_checksetup() tries other
    ->setup_func(). If all ->setup_func() that matched a parameter returns 0,
    a parameter is seted to argv_init[].

    Then, when runing /sbin/init or init=app, argv_init[] is passed to the app.
    If the app doesn't ignore those arguments, it will warning and exit.

    This patch fixes a wrong usage of it, however fixes obvious one only.

    Signed-off-by: OGAWA Hirofumi
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    OGAWA Hirofumi
     
  • kconfig sanitized around drivers/net

    Signed-off-by: Al Viro
    Signed-off-by: Jeff Dike
    Cc: Paolo 'Blaisorblade' Giarrusso
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • Fix an obvious off-by-one error (vmax_mtd[] contains two elements).

    Signed-off-by: Adrian Bunk
    Cc: Thomas Gleixner
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Petri T. Koistinen
     
  • drivers/mtd/devices/blkmtd.c uses a local declaration of name_to_dev_t()
    which is inconsistant with the real one. the following patch fixes this by
    removing the local declaration and including mount.h instead

    this patch was originally done by Micah Anderson.

    Signed-off-by: Herbert Poetzl
    Acked-by: Micah Anderson
    Acked-by: Daniel Hokka Zakrisson
    Cc: Thomas Gleixner
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Herbert Poetzl
     
  • Redboot simply sets the first character of a fis entry to 0xff on "fis
    delete". The kernel redboot parser stops parsing on such an entry, and
    without this patch any entries after a deleted image would not be detected.

    Signed-off-by: Peter Korsgaard
    Cc: Thomas Gleixner
    Acked-by: David Woodhouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Korsgaard