08 Apr, 2011

2 commits

  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    efifb: Add override for 11" Macbook Air 3,1
    efifb: Support overriding fields FW tells us with the DMI data.
    fb: Reduce priority of resource conflict message
    savagefb: Remove obsolete else clause in savage_setup_i2c_bus
    savagefb: Set up I2C based on chip family instead of card id
    savagefb: Replace magic register address with define
    drivers/video/bfin-lq035q1-fb.c: introduce missing kfree
    video: s3c-fb: fix checkpatch errors and warning
    efifb: support AMD Radeon HD 6490
    s3fb: fix Virge/GX2
    fbcon: Remove unused 'display *p' variable from fb_flashcursor()
    fbdev: sh_mobile_lcdcfb: fix module lock acquisition
    fbdev: sh_mobile_lcdcfb: add blanking support
    viafb: initialize margins correct
    viafb: refresh rate bug collection
    sh: mach-ap325rxa: move backlight control code
    sh: mach-ecovec24: support for main lcd backlight

    Linus Torvalds
     
  • * 'for-linus2' of git://git.profusion.mobi/users/lucas/linux-2.6:
    Fix common misspellings

    Linus Torvalds
     

07 Apr, 2011

8 commits


04 Apr, 2011

1 commit


02 Apr, 2011

1 commit


31 Mar, 2011

4 commits

  • Fixes generated by 'codespell' and manually reviewed.

    Signed-off-by: Lucas De Marchi

    Lucas De Marchi
     
  • This patch enables the framebuffer for the AMD Radeon 6490 found in the new MacBook Pro 8,2 generation.
    The framebuffer's base is located at 0x90010000, the method for obtaining it was found in the same way mentioned in https://patchwork.kernel.org/patch/91704/

    Signed-off-by: Davidlohr Bueso
    Signed-off-by: Jonathan Gonzalez
    Signed-off-by: Paul Mundt

    Davidlohr Bueso
     
  • Fix Virge/GX2 support in s3fb:
    - fix IDs: 86C357 is GX2, 86C359 is GX2+, 86C356 probably does not exist
    - add memory size detection
    - drive it the same way as Trio3D/2X

    The original IDs most likely came from S3 website which claims that:
    - 356 is Virge/GX2 with ID=8A10, driver included in Windows 2K, XP
    - 357 is Virge/GX2+ with ID=8A11, driver included in Windows ME
    - 359 is Virge/GX2+ with ID=8A12, driver included in Windows ME
    but:
    - google search for 86C356 only reveals references to Trio3D (probably
    because of a typo - Trio3D is 86C365)
    - my card is clearly marked as 86C357, Virge/GX2 and has ID=8A10
    - there is no driver for IDs 8A11 and 8A12 in Windows ME
    - there is a driver for ID 8A10 in Windows ME that says it's GX2 (357)

    Tested with #9 Reality 334 (86C357 Virge/GX2, ID=0x8A10).

    Signed-off-by: Ondrej Zary
    Signed-off-by: Paul Mundt

    Ondrej Zary
     
  • Signed-off-by: Sergey Senozhatsky
    Signed-off-by: Paul Mundt

    Sergey Senozhatsky
     

29 Mar, 2011

3 commits


26 Mar, 2011

1 commit


25 Mar, 2011

