25 Dec, 2009

1 commit


18 Dec, 2009

3 commits

  • …/git/tmlind/linux-omap-2.6

    * 'omap-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6:
    OMAP3: serial - fix bug introduced in
    mfd: twl: fix twl4030 rename for remaining driver, board files
    USB ehci: replace mach header with plat
    omap3: Allow EHCI to be built on OMAP3

    Linus Torvalds
     
  • * 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
    backlight: mbp_nvidia_bl - add two more MacBookPro variants
    backlight: Pass device through notify callback in the pwm driver
    backlight: PTR_ERR return of wrong pointer in cr_backlight_probe()
    backlight: Constify struct backlight_ops
    backlight/thinkpad-acpi: issue backlight class events

    Fix up trivial conflicts in thinkpad-acpi support (backlight support
    already merged earlier).

    Linus Torvalds
     
  • sizeof(viafb_gamma_table) is just the size of the pointer. This is changed
    to the size used when calling kmalloc to initialize the pointer.

    A simplified version of the semantic patch that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @@
    expression *x;
    expression f;
    type T;
    @@

    *f(...,(T)x,...)
    //

    Signed-off-by: Julia Lawall
    Acked-by: Florian Tobias Schandinat
    Cc: Joseph Chan
    Cc: Scott Fang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     

17 Dec, 2009

6 commits

  • This reverts commit 8546e3ce6e37c359979b69862442f94e0ef0e03b, as it's a
    partial duplicate of commit 2f390380ca69e1617cdddb12d8da94f0a9f4319d
    ("fbdev: add palette register check to several drivers").

    The former went in first through the m68k tree, the latter through Andrew
    Morton.

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • This adds the MacBookPro 5,3 and 5,4 to the DMI tables.

    Signed-off-by: Daniel Ritz
    Signed-off-by: Richard Purdie

    Daniel Ritz
     
  • Add the device to the notify callback's arguments in the PWM backlight
    driver. This brings the notify callback into line with the other
    callbacks defined by this driver.

    Signed-off-by: Ben Dooks
    Signed-off-by: Simtec Linux Team
    Signed-off-by: Richard Purdie

    Ben Dooks
     
  • Return the PTR_ERR of the correct pointer.

    Signed-off-by: Roel Kluin
    Signed-off-by: Richard Purdie

    Roel Kluin
     
  • Recent drivers/mfd/twl4030* renames to twl broke compile for
    various boards as the series was missing a patch to change
    the board-*.c files.

    This patch renames include twl4030.h to include twl.h
    and also renames twl4030_i2c_ routines.

    Signed-off-by: Balaji T K
    Acked-by: Mark Brown
    Reviewed-by: Felipe Balbi
    Cc: Samuel Ortiz
    Signed-off-by: Tony Lindgren

    Balaji T K
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (33 commits)
    sh: Fix test of unsigned in se7722_irq_demux()
    sh: mach-ecovec24: Add FSI sound support
    sh: mach-ecovec24: Add mt9t112 camera support
    sh: mach-ecovec24: Add tw9910 support
    sh: MSIOF/mmc_spi platform data for the Ecovec24 board
    sh: ms7724se: Add ak4642 support
    sh: Fix up FPU build for SH5
    sh: Remove old early serial console code V2
    sh: sh5 scif pdata (sh5-101/sh5-103)
    sh: sh4a scif pdata (sh7757/sh7763/sh7770/sh7780/sh7785/sh7786/x3)
    sh: sh4a scif pdata (sh7343/sh7366/sh7722/sh7723/sh7724)
    sh: sh4 scif pdata (sh7750/sh7760/sh4-202)
    sh: sh3 scif pdata (sh7705/sh770x/sh7710/sh7720)
    sh: sh2a scif pdata (sh7201/sh7203/sh7206/mxg)
    sh: sh2 scif pdata (sh7616)
    sh-sci: Extend sh-sci driver with early console V2
    sh: Stub in P3 ioremap support for nommu parts.
    sh: wire up vmallocinfo support in ioremap() implementations.
    sh: Make the unaligned trap handler always obey notification levels.
    sh: Couple kernel and user write page perm bits for CONFIG_X2TLB
    ...

    Linus Torvalds
     

16 Dec, 2009

