05 Mar, 2011

1 commit


26 Jan, 2011

2 commits

  • The -rt patches change the console_semaphore to console_mutex. As a
    result, a quite large chunk of the patches changes all
    acquire/release_console_sem() to acquire/release_console_mutex()

    This commit makes things use more neutral function names which dont make
    implications about the underlying lock.

    The only real change is the return value of console_trylock which is
    inverted from try_acquire_console_sem()

    This patch also paves the way to switching console_sem from a semaphore to
    a mutex.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: make console_trylock return 1 on success, per Geert]
    Signed-off-by: Torben Hohn
    Cc: Thomas Gleixner
    Cc: Greg KH
    Cc: Ingo Molnar
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Torben Hohn
     
  • …l/git/lethal/fbdev-2.6

    * 'fbdev-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6:
    mailmap: Add an entry for Axel Lin.
    video: fix some comments in drivers/video/console/vgacon.c
    drivers/video/bf537-lq035.c: Add missing IS_ERR test
    video: pxa168fb: remove a redundant pxa168fb_check_var call
    video: da8xx-fb: fix fb_probe error path
    video: pxa3xx-gcu: Return -EFAULT when copy_from_user() fails
    video: nuc900fb: properly free resources in nuc900fb_remove
    video: nuc900fb: fix compile error

    Linus Torvalds
     

25 Jan, 2011

4 commits

  • Now vgacon_scrollback_startup() uses slab, not bootmem,
    the comment above it is obsolete, so does __init_refok.

    Signed-off-by: WANG Cong
    Signed-off-by: Paul Mundt

    Amerigo Wang
     
  • lcd_device_register may return ERR_PTR, so a check is added for this value
    before the dereference. All of the other changes reorganize the error
    handling code in this function to avoid duplicating all of it in the added
    case.

    In the original code, in one case, the global variable fb_buffer was set to
    NULL in error code that appears after this variable is initialized. This
    is done now in all error handling code that has this property.

    The semantic match that finds this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @r@
    identifier f;
    @@
    f(...) { ... return ERR_PTR(...); }

    @@
    identifier r.f, fld;
    expression x;
    statement S1,S2;
    @@
    x = f(...)
    ... when != IS_ERR(x)
    (
    if (IS_ERR(x) ||...) S1 else S2
    |
    *x->fld
    )
    //

    Signed-off-by: Julia Lawall
    Acked-by: Mike Frysinger
    Signed-off-by: Paul Mundt

    Julia Lawall
     
  • Current implementation calls pxa168fb_check_var twice in pxa168fb_probe.

    Signed-off-by: Axel Lin
    Signed-off-by: Paul Mundt

    axel lin
     
  • Current implementation puts CONFIG_CPU_FREQ at wrong place, CONFIG_CPU_FREQ
    is for lcd_da8xx_cpufreq_deregister not for unregister_framebuffer.

    Signed-off-by: Axel Lin
    Signed-off-by: Paul Mundt

    axel lin
     

21 Jan, 2011

2 commits

  • Fix collision with kernel-supplied #define:

    drivers/video/backlight/88pm860x_bl.c:24:1: warning: "CURRENT_MASK" redefined
    arch/x86/include/asm/page_64_types.h:6:1: warning: this is the location of the previous definition

    Signed-off-by: Randy Dunlap
    Cc: Haojian Zhuang
    Cc: Richard Purdie
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • The meaning of CONFIG_EMBEDDED has long since been obsoleted; the option
    is used to configure any non-standard kernel with a much larger scope than
    only small devices.

    This patch renames the option to CONFIG_EXPERT in init/Kconfig and fixes
    references to the option throughout the kernel. A new CONFIG_EMBEDDED
    option is added that automatically selects CONFIG_EXPERT when enabled and
    can be used in the future to isolate options that should only be
    considered for embedded systems (RISC architectures, SLOB, etc).

    Calling the option "EXPERT" more accurately represents its intention: only
    expert users who understand the impact of the configuration changes they
    are making should enable it.

    Reviewed-by: Ingo Molnar
    Acked-by: David Woodhouse
    Signed-off-by: David Rientjes
    Cc: Greg KH
    Cc: "David S. Miller"
    Cc: Jens Axboe
    Cc: Arnd Bergmann
    Cc: Robin Holt
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Rientjes
     