2 commits

  • Paul Mundt
     
  • * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (442 commits)
    [media] videobuf2-dma-contig: make cookie() return a pointer to dma_addr_t
    [media] sh_mobile_ceu_camera: Do not call vb2's mem_ops directly
    [media] V4L: soc-camera: explicitly require V4L2_BUF_TYPE_VIDEO_CAPTURE
    [media] v4l: soc-camera: Store negotiated buffer settings
    [media] rc: interim support for 32-bit NEC-ish scancodes
    [media] mceusb: topseed 0x0011 needs gen3 init for tx to work
    [media] lirc_zilog: error out if buffer read bytes != chunk size
    [media] lirc: silence some compile warnings
    [media] hdpvr: use same polling interval as other OS
    [media] ir-kbd-i2c: pass device code w/key in hauppauge case
    [media] rc/keymaps: Remove the obsolete rc-rc5-tv keymap
    [media] remove the old RC_MAP_HAUPPAUGE_NEW RC map
    [media] rc/keymaps: Rename Hauppauge table as rc-hauppauge
    [media] rc-rc5-hauppauge-new: Fix Hauppauge Grey mapping
    [media] rc-rc5-hauppauge-new: Add support for the old Black RC
    [media] rc-rc5-hauppauge-new: Add the old control to the table
    [media] rc-winfast: Fix the keycode tables
    [media] a800: Fix a few wrong IR key assignments
    [media] opera1: Use multimedia keys instead of an app-specific mapping
    [media] dw2102: Use multimedia keys instead of an app-specific mapping
    ...

    Fix up trivial conflicts (remove/modify and some real conflicts) in:
    arch/arm/mach-omap2/devices.c
    drivers/staging/Kconfig
    drivers/staging/Makefile
    drivers/staging/dabusb/dabusb.c
    drivers/staging/dabusb/dabusb.h
    drivers/staging/easycap/easycap_ioctl.c
    drivers/staging/usbvideo/usbvideo.c
    drivers/staging/usbvideo/vicam.c

    Linus Torvalds
     

24 Mar, 2011

3 commits

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (90 commits)
    mfd: Push byte swaps out of wm8994 bulk read path
    mfd: Rename ab8500 gpadc header
    mfd: Constify WM8994 write path
    mfd: Push byte swap out of WM8994 bulk I/O
    mfd: Avoid copying data in WM8994 I2C write
    mfd: Remove copy from WM831x I2C write function
    mfd: Staticise WM8994 PM ops
    regulator: Add a subdriver for TI TPS6105x regulator portions v2
    mfd: Add a core driver for TI TPS61050/TPS61052 chips v2
    gpio: Add Tunnel Creek support to sch_gpio
    mfd: Add Tunnel Creek support to lpc_sch
    pci_ids: Add Intel Tunnel Creek LPC Bridge device ID.
    regulator: MAX8997/8966 support
    mfd: Add WM8994 bulk register write operation
    mfd: Append additional read write on 88pm860x
    mfd: Adopt mfd_data in 88pm860x input driver
    mfd: Adopt mfd_data in 88pm860x regulator
    mfd: Adopt mfd_data in 88pm860x led
    mfd: Adopt mfd_data in 88pm860x backlight
    mfd: Fix MAX8997 Kconfig entry typos
    ...

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6: (140 commits)
    MAINTAINERS: de-orphan fbdev.
    MAINTAINERS: Add file pattern for fb dt bindings.
    video: Move sm501fb devicetree binding documentation to a better place.
    fbcon: fix situation where fbcon gets deinitialised and can't reinit.
    video, sm501: add OF binding to support SM501
    video, sm501: add edid and commandline support
    video, sm501: add I/O functions for use on powerpc
    video: Fix EDID macros H_SYNC_WIDTH and H_SYNC_OFFSET
    fbcon: Bugfix soft cursor detection in Tile Blitting
    video: add missing framebuffer_release in error path
    video: metronomefb: add __devexit_p around reference to metronomefb_remove
    video: hecubafb: add __devexit_p around reference to hecubafb_remove
    drivers:video:aty:radeon_base Fix typo occationally to occasionally
    atmel_lcdfb: add fb_blank function
    atmel_lcdfb: implement inverted contrast pwm
    video: s3c-fb: return proper error if clk_get fails
    uvesafb,vesafb: create WC or WB PAT-entries
    video: ffb: fix ffb_probe error path
    radeonfb: Let hwmon driver probe the "monid" I2C bus
    fbdev: sh_mobile_lcdc: checking NULL instead of IS_ERR()
    ...

    Linus Torvalds
     
  • * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (35 commits)
    ARM: Update (and cut down) mach-types
    ARM: 6771/1: vexpress: add support for multiple core tiles
    ARM: 6797/1: hw_breakpoint: Fix newlines in WARNings
    ARM: 6751/1: vexpress: select applicable errata workarounds in Kconfig
    ARM: 6753/1: omap4: Enable ARM local timers with OMAP4430 es1.0 exception
    ARM: 6759/1: smp: Select local timers vs broadcast timer support runtime
    ARM: pgtable: add pud-level code
    ARM: 6673/1: LPAE: use phys_addr_t instead of unsigned long for start of membanks
    ARM: Use long long format when printing meminfo physical addresses
    ARM: integrator: add Integrator/CP sched_clock support
    ARM: realview/vexpress: consolidate SMP bringup code
    ARM: realview/vexpress: consolidate localtimer support
    ARM: integrator/versatile: consolidate FPGA IRQ handling code
    ARM: rationalize versatile family Kconfig/Makefile
    ARM: realview: remove old AMBA device DMA definitions
    ARM: versatile: remove old AMBA device DMA definitions
    ARM: vexpress: use new init_early for clock tree and sched_clock init
    ARM: realview: use new init_early for clock tree and sched_clock init
    ARM: versatile: use new init_early for clock tree and sched_clock init
    ARM: integrator: use new init_early for clock tree init
    ...

    Linus Torvalds
     