28 commits

  • The intelfb driver sets color map depending on currently active pipe.
    However, if an LVDS display is attached (like in laptop) the active pipe
    variable is never set. The default value is PIPE_A and can be wrong. Set
    up the pipe variable during driver initialization after hardware state was
    read.

    Also, the detection of the active display (and hence the pipe) is wrong.
    The pipes are assigned to so called planes. Both pipes are always enabled
    on my laptop but only one plane is enabled (the plane A for the CRT or the
    plane B for the LVDS). Change active pipe detection code to take into
    account a status of the plane assigned to each pipe.

    The problem is visible in the 8 bpp mode if colors above 15 are used. The
    first 16 color entries are displayed correctly.

    The graphics chip description is here (G45 vol. 3):
    http://intellinuxgraphics.org/documentation.html

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

    Signed-off-by: Krzysztof Helt
    Cc: Michal Suchanek
    Cc: Dean Menezes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • A humble attempt to simplify the coding style to improve readability

    Signed-off-by: Harald Welte
    Signed-off-by: Florian Tobias Schandinat
    Cc: Joseph Chan
    Cc: Scott Fang
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harald Welte
     
  • Regression caused in 2.6.23 and then despite repeated requests never fixed
    or dealt with (Petr promised to sort it in 2008 but seems to have
    forgotten).

    Enough is enough - remove the problem line that was added. If it upsets
    someone they've had two years to deal with it and at the very least it'll
    rattle their cage and wake them up.

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

    Signed-off-by: Alan Cox
    Reported-by: Damon
    Tested-by: Ruud van Melick
    Cc: Petr Vandrovec
    Cc: Pekka Enberg
    Cc: Paul A. Clarke
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Implement frame buffer blank operation feature for DA8xx/OMAP-L1xx driver.

    Signed-off-by: Chaithrika U S
    Cc: Kevin Hilman
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chaithrika U S
     
  • Suspend/resume support DA8xx/OMAP-L1xx frame buffer driver. This feature
    has been tested on DA850/OMAP-L138 EVM. For the purpose of testing, the
    patch series[1] which adds suspend support for DA850/OMAP-L138 SoC was
    applied.

    [1] http://patchwork.kernel.org/patch/60260/

    Signed-off-by: Chaithrika U S
    Cc: Kevin Hilman
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chaithrika U S
     
  • Add a helper function to enable raster. Also add one member in the
    private data structure to track the current blank status, another function
    pointer which takes in the platform specific callback function to control
    panel power.

    These updates will help in adding suspend/resume and frame buffer blank
    operation features.

    Signed-off-by: Chaithrika U S
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chaithrika U S
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • Fixed a typo: missing *. This would lead to a kernel oops if the kernel
    was compiled without support for the /proc file system.

    Found with a static checker. Compile tested.

    Signed-off-by: Dan Carpenter
    Acked-by: Florian Tobias Schandinat
    Cc: Joseph Chan
    Cc: Scott Fang
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Carpenter
     
  • This patch provides the acceleration entry points for the SM501
    framebuffer driver.

    This patch provides the sync, copyarea and fillrect entry points, using
    the SM501's 2D acceleration engine to perform the operations in-chip
    rather than across the bus.

    Signed-off-by: Ben Dooks
    Signed-off-by: Simtec Linux Team
    Signed-off-by: Vincent Sanders
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vincent Sanders
     
  • Fix the old style use of by replacing it with .

    Signed-off-by: Ben Dooks
    Signed-off-by: Simtec Linux Team
    Cc: Vincent Sanders
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • There are several places in the SM501 fb driver that could do with using
    resource_size() to calculate the size of a resource.

    Also fix a bug where request_mem_region() is being passed one too few
    bytes when requesting the register memory region, which was causing the
    following in /proc/iomem:

    13e80000-13e8ffff : sm501-fb.0
    13e80000-13e8fffe : sm501-fb

    fixed, this reads:

    13e80000-13e8ffff : sm501-fb.0
    13e80000-13e8ffff : sm501-fb

    Signed-off-by: Ben Dooks
    Signed-off-by: Simtec Linux Team
    Cc: Vincent Sanders
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • Alan Cox has found that the i810fb function "uses a whopping 2.5K of stack".

    Signed-off-by: Krzysztof Helt
    Reported-by: Alan Cox
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • The GRUB folks requested copyright/license info for lxfb.h, so here it is.

    Signed-off-by: Andres Salomon
    Cc: Jordan Crouse
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • Add cpufreq support for DA8xx/OMAP-L1xx frame buffer driver

    Signed-off-by: Chaithrika U S
    Cc: Krzysztof Helt
    Cc: Kevin Hilman
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chaithrika U S
     
  • The clock divider value can be calculated from the pixel clock value for
    the panel. This gives more flexiblity to the driver to change the divider
    value on the fly as in the case of cpufreq feature- support for which will
    be added shortly.

    Signed-off-by: Chaithrika U S
    Cc: Sudhakar Rajashekhara
    Cc: Steve Chen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Chaithrika U S
     
  • [akpm@linux-foundation.org: clean up comments, remove do-nothing tests, use min()]
    [akpm@linux-foundation.org: fix Alexandr's email address]
    [akpm@linux-foundation.org: export mb862xxfb_init_accel]
    Signed-off-by: Valentin Sitdikov
    Cc: Krzysztof Helt
    Cc: Anatolij Gustschin
    Signed-off-by: Alexander Shishkin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Valentin Sitdikov
     
  • If the NULL test on fbi is needed, then the dereference should be after the
    NULL test.

    A simplified version of the semantic match that detects this problem is as
    follows (http://coccinelle.lip6.fr/):

    //
    @match exists@
    expression x, E;
    identifier fld;
    @@

    * x->fld
    ... when != \(x = E\|&x\)
    * x == NULL
    //

    Signed-off-by: Julia Lawall
    Cc: Krzysztof Helt
    Cc: Eric Miao
    Cc: Daniel Mack
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julia Lawall
     
  • Add check if palette register number is in correct range for few drivers
    which miss it. The regno value comes indirectly from user space.

    Two drivers has converted check from BUG_ON() macro to just return an
    error (non-zero value).

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Kernel has simple_strtol() implementation which could be used as atoi().

    Signed-off-by: Andy Shevchenko
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • The TV_PALN bit was tested twice, replace one by TV_PALM.

    Signed-off-by: Roel Kluin
    Cc: Thomas Winischhofer
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • The height/width framebuffer members need to be set in millimeters so that
    software can do proper scaling.

    Signed-off-by: Michael Hennerich
    Signed-off-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hennerich
     
  • The LCD commands DMA/timers as well as PPI which we need to save/restore.

    Signed-off-by: Michael Hennerich
    Signed-off-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hennerich
     
  • Framebuffer driver for the Landscape LCD EZ-Extender (ADZS-BFLLCD-EZEXT)
    http://docs.blackfin.uclinux.org/doku.php?id=hw:cards:landscape_lcd_ez-extender

    Signed-off-by: Michael Hennerich
    Signed-off-by: Bryan Wu
    Signed-off-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hennerich
     
  • Signed-off-by: Emese Revfy
    Signed-off-by: Richard Purdie

    Emese Revfy
     
  • Makes use of skip_spaces() defined in lib/string.c for removing leading
    spaces from strings all over the tree.

    It decreases lib.a code size by 47 bytes and reuses the function tree-wide:
    text data bss dec hex filename
    64688 584 592 65864 10148 (TOTALS-BEFORE)
    64641 584 592 65817 10119 (TOTALS-AFTER)

    Also, while at it, if we see (*str && isspace(*str)), we can be sure to
    remove the first condition (*str) as the second one (isspace(*str)) also
    evaluates to 0 whenever *str == 0, making it redundant. In other words,
    "a char equals zero is never a space".

    Julia Lawall tried the semantic patch (http://coccinelle.lip6.fr) below,
    and found occurrences of this pattern on 3 more files:
    drivers/leds/led-class.c
    drivers/leds/ledtrig-timer.c
    drivers/video/output.c

    @@
    expression str;
    @@

    ( // ignore skip_spaces cases
    while (*str && isspace(*str)) { \(str++;\|++str;\) }
    |
    - *str &&
    isspace(*str)
    )

    Signed-off-by: André Goddard Rosa
    Cc: Julia Lawall
    Cc: Martin Schwidefsky
    Cc: Jeff Dike
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: "H. Peter Anvin"
    Cc: Richard Purdie
    Cc: Neil Brown
    Cc: Kyle McMartin
    Cc: Henrique de Moraes Holschuh
    Cc: David Howells
    Cc:
    Cc: Samuel Ortiz
    Cc: Patrick McHardy
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    André Goddard Rosa
     
  • ..and include them in the lxfb/gxfb drivers rather than asm/geode.h (where
    possible).

    Signed-off-by: Andres Salomon
    Cc: Jordan Crouse
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: john stultz
    Cc: Chris Ball
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • Signed-off-by: Andres Salomon
    Cc: Jordan Crouse
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: john stultz
    Cc: Chris Ball
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

15 Dec, 2009

1 commit


14 Dec, 2009

1 commit

  • This patch renames function names like twl4030_i2c_write_u8,
    twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8
    and also common variable in twl-core.c

    Signed-off-by: Rajendra Nayak
    Signed-off-by: Balaji T K
    Signed-off-by: Santosh Shilimkar
    Acked-by: Kevin Hilman
    Signed-off-by: Samuel Ortiz

    Balaji T K