18 Jan, 2011

3 commits

  • Return -EFAULT instead of number of bytes that could not be copied if
    copy_from_user() fails.

    Also fix a typo in the comments.

    Signed-off-by: Axel Lin
    Signed-off-by: Paul Mundt

    axel lin
     
  • Signed-off-by: Axel Lin
    Signed-off-by: Paul Mundt

    Axel Lin
     
  • This patch fixes below compile error:

    CC drivers/video/nuc900fb.o
    drivers/video/nuc900fb.c: In function 'nuc900fb_suspend':
    drivers/video/nuc900fb.c:726: error: too few arguments to function 'nuc900fb_stop_lcd'
    drivers/video/nuc900fb.c: In function 'nuc900fb_resume':
    drivers/video/nuc900fb.c:743: error: 'bfinfo' undeclared (first use in this function)
    drivers/video/nuc900fb.c:743: error: (Each undeclared identifier is reported only once
    drivers/video/nuc900fb.c:743: error: for each function it appears in.)
    make[2]: *** [drivers/video/nuc900fb.o] Error 1
    make[1]: *** [drivers/video] Error 2
    make: *** [drivers] Error 2

    Signed-off-by: Axel Lin
    Acked-by: Wan ZongShun
    Signed-off-by: Paul Mundt

    Axel Lin
     

16 Jan, 2011

1 commit

  • * 'fixes' of master.kernel.org:/home/rmk/linux-2.6-arm:
    ARM: fix missing branch in __error_a
    ARM: fix /proc/$PID/stack on SMP
    ARM: Fix build regression on SA11x0, PXA, and H720x targets
    ARM: 6625/1: use memblock memory regions for "System RAM" I/O resources
    ARM: fix wrongly patched constants
    ARM: 6624/1: fix dependency for CONFIG_SMP_ON_UP
    ARM: 6623/1: Thumb-2: Fix out-of-range offset for Thumb-2 in proc-v7.S
    ARM: 6622/1: fix dma_unmap_sg() documentation
    ARM: 6621/1: bitops: remove condition code clobber for CLZ
    ARM: 6620/1: Change misleading warning when CONFIG_CMDLINE_FORCE is used
    ARM: 6619/1: nommu: avoid mapping vectors page when !CONFIG_MMU
    ARM: sched_clock: make minsec argument to clocks_calc_mult_shift() zero
    ARM: sched_clock: allow init_sched_clock() to be called early
    ARM: integrator: fix compile warning in cpu.c
    ARM: 6616/1: Fix ep93xx-fb init/exit annotations
    ARM: twd: fix display of twd frequency
    ARM: udelay: prevent math rounding resulting in short udelays

    Linus Torvalds
     

14 Jan, 2011

