1. 25 May, 2010 40 commits
    • Tejun Heo's avatar
      libata: implement dump_id force param · 43c9c591
      Tejun Heo authored
      Add dump_id libata.force parameter.  If specified, libata dumps full
      IDENTIFY data during device configuration.  This is to aid debugging.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Cc: Larry Baker <baker@usgs.gov>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      43c9c591
    • Tejun Heo's avatar
      libata: disable ATAPI AN by default · e7ecd435
      Tejun Heo authored
      There are ATAPI devices which raise AN when hit by commands issued by
      open().  This leads to infinite loop of AN -> MEDIA_CHANGE uevent ->
      udev open() to check media -> AN.
      
      Both ACS and SerialATA standards don't define in which case ATAPI
      devices are supposed to raise or not raise AN.  They both list media
      insertion event as a possible use case for ATAPI ANs but there is no
      clear description of what constitutes such events.  As such, it seems
      a bit too naive to export ANs directly to userland as MEDIA_CHANGE
      events without further verification (which should behave similarly to
      windows as it apparently is the only thing that some hardware vendors
      are testing against).
      
      This patch adds libata.atapi_an module parameter and disables ATAPI AN
      by default for now.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Cc: Nick Bowler <nbowler@elliptictech.com>
      Cc: David Zeuthen <david@fubar.dk>
      Cc: stable@kernel.org
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      e7ecd435
    • Tejun Heo's avatar
      libata-sff: make BMDMA optional · 9a7780c9
      Tejun Heo authored
      Make BMDMA optional depending on new config variable CONFIG_ATA_BMDMA.
      In Kconfig, drivers are grouped into five groups - non-SFF native, SFF
      w/ custom DMA interface, SFF w/ BMDMA, PIO-only SFF, and generic
      fallback / legacy ones.  Kconfig and Makefile are reorganized
      according to the groups and ordered alphabetically inside each group.
      
      ata_ioports.bmdma_addr and ata_port.bmdma_prd[_dma] are put into
      CONFIG_ATA_BMDMA, as are all bmdma related ops, variables and
      functions.
      
      This increase the binary size slightly when BMDMA is enabled but on
      both native-only and PIO-only configurations the size is slightly
      reduced.  Either way, the size difference is insignificant.  This
      change is more meaningful to signify the separation between SFF and
      BMDMA and as a tool to verify the separation.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      9a7780c9
    • Tejun Heo's avatar
      libata-sff: kill dummy BMDMA ops from sata_qstor and pata_octeon_cf · d6b0de8c
      Tejun Heo authored
      Now that SFF and BMDMA are completely separate, sata_qstor and
      pata_octeon_cf which inherit from ata_sff_port_ops don't need to worry
      about BMDMA ops being called.  Kill the dummy BMDMA ops.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      d6b0de8c
    • Tejun Heo's avatar
      libata-sff: separate out BMDMA init · 1c5afdf7
      Tejun Heo authored
      Separate out ata_pci_bmdma_prepare_host() and ata_pci_bmdma_init_one()
      from their SFF counterparts.  SFF ones no longer try to initialize
      BMDMA or set PCI master.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      1c5afdf7
    • Tejun Heo's avatar
      libata-sff: separate out BMDMA irq handler · c3b28894
      Tejun Heo authored
      Separate out BMDMA irq handler from SFF irq handler.  The misnamed
      host_intr() functions are renamed to ata_sff_port_intr() and
      ata_bmdma_port_intr().  Common parts are factored into
      __ata_sff_port_intr() and __ata_sff_interrupt() and used by sff and
      bmdma interrupt routines.
      
      All BMDMA drivers now use ata_bmdma_interrupt() or
      ata_bmdma_port_intr() while all non-BMDMA SFF ones use
      ata_sff_interrupt() or ata_sff_port_intr().
      
      For now, ata_pci_sff_init_one() uses ata_bmdma_interrupt() as it's
      used by both SFF and BMDMA drivers.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      c3b28894
    • Tejun Heo's avatar
      libata-sff: ata_sff_irq_clear() is BMDMA specific · 37f65b8b
      Tejun Heo authored
      ata_sff_irq_clear() is BMDMA specific.  Rename it to
      ata_bmdma_irq_clear(), move it to ata_bmdma_port_ops and make
      ->sff_irq_clear() optional.
      
      Note: ata_bmdma_irq_clear() is actually only needed by ata_piix and
            possibly by sata_sil.  This should be moved to respective low
            level drivers later.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      37f65b8b
    • Tejun Heo's avatar
      sata_mv: drop unncessary EH callback resetting · 2f20ccf8
      Tejun Heo authored
      Now that BMDMA EH ops are separated out from SFF ops, mv5_ops doesn't
      have to explicitly reset ->error_handler() and ->post_internal_cmd().
      Drop them.
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
      2f20ccf8
    • Linus Torvalds's avatar
      Merge branch 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm · ec96e2fe
      Linus Torvalds authored
      * 'devel' of master.kernel.org:/home/rmk/linux-2.6-arm: (103 commits)
        ARM: 6141/1: Add audio support part in arch/arm/mach-w90x900
        ARM: 5939/1: ARM: Add option CMDLINE_FORCE to force usage of the in-kernel cmdline
        ARM: 6140/1: silence a bogus sparse warning in unwind.c
        ARM: mach-at91: duplicated include
        ARM: arch/arm/nwfpe/fpsr.h: Checkpatch cleanup
        ARM: arch/arm/mach-shark/pci.c: Checkpatch cleanup
        ARM: arch/arm/nwfpe/ChangeLog: Checkpatch cleanup
        ARM: arch/arm/mach-sa1100/leds.c: Checkpatch cleanup
        ARM: arch/arm/mach-h720x/common.h: Checkpatch cleanup
        ARM: arch/arm/mach-footbridge/ebsa285-pci.c: Checkpatch cleanup
        ARM: arch/arm/mach-clps711x/Makefile.boot: Checkpatch cleanup
        ARM: arch/arm/boot/bootp/bootp.lds: Checkpatch cleanup
        ARM: SPEAR6xx: remove duplicated #include
        ARM: s3c6400_defconfig: Add NAND driver
        ARM: s3c6400_defconfig: enable sound as modules
        ARM: s3c6400_defconfig: enable power management
        ARM: s5pv210_defconfig: Update s5pv210_defconfig to v2.6.34
        ARM: s5pc110_defconfig: Update s5pc110_defconfig to v2.6.34
        ARM: s5p6442_defconfig: Update s5p6442_defconfig to v2.6.34
        ARM: s5p6440_defconfig: Update s5p6440_defconfig to v2.6.34
        ...
      ec96e2fe
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband · 8e9815a0
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
        RDMA/nes: Fix incorrect unlock in nes_process_mac_intr()
        RDMA/nes: Async event for closed QP causes crash
        RDMA/nes: Have ethtool read hardware registers for rx/tx stats
        RDMA/cxgb4: Only insert sq qid in lookup table
        RDMA/cxgb4: Support IB_WR_READ_WITH_INV opcode
        RDMA/cxgb4: Set fence flag for inv-local-stag work requests
        RDMA/cxgb4: Update some HW limits
        RDMA/cxgb4: Don't limit fastreg page list depth
        RDMA/cxgb4: Return proper errors in fastreg mr/pbl allocation
        RDMA/cxgb4: Fix overflow bug in CQ arm
        RDMA/cxgb4: Optimize CQ overflow detection
        RDMA/cxgb4: CQ size must be IQ size - 2
        RDMA/cxgb4: Register RDMA provider based on LLD state_change events
        RDMA/cxgb4: Detach from the LLD after unregistering RDMA device
        IB/ipath: Remove support for QLogic PCIe QLE devices
        IB/qib: Add new qib driver for QLogic PCIe InfiniBand adapters
        IB/mad: Make needlessly global mad_sendq_size/mad_recvq_size static
        IB/core: Allow device-specific per-port sysfs files
        mlx4_core: Clean up mlx4_alloc_icm() a bit
        mlx4_core: Fix possible chunk sg list overflow in mlx4_alloc_icm()
      8e9815a0
    • Linus Torvalds's avatar
      Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6 · 702c0b04
      Linus Torvalds authored
      * 'next-spi' of git://git.secretlab.ca/git/linux-2.6:
        spi/xilinx: Fix compile error
        spi/davinci: Fix clock prescale factor computation
        spi: move bitbang txrx utility functions to private header
        spi/mpc5121: Add SPI master driver for MPC5121 PSC
        powerpc/mpc5121: move PSC FIFO memory init to platform code
        spi/ep93xx: implemented driver for Cirrus EP93xx SPI controller
        Documentation/spi/* compile warning fix
        spi/omap2_mcspi: Check params before dereference or use
        spi/omap2_mcspi: add turbo mode support
        spi/omap2_mcspi: change default DMA_MIN_BYTES value to 160
        spi/pl022: fix stop queue procedure
        spi/pl022: add support for the PL023 derivate
        spi/pl022: fix up differences between ARM and ST versions
        spi/spi_mpc8xxx: Do not use map_tx_dma to unmap rx_dma
        spi/spi_mpc8xxx: Fix QE mode Litte Endian
        spi/spi_mpc8xxx: fix potential memory corruption.
      702c0b04
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu · c19eb8f0
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
        arch/m68knommu/platform/68360/commproc.c: Checkpatch cleanup
        arch/m68knommu/mm/fault.c: Checkpatch cleanup
        m68knommu: improve short help of m68knommu/Kconfig/RAMSIZE for '0' case
        m68knommu: remove un-used mcfsmc.h
        m68knommu: add smc91x support for ColdFire NETtel boards
        m68knommu: add smc91x support to ColdFire 5249 platform
        m68knommu: remove size limit on non-MMU TASK_SIZE
        m68knommu: fix broken use of BUAD_TABLE_SIZE in 68328serial driver
        m68knommu: Coldfire QSPI platform support
      c19eb8f0
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6 · 99765cc7
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6:
        regulator: return set_mode is same mode is requested
        Regulators: ab3100/bq24022: add a missing .owner field in regulator_desc
        twl6030: regulator: Remove vsel tables and use formula for calculation
        mc13783-regulator: fix vaild voltage range checking for mc13783_fixed_regulator_set_voltage
        regulator: use voltage number array in 88pm860x
        regulator: make 88pm860x sharing one driver structure
        regulator: simplify regulator_register() error handling
        regulator: fix unset_regulator_supplies() to remove all matches
        regulator: prevent registration of matching regulator consumer supplies
        regulator: Allow regulator-regulator supplies to be specified by name
      99765cc7
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog · 51e618c3
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/wim/linux-2.6-watchdog:
        watchdog: Driver for the watchdog timer on Freescale IMX2 (and later) processors.
        watchdog: s3c2410_wdt - Fix on handling of the request_mem_region fail
        watchdog: s3c2410_wdt - Add extra option to include watchdog for Samsung SoCs
        iTCO_wdt: fix TCO V1 timeout values and limits
        watchdog: twl4030_wdt: Disable watchdog during probing
        watchdog: update/improve/consolidate watchdog driver
        watchdog: booke_wdt: fix ioctl status flags
        watchdog: fix several MODULE_PARM_DESC strings
        watchdog: bfin: use new common Blackfin watchdog header
      51e618c3
    • Roland Dreier's avatar
    • Chien Tung's avatar
      RDMA/nes: Fix incorrect unlock in nes_process_mac_intr() · b17e0969
      Chien Tung authored
      Commit ce6e74f2 ("RDMA/nes: Make nesadapter->phy_lock usage
      consistent") introduced a problem where phy_lock was only unlocked
      within an if statement and so nes_process_mac_intr() could return with
      phy_lock still held.  Fix this.
      
      This was discovered because of the sparse warning:
      
          drivers/infiniband/hw/nes/nes_hw.c:2643:9: warning: context imbalance in 'nes_process_mac_intr' - different lock contexts for basic block
      Reported-by: default avatarRoland Dreier <rdreier@cisco.com>
      Signed-off-by: default avatarChien Tung <chien.tin.tung@intel.com>
      Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
      b17e0969
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes · f16a5e34
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-2.6-fixes:
        GFS2: Fix permissions checking for setflags ioctl()
        GFS2: Don't "get" xattrs for ACLs when ACLs are turned off
        GFS2: Rework reclaiming unlinked dinodes
      f16a5e34
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://oss.sgi.com/xfs/xfs · 110b9384
      Linus Torvalds authored
      * 'for-linus' of git://oss.sgi.com/xfs/xfs:
        xfs: Ensure inode allocation buffers are fully replayed
        xfs: enable background pushing of the CIL
        xfs: forced unmounts need to push the CIL
        xfs: Introduce delayed logging core code
        xfs: Delayed logging design documentation
        xfs: Improve scalability of busy extent tracking
        xfs: make the log ticket ID available outside the log infrastructure
        xfs: clean up log ticket overrun debug output
        xfs: Clean up XFS_BLI_* flag namespace
        xfs: modify buffer item reference counting
        xfs: allow log ticket allocation to take allocation flags
        xfs: Don't reuse the same transaction ID for duplicated transactions.
      110b9384
    • Linus Torvalds's avatar
      Merge git://git.infradead.org/battery-2.6 · 4961ab93
      Linus Torvalds authored
      * git://git.infradead.org/battery-2.6:
        power_supply: Fix regression for 'type' property
      4961ab93
    • Henrik Kretzschmar's avatar
      auxdisplay: section cleanup in cfag12864bfb driver · bf87eae9
      Henrik Kretzschmar authored
      This fixes a two section mismatches and makes remove() __devexit.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bf87eae9
    • Dan Carpenter's avatar
      nuc900fb: release correct mem region · a42dcb88
      Dan Carpenter authored
      We should be releasing "res->start" here.
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Acked-by: default avatarWan ZongShun <mcuos.com@gmail.com>
      Cc: Wang Qiang <rurality.linux@gmail.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a42dcb88
    • Albert Herranz's avatar
      fb_defio: fix for non-dirty ptes · 49bbd815
      Albert Herranz authored
      Fix a problem observed while using fb_defio with a short delay on a
      PowerPC platform.
      
      It is possible that page_mkclean() is invoked in the deferred io work
      function _before_ a PTE has been marked dirty.  In this case, the page is
      removed from the defio pagelist but page_mkclean() does not write-protect
      the page again.  The end result is that defio ignores all subsequent
      writes to the page and the corresponding portions of the framebuffer never
      get updated.
      
      The fix consists in keeping track of the pages with non-dirty PTEs,
      re-checking them again on the next deferred io work iteration.  Note that
      those pages are not passed to the defio callback as they are not written
      by userspace yet.
      Signed-off-by: default avatarAlbert Herranz <albert_herranz@yahoo.es>
      Acked-by: default avatarJaya Kumar <jayakumar.lkml@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      49bbd815
    • Henrik Kretzschmar's avatar
      sgivwfb: fix sections · 0d5b0264
      Henrik Kretzschmar authored
      Since the drivers probe call was changed from .init.text to .devinit.text
      in commit c2e13037 ("platform-drivers:
      move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
      fb_var_screeninfo structures must be changed from .init.data to
      .devinit.data, too.
      
      Also the drivers remove routine should be moved from .text to .devexit.text
      
      It removes these 7 section mismatch warnings from modpost:
      
      WARNING: vmlinux.o(.devinit.text+0x1e28): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_fix.
      If sgivwfb_fix is only used by sgivwfb_probe then
      annotate sgivwfb_fix with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e50): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e59): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e60): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_fix
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_fix.
      If sgivwfb_fix is only used by sgivwfb_probe then
      annotate sgivwfb_fix with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e6a): Section mismatch in reference from the function sgivwfb_probe() to the (unknown reference) .init.data:(unknown)
      The function __devinit sgivwfb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by sgivwfb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e7f): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var1600sw
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_var1600sw.
      If sgivwfb_var1600sw is only used by sgivwfb_probe then
      annotate sgivwfb_var1600sw with a matching annotation.
      
      WARNING: vmlinux.o(.devinit.text+0x1e91): Section mismatch in reference from the function sgivwfb_probe() to the variable .init.data:sgivwfb_var
      The function __devinit sgivwfb_probe() references
      a variable __initdata sgivwfb_var.
      If sgivwfb_var is only used by sgivwfb_probe then
      annotate sgivwfb_var with a matching annotation.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Arnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      0d5b0264
    • Henrik Kretzschmar's avatar
      s3c2410fb: fix sections · a8ce4be7
      Henrik Kretzschmar authored
      Since the drivers probe calls were changed from .init.text to
      .devinit.text in commit c2e13037
      ("platform-drivers: move probe to .devinit.text in drivers/video") all the
      function from .init.text should be moved to .devinit.text, too.
      
      The drivers remove calls can also be move from .text to .devexit.text.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Vincent Sanders <support@simtec.co.uk>
      Acked-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
      Tested-by: default avatarArnaud Patard <arnaud.patard@rtp-net.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a8ce4be7
    • Henrik Kretzschmar's avatar
      hitfb: fix sections · e88a0f46
      Henrik Kretzschmar authored
      Since the drivers probe call was changed from .init.text to .devinit.text
      in commit c2e13037 ("platform-drivers:
      move probe to .devinit.text in drivers/video") the fb_fix_screeninfo and
      fb_var_screeninfo structures must be changed from .init.data to
      .devinit.data, too.
      
      Also the drivers remove routine should be moved from .exit.text to
      .devexit.text
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e88a0f46
    • Grazvydas Ignotas's avatar
      fbdev: move FBIO_WAITFORVSYNC to linux/fb.h · 49c39b49
      Grazvydas Ignotas authored
      FBIO_WAITFORVSYNC is currently implemented by matroxfb, atyfb, intelfb and
      more.  All of them keep redefining the same FBIO_WAITFORVSYNC macro over
      and over again, so move it to linux/fb.h and clean up those duplicate
      defines.
      Signed-off-by: default avatarGrazvydas Ignotas <notasas@gmail.com>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Maik Broemme <mbroemme@plusserver.de>
      Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Cc: "Hiremath, Vaibhav" <hvaibhav@ti.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      49c39b49
    • Martin Ambrose's avatar
      fbdev: da8xx/omap-l1xx: implement double buffering · 1f9c3e1f
      Martin Ambrose authored
      This work includes the following:
      
      - Implement handler for FBIO_WAITFORVSYNC ioctl.
      
      - Allocate the data and palette buffers separately.  A consequence of
        this is that the palette and data loading is now done in different
        phases.  And that the LCD must be disabled temporarily after the palette
        is loaded but this will only happen once after init and each time the
        palette is changed.  I think this is OK.
      
      - Allocate two (ping and pong) framebuffers from memory.
      
      - Add pan_display handler which toggles the LCDC DMA registers between
        the ping and pong buffers.
      Signed-off-by: default avatarMartin Ambrose <martin@ti.com>
      Cc: Chaithrika U S <chaithrika@ti.com>
      Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1f9c3e1f
    • Henrik Kretzschmar's avatar
      fbdev: section cleanup in w100fb · fb6cb327
      Henrik Kretzschmar authored
      Fix up the section in the w100fb driver, by moving:
      
      *	w100fb_remove() from .text to .devexit.text
      
      *	w100_get_xtal_table() from .text to .devinit.text
      
      *	w100fb_init() from .devinit.text to .init.text
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fb6cb327
    • Henrik Kretzschmar's avatar
      fbdev: section cleanup in vga16fb · ad145846
      Henrik Kretzschmar authored
      Fix up the sections in the vga16fb driver, by moving:
      
      *	the variables vga16_defined and vga16fb
      	from .init.data to .devinit.data
      
      *	vga16fb_setup() from .text to .init.text
      
      *	vga16fb_remove() from .text. to .devexit.text
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a420): Section mismatch in re
      ference from the function vga16fb_probe() to the (unknown reference) .init.data:
      (unknown)
      The function __devinit vga16fb_probe() references
      a (unknown reference) __initdata (unknown).
      If (unknown) is only used by vga16fb_probe then
      annotate (unknown) with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a437): Section mismatch in reference from the function vga16fb_probe() to the variable .init.data:vga16fb_defined
      The function __devinit vga16fb_probe() references
      a variable __initdata vga16fb_defined.
      If vga16fb_defined is only used by vga16fb_probe then
      annotate vga16fb_defined with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x1a457): Section mismatch in reference from the function vga16fb_probe() to the variable .init.data:vga16fb_fix
      The function __devinit vga16fb_probe() references
      a variable __initdata vga16fb_fix.
      If vga16fb_fix is only used by vga16fb_probe then
      annotate vga16fb_fix with a matching annotation.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ad145846
    • Henrik Kretzschmar's avatar
      fbdev: section cleanup in vfb · 3cc04971
      Henrik Kretzschmar authored
      Fix up the section in the vfb driver, by moving the variables vfb_default
      and vfb_fix from .init.data to .devinit.data
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/vfb.o(.devinit.text+0xf8): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_default
      The function __devinit vfb_probe() references
      a variable __initdata vfb_default.
      If vfb_default is only used by vfb_probe then
      annotate vfb_default with a matching annotation.
      
      WARNING: drivers/video/vfb.o(.devinit.text+0x114): Section mismatch in reference from the function vfb_probe() to the variable .init.data:vfb_fix
      The function __devinit vfb_probe() references
      a variable __initdata vfb_fix.
      If vfb_fix is only used by vfb_probe then
      annotate vfb_fix with a matching annotation.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      3cc04971
    • Henrik Kretzschmar's avatar
      fbdev: section cleanup in hgafb · e217e6e3
      Henrik Kretzschmar authored
      Fix up the sections in the hgafb driver, by
      
      * moving hga_default_var and hga_fix from .init.data to .devinit.data
      
      * moving hga_detect() from .init.text to .devinit.text
      
      * moving hga_fb_remove() from .text to .devexit.text
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/hgafb.o(.devinit.text+0x18): Section mismatch in referenc
      e from the function hgafb_probe() to the function .init.text:hga_card_detect()
      The function __devinit hgafb_probe() references
      a function __init hga_card_detect().
      If hga_card_detect is only used by hgafb_probe then
      annotate hga_card_detect with a matching annotation.
      
      WARNING: drivers/video/hgafb.o(.devinit.text+0xfe): Section mismatch in referenc
      e from the function hgafb_probe() to the variable .init.data:hga_fix
      The function __devinit hgafb_probe() references
      a variable __initdata hga_fix.
      If hga_fix is only used by hgafb_probe then
      annotate hga_fix with a matching annotation.
      
      WARNING: drivers/video/hgafb.o(.devinit.text+0x105): Section mismatch in reference from the function hgafb_probe() to the variable .init.data:hga_default_var
      The function __devinit hgafb_probe() references
      a variable __initdata hga_default_var.
      If hga_default_var is only used by hgafb_probe then
      annotate hga_default_var with a matching annotation.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e217e6e3
    • Henrik Kretzschmar's avatar
      fbdev: section cleanup in arcfb · bd9b5caf
      Henrik Kretzschmar authored
      Fix the sections in the arcfb driver, by moving:
      
      *	the variables arcfb_fix and arcfb_var from .init.data to .devinit.data
      
      *	arcfb_remove() from .text to .devexit.text
      
      This fixes the following warnings issued by modpost:
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x543): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_var
      The function __devinit arcfb_probe() references
      a variable __initdata arcfb_var.
      If arcfb_var is only used by arcfb_probe then
      annotate arcfb_var with a matching annotation.
      
      WARNING: drivers/video/built-in.o(.devinit.text+0x558): Section mismatch in reference from the function arcfb_probe() to the variable .init.data:arcfb_fix
      The function __devinit arcfb_probe() references
      a variable __initdata arcfb_fix.
      If arcfb_fix is only used by arcfb_probe then
      annotate arcfb_fix with a matching annotation.
      Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: <stable@kernel.org>	[if "platform-drivers: move probe to .devinit.text in drivers/video" was merged]
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bd9b5caf
    • Dan Carpenter's avatar
      sis: strcpy() => strlcpy() · dbd536bf
      Dan Carpenter authored
      These are different size buffers (40 chars vs 16), we may as well be
      cautious.
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Cc: Thomas Winischhofer <thomas@winischhofer.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      dbd536bf
    • Michael Hennerich's avatar
      fbdev: bfin-lq035q1-fb: respect new PPI mode platform field · fbd65e0e
      Michael Hennerich authored
      This lets us support the new BF527-EZKIT V2.1 via platform resources
      tweaks only.
      Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      Cc: Bryan Wu <cooloney@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fbd65e0e
    • Mark Brown's avatar
      rtc: use genirq directly in rtc-wm831x · 5815e5d3
      Mark Brown authored
      Now that the WM831x core uses genirq for the IRQ controller there is no
      need to use the WM831x-specific wrappers to request interrupts so convert
      to use genirq directly.
      
      Also use more meaningful strings to make /proc/interrupts more readily
      legible.
      Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5815e5d3
    • Dan Carpenter's avatar
      rtc-cmos: do dev_set_drvdata() earlier in the initialization · 6ba8bcd4
      Dan Carpenter authored
      The bug is an oops when dev_get_drvdata() returned null in
      cmos_update_irq_enable().  The call tree looks like this:
        rtc_dev_ioctl()
          => rtc_update_irq_enable()
            => cmos_update_irq_enable()
      
      It's caused by a race condition in the module initialization.  It is
      rtc_device_register() which makes the ioctl operations live so I moved
      the call to dev_set_drvdata() before the call to rtc_device_register().
      
      Addresses https://bugzilla.kernel.org/show_bug.cgi?id=15963Reported-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Tested-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Cc: Malte Schroder <maltesch@gmx.de>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Herton Ronaldo Krzesinski <herton@mandriva.com.br>
      Cc: <stable@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6ba8bcd4
    • Marc Zyngier's avatar
      rtc-ds1302: add some abstraction for new platform support · 72cc8e51
      Marc Zyngier authored
      The current ds1302 driver (or at least the one that lives in /drivers/rtc)
      seems to be designed for memory mapped devices only.  This make it quite
      hard to add support for GPIO-based implementations (as this is the case
      for the upcoming Arcom Vulcan).
      
      This patch moves the direct register access to inline functions with
      explicit names.  Still not as good as a proper platform driver, but at
      least neater.
      Signed-off-by: default avatarMarc Zyngier <maz@misterjones.org>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Paul Mundt <lethal@linux-sh.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      72cc8e51
    • H Hartley Sweeten's avatar
      rtc-isl1208: use sysfs_{create/remove}_group · e17ab5cb
      H Hartley Sweeten authored
      Instead of individually creating and removing the sysfs device attribute
      files, wrap them in an attribute_group and use
      sysfs_{create/remove}_group.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e17ab5cb
    • Vladimir Zapolskiy's avatar
      rtc-mxc: remove unnecessary clock source for rtc subsystem · 5cf8f57d
      Vladimir Zapolskiy authored
      On imx SoCs rtc clock parent is CKIL, but clock rate shall be determined
      using rtc clock itself, that eliminates CKIL clock usage in the driver.
      Signed-off-by: default avatarVladimir Zapolskiy <vzapolskiy@gmail.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: Daniel Mack <daniel@caiaq.de>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      5cf8f57d
    • Maurus Cuelenaere's avatar
      s3c rtc driver: add support for S3C64xx · 9f4123b7
      Maurus Cuelenaere authored
      Add support for the S3C64xx SoC to the generic S3C RTC driver.
      Signed-off-by: default avatarMaurus Cuelenaere <mcuelenaere@gmail.com>
      Acked-by: default avatarBen Dooks <ben-linux@fluff.org>
      Cc: Frans Pop <elendil@planet.nl>
      Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9f4123b7