14 Dec, 2006

3 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
     
  • Modify the sstfb (Voodoo1/2) driver:

    - fix a memleak when removing the sstfb module

    - fix sstfb to use the fbdev default videomode database

    - add module option "mode_option" to set initial screen mode

    - add sysfs-interface to turn VGA-passthrough on/off via
    /sys/class/graphics/fbX/vgapass

    - remove old debug functions from ioctl interface

    Signed-off-by: Helge Deller
    Acked-By: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • Remove references to non-existent fbmon_valid_timings()

    Signed-off-by: Geert Uytterhoeven
    Cc: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     

13 Dec, 2006

1 commit

  • * 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
    i2c: Fix OMAP clock prescaler to match the comment
    i2c: Refactor a kfree in i2c-dev
    i2c: Fix return value check in i2c-dev
    i2c: Enable PEC on more i2c-i801 devices
    i2c: Discard the i2c algo del_bus wrappers
    i2c: New ARM Versatile/Realview bus driver
    i2c: fix broken ds1337 initialization
    i2c: i2c-i801 documentation update
    i2c: Use the __ATTR macro where possible
    i2c: Whitespace cleanups
    i2c: Use put_user instead of copy_to_user where possible
    i2c: New Atmel AT91 bus driver
    i2c: Add support for nested i2c bus locking
    i2c: Cleanups to the i2c-nforce2 bus driver
    i2c: Add request/release_mem_region to i2c-ibm_iic bus driver
    i2c: New Philips PNX bus driver
    i2c: Delete the broken i2c-ite bus driver
    i2c: Update the list of driver IDs
    i2c: Fix documentation typos

    Linus Torvalds
     

11 Dec, 2006

2 commits


09 Dec, 2006