8 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6: (29 commits)
    video: move SH_MIPI_DSI/SH_LCD_MIPI_DSI to the top of menu
    fbdev: Implement simple blanking in pseudocolor modes for vt8500lcdfb
    video: imx: Update the manufacturer's name
    nuc900fb: don't treat NULL clk as an error
    s3c2410fb: don't treat NULL clk as an error
    video: tidy up modedb formatting.
    video: matroxfb: Correct video option in comments and kernel config help.
    fbdev: sh_mobile_hdmi: simplify pointer handling
    fbdev: sh_mobile_hdmi: framebuffer notifiers have to be registered
    fbdev: sh_mobile_hdmi: add command line option to use the preferred EDID mode
    OMAP: DSS2: Introduce omap_channel as an omap_dss_device parameter, add new overlay manager.
    OMAP: DSS2: Use dss_features to handle DISPC bits removed on OMAP4
    OMAP: DSS2: LCD2 Channel Changes for DISPC
    OMAP: DSS2: Change remaining DISPC functions for new omap_channel argument
    OMAP: DSS2: Introduce omap_channel argument to DISPC functions used by interface drivers
    OMAP: DSS2: Represent DISPC register defines with channel as parameter
    OMAP: DSS2: Add dss_features for omap4 and overlay manager related features
    OMAP: DSS2: Clean up DISPC color mode validation checks
    OMAP: DSS2: Add back authors of panel-generic.c based drivers
    OMAP: DSS2: remove generic DPI panel driver duplicated panel drivers
    ...

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6: (348 commits)
    ALSA: hda - Fix NULL-derefence with a single mic in STAC auto-mic detection
    ALSA: hda - Add missing NID 0x19 fixup for Sony VAIO
    ALSA: hda - Fix ALC275 enable hardware EQ for SONY VAIO
    ALSA: oxygen: fix Xonar DG input
    ALSA: hda - Fix EAPD on Lenovo NB ALC269 to low
    ALSA: hda - Fix missing EAPD for Acer 4930G
    ALSA: hda: Disable 4/6 channels on some NVIDIA GPUs.
    ALSA: hda - Add static_hdmi_pcm option to HDMI codec parser
    ALSA: hda - Don't refer ELD when unplugged
    ASoC: tpa6130a2: Fix compiler warning
    ASoC: tlv320dac33: Add DAPM selection for LOM invert
    ASoC: DMIC codec: Adding a generic DMIC codec
    ALSA: snd-usb-us122l: Fix missing NULL checks
    ALSA: snd-usb-us122l: Fix MIDI output
    ASoC: soc-cache: Fix invalid memory access during snd_soc_lzo_cache_sync()
    ASoC: Fix section mismatch in wm8995.c
    ALSA: oxygen: add S/PDIF source selection for Claro cards
    ALSA: oxygen: fix CD/MIDI for X-Meridian (2G)
    ASoC: fix migor audio build
    ALSA: include delay.h for msleep in Xonar DG support
    ...

    Linus Torvalds
     
  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    Documentation/trace/events.txt: Remove obsolete sched_signal_send.
    writeback: fix global_dirty_limits comment runtime -> real-time
    ppc: fix comment typo singal -> signal
    drivers: fix comment typo diable -> disable.
    m68k: fix comment typo diable -> disable.
    wireless: comment typo fix diable -> disable.
    media: comment typo fix diable -> disable.
    remove doc for obsolete dynamic-printk kernel-parameter
    remove extraneous 'is' from Documentation/iostats.txt
    Fix spelling milisec -> ms in snd_ps3 module parameter description
    Fix spelling mistakes in comments
    Revert conflicting V4L changes
    i7core_edac: fix typos in comments
    mm/rmap.c: fix comment
    sound, ca0106: Fix assignment to 'channel'.
    hrtimer: fix a typo in comment
    init/Kconfig: fix typo
    anon_inodes: fix wrong function name in comment
    fix comment typos concerning "consistent"
    poll: fix a typo in comment
    ...

    Fix up trivial conflicts in:
    - drivers/net/wireless/iwlwifi/iwl-core.c (moved to iwl-legacy.c)
    - fs/ext4/ext4.h

    Also fix missed 'diabled' typo in drivers/net/bnx2x/bnx2x.h while at it.

    Linus Torvalds
     
  • It seems there is a small problem of VGA palette corruption on EFI
    machine. When the kernel initializes the architecture, it checks if the
    machine is a EFI machine and assumes that a VGA console can exist.

    When it initializes the console in vgacon_startup it checks if it can
    really use the VGA console. I think this is where a check is missing.
    Currently, the function can fail if a VESA boot mode is detected but not if
    a EFI boot mode was used.

    Thus vgacon_startup() doesn't fail and initialize the video card for a real
    VGA mode. This function changes the first 16entries of the VGA palette.

    When the efifb driver kicks in, the palette is not restored to default
    ramp value, thus the 16 first entry remain in a modified state. The
    following patch prevent this corruption.

    Signed-off-by: Yannick Heneault
    Cc: Dave Airlie
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Yannick Heneault
     
  • The reset command is part of the init sequence and it take effect
    only if the lcd is powered.

    The effect of the bug was that the sequence:
    set lcd power_state to FB_BLANK_POWERDOWN
    set lcd power_state to FB_BLANK_UNBLANK
    Did not produced a complete reboot of the LCD which was showing fuzzy
    colours.

    This was not experienced before implementing correctly all the LCD power
    states with the patch [1]. Since before the patch [1] the regulators were
    not touched and the LCD shutdown was reached with a register write. After
    the patch [1] a complete boot sequence with an initial reset is needed for
    the display every time the LCD is powered up.

    drivers-video-backlight-l4f00242t03c-full-implement-fb-power-states-for-this-lcd.patch

    Signed-off-by: Alberto Panizzo
    Cc: Richard Purdie
    Cc: Marek Vasut
    Cc: Tejun Heo
    Cc: Axel Lin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Panizzo
     
  • Otherwise a double call to:
    $ echo 4 > /sys/class/lcd/l4f00242t03/lcd_power
    Will, the first power down the lcd and regulators correctly and the
    second produce an unbalanced call to regulator disable.

    Signed-off-by: Alberto Panizzo
    Cc: Richard Purdie
    Cc: Marek Vasut
    Cc: Tejun Heo
    Cc: Axel Lin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Panizzo
     
  • Complete the support of fb power states managing correctly the regulators
    bound to this driver.

    Signed-off-by: Alberto Panizzo
    Cc: Richard Purdie
    Cc: Marek Vasut
    Cc: Tejun Heo
    Cc: Axel Lin
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Panizzo
     
  • Fixes sparse warning:
    drivers/video/backlight/l4f00242t03.c:28:21: error: dubious one-bit signed bitfield

    Signed-off-by: Mariusz Kozlowski
    Acked-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mariusz Kozlowski
     