23 Mar, 2011

13 commits

  • Copy 88pm860x platform data into different mfd_data structure for
    backlight driver. So move the identification of device node from
    backlight driver to mfd driver.

    Signed-off-by: Haojian Zhuang
    Signed-off-by: Samuel Ortiz

    Haojian Zhuang
     
  • This silences warnings such as

    drivers/video/tmiofb.c: In function 'tmiofb_hw_init':
    drivers/video/tmiofb.c:270: warning: initialization discards qualifiers from pointer target type

    These were added by me in commit 2a79bb1d.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     
  • Use mfd_data for passing information from mfd drivers to mfd
    clients. The mfd_cell's driver_data field is being phased out.

    Clients that were using driver_data now access .mfd_data
    via mfd_get_data(). This changes tmio-fb only; mfd drivers with
    other cells are not modified.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     
  • No need to explicitly set the cell's platform_data/data_size.

    Modify clients to use mfd_get_cell helper function instead of
    accessing platform_data directly.

    Signed-off-by: Andres Salomon
    Signed-off-by: Samuel Ortiz

    Andres Salomon
     
  • 1. simple_strto*() do not contain overflow checks and crufty,
    libc way to indicate failure.
    2. strict_strto*() also do not have overflow checks but the name and
    comments pretend they do.
    3. Both families have only "long long" and "long" variants,
    but users want strtou8()
    4. Both "simple" and "strict" prefixes are wrong:
    Simple doesn't exactly say what's so simple, strict should not exist
    because conversion should be strict by default.

    The solution is to use "k" prefix and add convertors for more types.
    Enter
    kstrtoull()
    kstrtoll()
    kstrtoul()
    kstrtol()
    kstrtouint()
    kstrtoint()

    kstrtou64()
    kstrtos64()
    kstrtou32()
    kstrtos32()
    kstrtou16()
    kstrtos16()
    kstrtou8()
    kstrtos8()

    Include runtime testsuite (somewhat incomplete) as well.

    strict_strto*() become deprecated, stubbed to kstrto*() and
    eventually will be removed altogether.

    Use kstrto*() in code today!

    Note: on some archs _kstrtoul() and _kstrtol() are left in tree, even if
    they'll be unused at runtime. This is temporarily solution,
    because I don't want to hardcode list of archs where these
    functions aren't needed. Current solution with sizeof() and
    __alignof__ at least always works.

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

    Alexey Dobriyan
     
  • In systems with multiple framebuffer devices, one of the devices might be
    blanked while another is unblanked. In order for the backlight blanking
    logic to know whether to turn off the backlight for a particular
    framebuffer's blanking notification, it needs to be able to check if a
    given framebuffer device corresponds to the backlight.

    This plumbs the check_fb hook from core backlight through the
    pwm_backlight helper to allow platform code to plug in a check_fb hook.

    Signed-off-by: Robert Morell
    Cc: Richard Purdie
    Cc: Arun Murthy
    Cc: Linus Walleij
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert Morell
     
  • The following symbols are needlessly defined global: jornada_bl_init,
    jornada_bl_exit, jornada_lcd_init, jornada_lcd_exit.

    Make them static.

    Signed-off-by: Axel Lin
    Acked-by: Kristoffer Ericson
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Axel Lin
     
  • apple_bl uses ACPI interfaces (data & code), so it should depend on ACPI.

    drivers/video/backlight/apple_bl.c:142: warning: 'struct acpi_device' declared inside parameter list
    drivers/video/backlight/apple_bl.c:142: warning: its scope is only this definition or declaration, which is probably not what you want
    drivers/video/backlight/apple_bl.c:201: warning: 'struct acpi_device' declared inside parameter list
    drivers/video/backlight/apple_bl.c:215: error: variable 'apple_bl_driver' has initializer but incomplete type
    drivers/video/backlight/apple_bl.c:216: error: unknown field 'name' specified in initializer
    ...

    Signed-off-by: Randy Dunlap
    Acked-by: Matthew Garrett
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • It works on hardware other than Macbook Pros, and it works on GPUs other
    than Nvidia. It should even work on iMacs, so change the name to match
    reality more precisely and include an alias so existing users don't get
    confused.

    Signed-off-by: Matthew Garrett
    Acked-by: Richard Purdie
    Cc: Mourad De Clerck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • The SMI-based backlight control functionality may fail to work if the
    system is running under EFI rather than BIOS. Check that the hardware
    responds as expected, and exit if it doesn't.

    Signed-off-by: Matthew Garrett
    Acked-by: Richard Purdie
    Cc: Mourad De Clerck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • This driver only has to deal with two different classes of hardware, but
    right now it needs new DMI entries for every new machine. It turns out
    that there's an ACPI device that uniquely identifies Apples with backlights,
    so this patch reworks the driver into an ACPI one, identifies the hardware
    by checking the PCI vendor of the root bridge and strips out all the DMI
    code. It also changes the config text to clarify that it works on devices
    other than Macbook Pros and GPUs other than nvidia.

    Signed-off-by: Matthew Garrett
    Acked-by: Richard Purdie
    Cc: Mourad De Clerck
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • There may be multiple ways of controlling the backlight on a given
    machine. Allow drivers to expose the type of interface they are
    providing, making it possible for userspace to make appropriate policy
    decisions.

    Signed-off-by: Matthew Garrett
    Cc: Richard Purdie
    Cc: Chris Wilson
    Cc: David Airlie
    Cc: Alex Deucher
    Cc: Ben Skeggs
    Cc: Zhang Rui
    Cc: Len Brown
    Cc: Jesse Barnes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     
  • Add a ld9040 amoled panel driver.

    Signed-off-by: Donghwa Lee
    Signed-off-by: Kyungmin Park
    Signed-off-by: Inki Dae
    Cc: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Donghwa Lee
     