34 commits

  • This code is '#if 0'ed. Anyway if anyone wants to dump neo registers
    better to have it fixed.

    Signed-off-by: Mariusz Kozlowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     
  • Remove broken and unused macro.

    Signed-off-by: Mariusz Kozlowski
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     
  • Automatically set VIDEO_SELECT when you select VESA FB. Currently if you
    select VESA FB with fbcon but don't select VGA console the box will not
    have its video mode set. Thus you get a blank screen.

    Signed-off-by: James Simmons
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    James Simmons
     
  • For Geode devices without a flatpanel aware BIOS, this enables the flatpanel
    power and data.

    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • Use the right MSR and bits to detect if the GX is strapped for TFT or CRT

    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • Add support for command line options for setting the mode and various
    settings.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • Support TFT panels by correctly setting up the flat panel registers

    [akpm@osdl.org: cleanups]
    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • We cannot assume that the BIOS will be correctly setting up the hardware, so
    set some bits in various display registers to enable video output. Allow an
    advanced user to specify a frambuffer size, rather then probing the BIOS. All
    of these fixes were prompted by the OLPC effort.

    [akpm@osdl.org: cleanups]
    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • Use the Geode GX BIOS virtual registers to get the actual size of the
    framebuffer.

    Signed-off-by: Jordan Crouse
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse
     
  • ACPI drivers like ibm-acpi are moving to the backlight sysfs
    infrastructure. During ibm-acpi testing, I have noticed that
    backlight_device_unregister() sets the display brightness and power to
    zero.

    This causes the display to be dimmed on ibm-acpi module removal. It will
    affect all other ACPI drivers that are being converted to use the backlight
    class, as well. It also affects a number of framebuffer devices that are
    used on desktops and laptops which might also not want such behaviour.

    Since working around this behaviour requires undesireable hacks, Richard
    Purdie decided that we would be better off reverting the changes in the
    sysfs class, and adding the code to dim and power off the backlight device
    to the drivers that want it. This patch is my attempt to do so.

    Patch against latest linux-2.6.git. Changes untested, as I lack the
    required hardware. Still, they are trivial enough that, apart from typos,
    there is little chance of getting them wrong.

    Signed-off-by: Henrique de Moraes Holschuh
    Acked-by: Richard Purdie
    Acked-by: Pavel Machek
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Henrique de Moraes Holschuh
     
  • Fix some possible unaligned accesses when accessing fields of 'image'
    pointer. Indeed this pointer was obtained by allocating a block of memory
    that embeds a temporary array plus an image structure. The temporary
    buffer was located at the start of the allocated block and depending on its
    size, the image structure which comes right after can be unaligned.

    For example when using mini fonts (4x6) (cursor's width is 4 and its height
    is 6) the temporary buf size is 6 bytes.

    Therefore this patch moves the image structure to the start of the block
    and moves the temporary buffer right after. It makes 'image' pointer
    always aligned and since the tempo buf is a buffer of char, it's always
    correctly aligned as well.

    It also fixes the file header alignement.

    Signed-off-by: Franck Bui-Huu
    Cc: James Simmons
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Franck Bui-Huu
     
  • The backlight layer should be independent from the framebuffer layer. It
    can use the services offered by the framebuffer, but its absence should not
    prevent the backlight/lcd layer from functioning.

    [akpm@osdl.org: cleanups]
    Signed-off-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    James Simmons
     
  • From: Eric Sesterhenn

    Signed-off-by: Eric Sesterhenn
    Signed-off-by: Alexey Dobriyan

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

    Alexey Dobriyan
     
  • Some register were only set in aty_init() which is not called on resume. I
    added the aty_resume_chip() function to reset those registers on resume.

    Susped-to-ram now works on a HP Omnibook 6000 with acpi_sleep=s3_bios.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Improve atyfb_atari_probe():
    * Call correct_chipset() so that more par members, par->features in
    particular, get initialized.
    * If probe fails iounmap() the mapped regions and continue probing for more
    adapters.

    Only verified to cross-compile due to lack of hardware.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Remove aty_cmap_regs. Access the LUT in the same way as other registers.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Fix some __init and __devinit annotations.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • The 'name' argument of aty_init() is pointless because the bus type can be
    queried from the hardware.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Fix a minor problem in blanking level transitions. Reducing the blanking
    level gradually was impossible.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Silence some sparse warnings:
    * Remove casts from atari out_le32() and friends.
    * Move accel functions' declarations to atyfb.h.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Fix some compiler warnings and remove an #ifdef.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • atyfb has used the auxiliary register aperture for a long time. Remove a
    related FIXME which was accidentally left in.

    Signed-off-by: Ville Syrjala
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • This patch adds a way to create and use the video plane (YUV overlay) and
    scaling video scaling features of the chip.

    The overlay is configured, resized and modified using a device specific
    ioctl.

    Also included in this patch:
    - If no platform data was passed, print an error and exit instead of crashing.
    - Added a write_reg(_dly) macro. This improves readability when
    manipulating chip registers. (no more udelay() after each write).
    - Comments about some issues.

    Signed-off-by: Raphael Assenat
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • This patch fixes debugfs for mbxfb and adds some missing registers.

    The way registers were read was out of sync with the rest of the driver (direct
    access instead of using readl())

    sdram controller registers are now accessible in the sdram/ subdirectory and
    some other registers are grouped in the misc/ subdirectory.

    Signed-off-by: Raphael Assenat
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • This patch adds register bits access macros for chip's Video Plane, Scaling
    and interrupt registers.

    Signed-off-by: Raphael Assenat
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • This patch corrects the address for register HSCOEFF3.

    Signed-off-by: Raphael Assenat
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Raphael Assenat
     
  • Currently a lot of flickering is seen on the VGA and LCD port when one
    starts a DBAu1100 board, with 'CONFIG_PRINTK=3Dy'.

    This patch removes the flickering and as a result all kernel messages come
    by in a nice steady fashion.

    Signed-off-by: Freddy Spierenburg
    Cc: "Antonino A. Daplas"
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Freddy Spierenburg
     
  • - move some static data into the .rodata section

    - simplify source code for transl_l[] and transl_h[] which makes it more
    readable

    Signed-off-by: Helge Deller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • - annotate some variables in vesafb driver as __read_mostly

    Signed-off-by: Helge Deller
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • - annotate some variables from vgacon.c and fbmem.c as __read_mostly
    - move the mask[] array in fb_set_logo_truepalette() into the .rodata section

    Signed-off-by: Helge Deller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • - move some structs and arrays to the read-only (.rodata) section

    [akpm@osdl.org: build fix]
    Signed-off-by: Helge Deller
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • - Mark the default colormaps read-only, as nobody should be allowed to
    modify them

    - Additionally mark color values as __read_mostly since they will only be
    modified (very seldom) by fb_invert_cmaps()

    - Add named C99-initializers in fb_cmap structs and use the ARRAY_SIZE()
    macro

    Signed-off-by: Helge Deller
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Helge Deller
     
  • This patch adds support for stn displays on the s3c2410 arm SoC.

    The LCD type is choosen by a new field in the s3c2410fb_mach_info structure
    and its value is the value of the PNRMODE bits. This worth to be noted as
    a value of 0 means that you configure a 4 bit dual scan stn display.

    Signed-off-by: Arnaud Patard
    Cc: "Antonino A. Daplas"
    Cc: Russell King
    Cc: Ben Dooks
    Acked-by: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnaud Patard (Rtp
     
  • If no default mode is specified, it should be grabbed from the supplied
    database, not the default one.

    [teanropo@jyu.fi: fix it]
    [akpm@osdl.org: simplify it]
    [akpm@osdl.org: remove pointless DEFAULT_MODEDB_INDEX]
    Signed-off-by: Jordan Crouse
    Cc: Geert Uytterhoeven
    Cc: "Antonino A. Daplas"
    Signed-off-by: Tero Roponen
    Cc: James Simmons
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jordan Crouse