13 Jan, 2011

3 commits


12 Jan, 2011

4 commits

  • i.MX processors are currently manufactured by Freescale, not Motorola.

    Make the manufacturer's name consistent.

    Signed-off-by: Fabio Estevam
    Signed-off-by: Paul Mundt

    Fabio Estevam
     
  • clk_get() returns a struct clk cookie to the driver and some platforms
    may return NULL if they only support a single clock. clk_get() has only
    failed if it returns a ERR_PTR() encoded pointer.

    Cc: linux-fbdev@vger.kernel.org
    Signed-off-by: Jamie Iles
    Acked-by: Wan ZongShun
    Signed-off-by: Paul Mundt

    Jamie Iles
     
  • clk_get() returns a struct clk cookie to the driver and some platforms
    may return NULL if they only support a single clock. clk_get() has only
    failed if it returns a ERR_PTR() encoded pointer.

    Cc: Vincent Sanders
    Cc: linux-fbdev@vger.kernel.org
    Signed-off-by: Jamie Iles
    Signed-off-by: Paul Mundt

    Jamie Iles
     
  • A part of file: drivers/video/modedb.c was not as per the coding guidelines.

    The cleanup includes:
    1) Converting spcaes to tabs
    2) Adding spaces on either sides of "|" operator

    Signed-off-by: Mayuresh Janorkar
    Signed-off-by: Paul Mundt

    Mayuresh Janorkar
     

11 Jan, 2011

