17 Jun, 2009

40 commits

  • Pekka Enberg
     
  • * 'next-i2c' of git://aeryn.fluff.org.uk/bjdooks/linux:
    i2c-stu300: Make driver depend on MACH_U300
    i2c-s3c2410: use resource_size()
    i2c: Use resource_size macro
    i2c: ST DDC I2C U300 bus driver v3
    i2c-bfin-twi: pull in io.h for ioremap()

    Linus Torvalds
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/radeon: switch to using late_initcall
    radeon legacy chips: tv dac bg/dac adj updates
    drm/radeon: introduce kernel modesetting for radeon hardware
    drm: Add the TTM GPU memory manager subsystem.
    drm: Memory fragmentation from lost alignment blocks
    drm/radeon: fix mobility flags on new PCI IDs.

    Linus Torvalds
     
  • Authentication error abort codes should be translated to appropriate
    Linux error codes, rather than all being translated to EREMOTEIO - which
    indicates that the server had internal problems.

    Additionally, a server shouldn't be marked unavailable and the next
    server tried if an authentication error occurs. This will quickly make
    all the servers unavailable to the client. Instead the error should be
    returned straight to the user.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • Connections that have seen a connection-level abort should not be reused
    as the far end will just abort them again; instead a new connection
    should be made.

    Connection-level aborts occur due to such things as authentication
    failures.

    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    David Howells
     
  • * 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6: (425 commits)
    V4L/DVB (11870): gspca - main: VIDIOC_ENUM_FRAMESIZES ioctl added.
    V4L/DVB (12004): poll method lose race condition
    V4L/DVB (11894): flexcop-pci: dmesg visible names broken
    V4L/DVB (11892): Siano: smsendian - declare function as extern
    V4L/DVB (11891): Siano: smscore - bind the GPIO SMS protocol
    V4L/DVB (11890): Siano: smscore - remove redundant code
    V4L/DVB (11889): Siano: smsdvb - add DVB v3 events
    V4L/DVB (11888): Siano: smsusb - remove redundant ifdef
    V4L/DVB (11887): Siano: smscards - add board (target) events
    V4L/DVB (11886): Siano: smscore - fix some new GPIO definitions names
    V4L/DVB (11885): Siano: Add new GPIO management interface
    V4L/DVB (11884): Siano: smssdio - revert to stand alone module
    V4L/DVB (11883): Siano: cards - add two additional (USB) devices
    V4L/DVB (11824): Siano: smsusb - change exit func debug msg
    V4L/DVB (11823): Siano: smsusb - fix typo in module description
    V4L/DVB (11822): Siano: smscore - bug fix at get_device_mode
    V4L/DVB (11821): Siano: smscore - fix isdb-t firmware name
    V4L/DVB (11820): Siano: smscore - fix byte ordering bug
    V4L/DVB (11819): Siano: smscore - fix get_common_buffer bug
    V4L/DVB (11818): Siano: smscards - assign gpio to HPG targets
    ...

    Linus Torvalds
     
  • Some architectures need to initialize SLAB caches to be able
    to allocate page tables. They do that from pgtable_cache_init()
    so the later should be called earlier now, best is before
    vmalloc_init().

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • * akpm: (182 commits)
    fbdev: bf54x-lq043fb: use kzalloc over kmalloc/memset
    fbdev: *bfin*: fix __dev{init,exit} markings
    fbdev: *bfin*: drop unnecessary calls to memset
    fbdev: bfin-t350mcqb-fb: drop unused local variables
    fbdev: blackfin has __raw I/O accessors, so use them in fb.h
    fbdev: s1d13xxxfb: add accelerated bitblt functions
    tcx: use standard fields for framebuffer physical address and length
    fbdev: add support for handoff from firmware to hw framebuffers
    intelfb: fix a bug when changing video timing
    fbdev: use framebuffer_release() for freeing fb_info structures
    radeon: P2G2CLK_ALWAYS_ONb tested twice, should 2nd be P2G2CLK_DAC_ALWAYS_ONb?
    s3c-fb: CPUFREQ frequency scaling support
    s3c-fb: fix resource releasing on error during probing
    carminefb: fix possible access beyond end of carmine_modedb[]
    acornfb: remove fb_mmap function
    mb862xxfb: use CONFIG_OF instead of CONFIG_PPC_OF
    mb862xxfb: restrict compliation of platform driver to PPC
    Samsung SoC Framebuffer driver: add Alpha Channel support
    atmel-lcdc: fix pixclock upper bound detection
    offb: use framebuffer_alloc() to allocate fb_info struct
    ...

    Manually fix up conflicts due to kmemcheck in mm/slab.c

    Linus Torvalds
     
  • Signed-off-by: Mike Frysinger
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • The remove member of the platform_driver bfin_t350mcqb_driver should use
    __devexit_p() to refer to the remove function, and that function should
    get __devexit markings. Likewise, the probe function should be marked
    with __devinit and not __init.

    Also, module_init() functions should be marked with __init rather than
    __devinit.

    Signed-off-by: Mike Frysinger
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • The dma_alloc_* functions sets the memory to 0 before returning so there
    is no need to call memset after the allocation. Also no point in clearing
    the memory when disabling the buffer.

    Signed-off-by: Vivek Kutal
    Signed-off-by: Mike Frysinger
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Vivek Kutal
     
  • The local fbinfo/info vars in the suspend functions don't actually get
    used which cause ugly gcc warnings, so drop them.

    Signed-off-by: Mike Frysinger
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Signed-off-by: Mike Frysinger
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     
  • Add accelerated bitblt functions to s1d13xxx based video chipsets, more
    specificly functions copyarea and fillrect.

    It has only been tested and activated for 13506 chipsets but is expected
    to work for the majority of s1d13xxx based chips. This patch also cleans
    up the driver with respect of whitespaces and other formatting issues. We
    update the current status comments.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Kristoffer Ericson
    Cc: Russell King
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kristoffer Ericson
     
  • Use standard fields fbinfo.fix.smem_start and fbinfo.fix.smem_len for
    physical address and length of framebuffer.

    This also fixes output of the 'fbset -i' command - address and length of
    the framebuffer are displayed correctly.

    Signed-off-by: Krzysztof Helt
    Acked-by: David S. Miller
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • With KMS we have ran into an issue where we really want the KMS fb driver
    to be the one running the console, so panics etc can be shown by switching
    out of X etc.

    However with vesafb/efifb built-in, we end up with those on fb0 and the
    KMS fb driver on fb1, driving the same piece of hw, so this adds an fb
    info flag to denote a firmware fbdev, and adds a new aperture base/size
    range which can be compared when the hw drivers are installed to see if
    there is a conflict with a firmware driver, and if there is the firmware
    driver is unregistered and the hw driver takes over.

    It uses new aperture_base/size members instead of comparing on the fix
    smem_start/length, as smem_start/length might for example only cover the
    first 1MB of the PCI aperture, and we could allocate the kms fb from 8MB
    into the aperture, thus they would never overlap.

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Dave Airlie
    Acked-by: Peter Jones
    Cc: Geert Uytterhoeven
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Airlie
     
  • When changing video timing dynamically via fbset the screen sporadically
    is rendered black.

    With the attached fix which disables VCO prior to timing register change
    the problem disappears.

    I had a look at the Xserver register setup code. Here the VCO is
    disabled in the same way [1].

    This patch is taken from vga-sync-field version 0.0.11 [2][3].

    [1] http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/i830_=
    driver.c
    [2] http://lowbyte.de/vga-sync-fields/vga-sync-fields-0.0.11.tgz
    [3] http://easy-vdr.de/git?p=frc.git/.git;a=commit;h=dcc3b863e5a663652587619c357bd20075af6896
    2587619c357bd20075af6896

    Signed-off-by: Thomas Hilber
    Signed-off-by: Paul Menzel
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menzel
     
  • Use the framebuffer_release() for freeing fb_info structures allocated
    with framebuffer_alloc().

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

    Krzysztof Helt
     
  • P2G2CLK_ALWAYS_ONb is tested twice, 2nd should be P2G2CLK_DAC_ALWAYS_ONb.

    [akpm@linux-foundation.org: remove duplicated bitwise-OR of PIXCLKS_CNTL__R300_P2G2CLK_ALWAYS_ONb too]
    Signed-off-by: Roel Kluin
    Acked-by: Benjamin Herrenschmidt
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • Add support for CPU frequency scaling in the S3C24XX video driver.

    Signed-off-by: Simtec Linux Team
    Signed-off-by: Ben Dooks
    Cc: Dave Jones
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Dooks
     
  • All resources are released in s3c_fb_win_release so remove other places of
    resources releasing. Add releasing of an allocated fb_info structure as
    well.

    Signed-off-by: Krzysztof Helt
    Cc: Kyungmin Park
    Cc: Marek Szyprowski
    Cc: Ben Dooks

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

    Krzysztof Helt
     
  • This check is off-by-one.

    Signed-off-by: Roel Kluin
    Cc: Sebastian Siewior
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Roel Kluin
     
  • The driver's fb_mmap function is essentially the same as a generic fb_mmap
    function. Delete driver's function and use the generic one.

    A difference is that generic function marks frame buffer memory as VM_IO |
    VM_RESERVED. The driver's function marks it as VM_IO only.

    Signed-off-by: Krzysztof Helt
    Cc: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • With this change, the driver builds fine on Microblaze, which helps
    allyesconfig compile tests.

    I did not test sparc, but the change should have the same effect there.

    Signed-off-by: Arnd Bergmann
    Acked-by: Anatolij Gustschin
    Tested-by: Anatolij Gustschin
    Cc: "David S. Miller"
    Cc: Michal Simek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arnd Bergmann
     
  • The OpenFirmware part of this driver is uncompilable on SPARC due to it's
    dependance on several PPC specific functions.

    Restricting this to PPC to prevent these build errors:
    CC drivers/video/mb862xx/mb862xxfb.o
    drivers/video/mb862xx/mb862xxfb.c: In function 'of_platform_mb862xx_probe':
    drivers/video/mb862xx/mb862xxfb.c:559: error: implicit declaration of function 'of_address_to_resource'
    drivers/video/mb862xx/mb862xxfb.c:575: error: 'NO_IRQ' undeclared (first use in this function)
    drivers/video/mb862xx/mb862xxfb.c:575: error: (Each undeclared identifier is reported only once
    drivers/video/mb862xx/mb862xxfb.c:575: error: for each function it appears in.)

    This was found using randconfig builds.

    Signed-off-by: Julian Calaby
    Signed-off-by: Anatolij Gustschin
    Cc: Arnd Bergmann
    Cc: Anatolij Gustschin
    Cc: "David S. Miller"
    Cc: Michal Simek
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Julian Calaby
     
  • Add support for the ARGB1888 and ARGB4888 hardware to the Samsung SoC
    Framebuffer driver (s3c-fb.c).

    ARGB1888 and ARGB4888 is decided by var->transp.length and this variable
    is set by s3c_fb_check_var().

    In s3c_fb_check_var(), if var->vits_per_pixel is 25 or 28, then
    var->transp.length would be 1 or 3.

    Therefore alpha mode(ARGB1888 or ARGB4888) could be decided through that
    variable.

    For using alpha mode, you need to set the following: This code should be
    added to your machine code as platform data.

    static struct s3c_fb_pd_win xxx_fb_win0 = {
    /* this is to ensure we use win0 */
    .win_mode = {
    .pixclock = (8+8+8+240)*(38+4+38+400),
    .left_margin = 8,
    .right_margin = 8,
    .upper_margin = 38,
    .lower_margin = 38,
    .hsync_len = 8,
    .vsync_len = 4,
    .xres = 240,
    .yres = 400,
    },
    .max_bpp = 32,
    .default_bpp = 24,
    };

    static struct s3c_fb_pd_win xxx_fb_win1 = {
    .win_mode = {
    .pixclock = (8+8+8+240)*(38+4+38+400),
    .left_margin = 8,
    .right_margin = 8,
    .upper_margin = 38,
    .lower_margin = 38,
    .hsync_len = 8,
    .vsync_len = 4,
    .xres = 240,
    .yres = 400,
    },
    .max_bpp = 32,
    .default_bpp = 28,
    };

    static struct s3c_fb_platdata xxx_lcd_pdata __initdata = {
    .win[0] = &ncp_fb_win0,
    .win[1] = &ncp_fb_win1,
    .vidcon0 = VIDCON0_VIDOUT_RGB | VIDCON0_PNRMODE_RGB,
    .vidcon1 = VIDCON1_INV_HSYNC | VIDCON1_INV_VSYNC,
    .setup_gpio = xxx_fb_gpio_setup,
    };

    s3c_fb_set_platdata(&xxx_lcd_pdata);

    The above code sets pixelformat for window0 layer to RGB888 and window1
    layer to ARGB4888.

    Signed-off-by: InKi Dae
    Cc: Ben Dooks
    Cc: Kyungmin Park
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    InKi Dae
     
  • AFAICT the code which checks that the requested pixclock value is within
    bounds is incorrect. It ensures that the lcdc core clock is at least
    (bytes per pixel) times higher than the pixel clock rather than just
    greater than or equal to.

    There are tighter restrictions on the pixclock value as a function of bus
    width for STN panels but even then it isn't a simple relationship as
    currently checked for. IMO either something like the below patch should
    be applied or else more detailed checking logic should be implemented
    which takes in to account the panel type as well.

    Signed-off-by: Ben Nizette
    Acked-by: Nicolas Ferre
    Cc: Haavard Skinnemoen
    Cc: Daniel Glockner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ben Nizette
     
  • Use the framebuffer_alloc() function to allocate the fb_info structure so
    the structure is correctly initialized after allocation.

    Signed-off-by: Krzysztof Helt
    Cc: Geert Uytterhoeven
    Acked-by: Benjamin Herrenschmidt
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Use the framebuffer_alloc() function to allocate the fb_info
    structure so the structure is correctly initialized after allocation.

    Signed-off-by: Krzysztof Helt
    Cc: Geert Uytterhoeven
    Cc: "David S. Miller"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • The removed assignment is done inside the framebuffer_alloc() earlier.

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

    Krzysztof Helt
     
  • Signed-off-by: Paul Menzel
    Cc: Gerd Knorr
    Cc: Nico Schmoigl
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menzel
     
  • This patch was taken from vga-sync-field version 0.0.3 [1][2].

    [1] http://lowbyte.de/vga-sync-fields/vga-sync-fields-0.0.3.tgz
    [2] http://git.hellersdorfer-jugendchor.de/?p=3Dvga2scart.git;a=3Dcommit;h=
    =3Dc5c8ed6c51fc9879dbf38d8b91d5db6f4300ea03

    Signed-off-by: Thomas Hilber
    Signed-off-by: Paul Menzel
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Menzel
     
  • Now we have __initconst, we can finally move the external declarations for
    the various Linux logo structures to .

    James' ack dates back to the previous submission (way to long ago), when the
    logos were still __initdata, which caused failures on some platforms with some
    toolchain versions.

    Signed-off-by: Geert Uytterhoeven
    Acked-by: James Simmons
    Cc: Krzysztof Helt
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Geert Uytterhoeven
     
  • The generated logo sources are not automatically regenerated if
    scripts/pnmtologo.c has changed. Add the missing dependency to fix this.

    Signed-off-by: Sam Ravnborg
    Tested-by: Geert Uytterhoeven
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • The LIS302DL accelerometer chip has a 'click' feature which can be used to
    detect sudden motion on any of the three axis. Configuration data is
    passed via spi platform_data and no action is taken if that's not
    specified, so it won't harm any existing platform.

    To make the configuration effective, the IRQ lines need to be set up
    appropriately. This patch also adds a way to do that from board support
    code.

    The DD_* definitions were factored out to an own enum because they are
    specific to LIS3LV02D devices.

    Signed-off-by: Daniel Mack
    Acked-by: Pavel Machek
    Acked-by: Eric Piel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Daniel Mack
     
  • Separate the 6710 and 6715, and set the right axis information for the
    6715.
    Reported-by: Isaac702

    Add the 6930.
    Reported-by: Christian Weidle

    Add the 2710.
    Reported-by: Pavel Herrmann

    Signed-off-by: Eric Piel
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Piel
     
  • Now that there is no need to hookup on the open/close of the joystick,
    it's possible to use the simplified interface input_polled_device, instead
    of creating our own kthread.

    [randy.dunlap@oracle.com: fix Kconfig]
    [randy.dunlap@oracle.com: fix Kconfig some more]
    Signed-off-by: Eric Piel
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Piel
     
  • After measurement on my laptop, it seems that turning off the device does
    not bring any energy saving (within 0.1W precision). So let's keep the
    device always on. It simplifies the code, and it avoids the problem of
    reading a wrong value sometimes just after turning the device on.

    Moreover, since commit ef2cfc790bf5f0ff189b01eabc0f4feb5e8524df had been
    too zealous, the device was actually never turned off anyway. This patch
    also restores the damages done by this commit concerning the
    initialisation/poweroff.

    Also do more clean up with the usage of the lis3_dev global variable.

    Signed-off-by: Eric Piel
    Signed-off-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Piel
     
  • Can only unregister the misc device if it was registered before. Also
    remove debugging messages, which in addition were not properly formated.

    Signed-off-by: Eric Piel
    Acked-by: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric Piel
     
  • Furthermore, notice that the initial checks:

    if (!node->rb_left)
    child = node->rb_right;
    else if (!node->rb_right)
    child = node->rb_left;
    else
    {
    ...
    }
    guarantee that old->rb_right is set in the final else branch, therefore
    we can omit checking that again.

    Signed-off-by: Wolfram Strepp
    Signed-off-by: Peter Zijlstra
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfram Strepp