22 Mar, 2011

2 commits

  • Situation as follow:
    2 GPUs + vesafb + kms.

    GPU 1 is primary, vesafb binds to it as fb0
    radeon loads
    GPU 0 loads as fb1
    GPU 1 loads, vesafb gets kicked off which causes fb0 to unbind
    console, which causes the dummy console to rebind.

    this means fbcon_deinit gets called, which calls fbcon_exit
    since the console isn't bound anymore and we set fbcon_has_exited.

    GPU 1 creates a new fb0 which is primary and we want to be console.
    fbcon_fb_registered gets called sets the primary up and calls set_con2fb_map,
    however as fbcon_has_exited is set nothing further ever happens.

    This patch bypasses the fbcon_has_exited and checks if the console is unbound,
    if its unbound it calls the fbcon_takeover which calls the vt layer to
    call the fbcon_startup method and everthing works.

    Signed-off-by: Dave Airlie
    Signed-off-by: Paul Mundt

    Dave Airlie
     
  • - add binding to OF, compatible name "smi,sm501"

    Signed-off-by: Heiko Schocher
    cc: linux-fbdev@vger.kernel.org
    cc: devicetree-discuss@ozlabs.org
    cc: Ben Dooks
    cc: Vincent Sanders
    cc: Samuel Ortiz
    cc: linux-kernel@vger.kernel.org
    cc: Randy Dunlap
    cc: Paul Mundt
    Signed-off-by: Paul Mundt

    Heiko Schocher