8 commits

  • Fix section mismatch errors in the ep93xx-fb driver resulting from
    incorrect init/exit annotations.

    Reported-by: H Hartley Sweeten
    Signed-off-by: Ryan Mallon
    Tested-by: H Hartley Sweeten
    Signed-off-by: Russell King

    Ryan Mallon
     
  • Configuring the kernel I found that the Matrox frame buffer help has a
    different option than the one in the docs (Documentation/fb/matroxfb.txt).
    I decided to check the source code to see what is the correct option.
    drivers/video/matrox/matroxfb_base.c has a lot of comments that sugests
    that the video option is "matrox".
    However in line 2452 of this same file you have:
    fb_get_options("matroxfb", &option)

    video=matroxfb:XXX is the correct video option not video=matrox:XXX.

    Signed-off-by: Vicente Jimenez Aguilar
    Signed-off-by: Paul Mundt

    Vicente Jiménez
     
  • Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Paul Mundt

    Guennadi Liakhovetski
     
  • A previous patch added a framebuffer notifier to sh_mobile_hdmi.c,
    but did not register it with the framebuffer core. This patch adds
    such a registration and moves the notifier block into dynamically
    allocated per-device private data.

    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Paul Mundt

    Guennadi Liakhovetski
     
  • Currently, if no command-line option is specified, the sh_mobile_hdmi
    will use the default 720p video mode. If a command line option of the
    form "video=sh_mobile_lcdc:x@" is provided,
    the driver will look for that mode among those, available in the
    monitor EDID. This patch adds the ability to request the driver to
    use monitor's preferred mode by specifying 0 as width and hight in
    the above string. If that mode is not supported by the system, the
    driver will continue scanning through EDID modes, until it finds a
    suitable one.

    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Paul Mundt

    Guennadi Liakhovetski
     
  • Paul Mundt
     
  • * 'staging-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (510 commits)
    staging: speakup: fix failure handling
    staging: usbip: remove double giveback of URB
    Staging: batman-adv: Remove batman-adv from staging
    Staging: hv: Use only one txf buffer per channel and kmalloc/GFP_KERNEL on initialize
    staging: hv: remove unneeded osd_schedule_callback
    staging: hv: convert channel_mgmt.c to not call osd_schedule_callback
    staging: hv: convert vmbus_on_msg_dpc to not call osd_schedule_callback
    staging: brcm80211: Fix WL_ logging macros
    Staging: IIO: DDS: AD9833 / AD9834 driver
    Staging: IIO: dds.h convenience macros
    Staging: IIO: Direct digital synthesis abi documentation
    staging: brcm80211: Convert ETHER_TYPE_802_1X to ETH_P_PAE
    staging: brcm80211: Remove unused ETHER_TYPE_ #defines
    staging: brcm80211: Remove ETHER_HDR_LEN, use ETH_HLEN
    staging: brcm80211: Convert ETHER_ADDR_LEN to ETH_ALEN
    staging: brcm80211: Convert ETHER_IS to is__ether_addr
    staging: brcm80211: Remove unused ether_ #defines and struct
    staging: brcm80211: Convert ETHER_IS_MULTI to is_multicast_ether_addr
    staging: brcm80211: Remove unused #defines ETHER__LOCALADDR
    Staging: comedi: Fix checkpatch.pl issues in file s526.c
    ...

    Fix up trivial conflict in drivers/video/udlfb.c

    Linus Torvalds
     
  • * 'stable/bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
    xen/event: validate irq before get evtchn by irq
    xen/fb: fix potential memory leak
    xen/fb: fix xenfb suspend/resume race.
    xen: disable ACPI NUMA for PV guests
    xen/irq: Cleanup the find_unbound_irq

    Linus Torvalds
     

10 Jan, 2011

4 commits

  • This patch fixes a potential memory leak when xenfb connect to
    the backend fails.

    Thanks for Ian's review and comments.

    [v2: reworded the commit message a bit]

    Signed-off-by: Konrad Rzeszutek Wilk
    Signed-off-by: Joe Jin
    Tested-by: Gurudas Pai
    Acked-by: Ian Campbell
    Cc: Jeremy Fitzhardinge
    Cc: Andrew Morton

    Joe Jin
     
  • When migrating guests over a long period we hit this:

    BUG: unable to handle kernel paging request at 0000000b819fdb98
    IP: [] notify_remote_via_irq+0x13/0x34
    PGD 94b10067 PUD 0
    Oops: 0000 [#1] SMP
    .. snip..
    Call Trace:
    [] xenfb_send_event+0x5c/0x5e
    [] ? xen_restore_fl_direct_end+0x0/0x1
    [] ? _spin_unlock_irqrestore+0x16/0x18
    [] xenfb_refresh+0x1b1/0x1d7
    [] ? sys_imageblit+0x1ac/0x458
    [] xenfb_imageblit+0x2f/0x34
    [] soft_cursor+0x1b5/0x1c8
    [] bit_cursor+0x4b6/0x4d7
    [] ? xen_restore_fl_direct_end+0x0/0x1
    [] ? _spin_unlock_irqrestore+0x16/0x18
    [] ? bit_cursor+0x0/0x4d7
    [] fb_flashcursor+0xff/0x111
    [] ? fb_flashcursor+0x0/0x111
    [] worker_thread+0x14d/0x1ed
    [] ? autoremove_wake_function+0x0/0x3d
    [] ? _spin_unlock_irqrestore+0x16/0x18
    [] ? worker_thread+0x0/0x1ed
    [] kthread+0x6e/0x76
    [] child_rip+0xa/0x20
    [] ? int_ret_from_sys_call+0x7/0x1b
    [] ? retint_restore_args+0x5/0x6
    [] ? child_rip+0x0/0x20
    Code: 6b ff 0c 8b 87 a4 db 9f 81 66 85 c0 74 08 0f b7 f8 e8 3b ff ff ff c9
    c3 55 48 89 e5 48 83 ec 10 0f 1f 44 00 00 89 ff 48 6b ff 0c 87 a4 db 9f
    81 66 85 c0 74 14 48 8d 75 f0 0f b7 c0 bf 04 00
    RIP [] notify_remote_via_irq+0x13/0x34
    RSP
    CR2: 0000000b819fdb98
    ---[ end trace 098b4b74827595d0 ]---

    The root cause of the panic is the race between the resume and reconnect to the backend.

    Clearing the 'update_wanted' flag of xenfb before disconnecting from the
    backend fixes this issue.

    Signed-off-by: Joe Jin
    Signed-off-by: Konrad Rzeszutek Wilk
    Tested-by: Gurudas Pai
    Acked-by: Ian Campbell
    Cc: Jeremy Fitzhardinge
    Cc: Andrew Morton

    Joe Jin
     
  • A panel connects to one of the overlay managers of DSS through some interface block.
    On OMAP4, specifying the type of the display is not sufficient to conclude which manager
    the panel should be connected to.
    Hence, a new member 'channel' is introduced in omap_dss_device structure to determine
    which manager the panel uses. The dss_recheck_connections() called in dss_driver_probe()
    uses this channel parameter to set the correct manager to the corresponding omap_dss_device.

    The channel parameter is used only once to ensure the correct managers are set for each
    panel. The parameter dssdev->manager->id will take care of ensuring that the panel and
    then the interface driver configures the correct DISPC channel.

    Also, add a new Overlay Manager in manager.c, make other changes needed for LCD2 channel.

    Signed-off-by: Sumit Semwal
    Signed-off-by: Mukund Mittal
    Signed-off-by: Samreen
    Signed-off-by: Tomi Valkeinen

    Sumit Semwal
     
  • DISPC_CONFIG bits LCDENABLEPOL, LCDENABLESIGNAL, PCKFREEENABLE and FUNCGATED
    have been removed from OMAP4, use dss_features to handle them correctly.

    Signed-off-by: Archit Taneja
    Signed-off-by: Tomi Valkeinen

    Archit Taneja