1. 03 Apr, 2013 24 commits
    • Archit Taneja's avatar
      OMAPDSS: n8x0 panel: handle gpio data in panel driver · 64f93897
      Archit Taneja authored
      The n8x0 panel driver leaves gpio configurations to the platform_enable and
      disable calls in the platform's board file. These should happen in the panel
      driver itself.
      
      A platform data struct called panel_n8x0_data already exists to hold gpio
      numbers and other platform data. However, the gpio requests are expected to be
      done in the board file and not the panel driver.
      
      Request all the gpios in the panel driver so that the board files which use
      the the panel don't need to do it. This will help in removing the need for the
      panel drivers to have platform related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      64f93897
    • Archit Taneja's avatar
      OMAPDSS: picodlp panel: remove platform_enable/disable callbacks · b3fb8b98
      Archit Taneja authored
      The picodlp panel driver now manages the gpios required to configure the
      panel. This was previously done in omap_dss_device's platform_enable/disable
      callbacks defined in board files using this panel.
      
      All the board files using this panel now pass the gpio information as platform
      data via the panel_generic_dpi_data struct, which is needed by the panel driver
      to configure the gpios connected to the panel. Hence, the
      platform_enable/disable ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      b3fb8b98
    • Archit Taneja's avatar
      OMAPDSS: picodlp panel: handle gpio data in panel driver · d52e2e75
      Archit Taneja authored
      The picodlp panel driver leaves gpio requests to the platform's board file.
      These should happen in the panel driver itself.
      
      A platform data struct called picodlp_panel_data already exists to hold gpio
      numbers and other platform data. Request all the gpios in the panel driver so
      that the board files which use the the panel don't need to do it.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      d52e2e75
    • Archit Taneja's avatar
      OMAPDSS: tpo-td043: remove platform_enable/disable callbacks · 3552fb78
      Archit Taneja authored
      The tpo-td043 panel driver now manages the gpios required to configure the panel.
      This was previously done in omap_dss_device's platform_enable/disable callbacks
      defined in board files using this panel.
      
      All the board files using this panel now pass the gpio information as platform
      data via the panel_tpo_td043_data struct, which is needed by the panel driver to
      configure the gpios connected to the panel. Hence, the platform_enable/disable
      ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      3552fb78
    • Archit Taneja's avatar
      OMAPDSS: tpo-td043 panel: handle gpios in panel driver · 7eab07e4
      Archit Taneja authored
      The tpo-td043mtea1 panel driver leaves gpio configurations to the
      platform_enable and disable calls in the platform's board file. These should
      happen in the panel driver itself.
      
      Create a platform data struct for the panel, this contains the reset gpio
      number used by the panel driver, this struct will be passed to the panel driver
      as platform data. The driver will request and configure the reset gpio rather
      than leaving it to platform callbacks in board files.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      7eab07e4
    • Archit Taneja's avatar
      OMAPDSS: nec-nl8048 panel: remove platform_enable/disable callbacks · be9a0067
      Archit Taneja authored
      The nec-nl8048 panel driver now manages the gpios required to configure the
      panel. This was previously done in omap_dss_device's platform_enable/disable
      callbacks defined in board files using this panel.
      
      All the board files using this panel now pass the gpio information as platform
      data via the panel_nec_nl8048_data struct, which is needed by the panel driver
      to configure the gpios connected to the panel. Hence, the
      platform_enable/disable ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      be9a0067
    • Archit Taneja's avatar
      OMAPDSS: nec-nl8048 panel: handle gpios in panel driver · 57bc6c51
      Archit Taneja authored
      The nec-nl8048hl11-01 panel driver leaves gpio configurations to the
      platform_enable and disable calls in the platform's board file. These should
      happen in the panel driver itself.
      
      Create a platform data struct for the panel, this contains the gpio numbers
      used by the panel driver, this struct will be passed to the panel driver as
      platform data. The driver will request and configure these gpios rather than
      leaving it to platform callbacks in board files.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      57bc6c51
    • Archit Taneja's avatar
      OMAPDSS: acx565akm panel: handle gpios in panel driver · 3c45d05b
      Archit Taneja authored
      The acx565akm panel driver leaves gpio configurations to the platform_enable
      and disable calls in the platform's board file. These should happen in the panel
      driver itself.
      
      Create a platform data struct for the panel, this contains the reset gpio number
      used by the panel driver, this struct will be passed to the panel driver as
      platform data. The driver will request and configure the reset gpio rather than
      leaving it to platform callbacks in board files.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      3c45d05b
    • Archit Taneja's avatar
      OMAPDSS: sharp-ls panel: remove platform_enable/disable callbacks · 3db716bc
      Archit Taneja authored
      The sharp-ls panel driver now manages the gpios required to configure the panel.
      This was previously done in omap_dss_device's platform_enable/disable callbacks
      defined in board files using this panel.
      
      All the board files using this panel now pass the gpio information as platform
      data via the panel_sharp_ls037v7dw01_data struct, which is needed by the panel
      driver to configure the gpios connected to the panel. Hence, the
      platform_enable/disable ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      3db716bc
    • Tomi Valkeinen's avatar
      OMAPDSS: LS037V7DW01: handle gpios in panel driver · 31030985
      Tomi Valkeinen authored
      Move the GPIO handling from board file's platform callbacks to the panel
      driver, which gets the gpios via platform data.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      31030985
    • Archit Taneja's avatar
      OMAPDSS: generic dpi panel: remove uses of platform_enable/disable ops · 7e930086
      Archit Taneja authored
      The generic dpi panel driver now sets the gpios required to configure the panel.
      This was previously done in platform_enable/disable callbacks in board files.
      
      All the board files using generic dpi panel now correctly pass the gpio related
      information as platform data, which is needed by the panel driver to configure
      the panel. Hence, the platform_enable/disable ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      7e930086
    • Archit Taneja's avatar
      OMAPDSS: lb035q02 panel: remove platform_enable/disable callbacks · 32fb490f
      Archit Taneja authored
      The lgphilips panel driver now manages the gpios required to configure the
      panel. This was previously done in omap_dss_device's platform_enable/disable
      callbacks defined in board files using this panel.
      
      All the board files using this panel now pass the gpio information as platform
      data via the panel_generic_dpi_data struct, which is needed by the panel driver
      to configure the gpios connected to the panel. Hence, the
      platform_enable/disable ops can be safely removed now.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      32fb490f
    • Archit Taneja's avatar
      OMAPDSS: lb035q02: handle gpios in panel driver · 7232b1f9
      Archit Taneja authored
      The lgphilips panel driver leaves gpio configurations to the platform_enable
      and disable calls in the platform's board file. These should happen in the
      panel driver itself.
      
      Use the platform data as defined for generic dpi panels to pass gpio information
      to the lgphilips driver.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      7232b1f9
    • Tomi Valkeinen's avatar
      OMAPDSS: generic dpi panel: handle gpios in panel driver · 0801711e
      Tomi Valkeinen authored
      The generic dpi panel driver leaves gpio configurations to the platform_enable
      and disable calls in the platform's board file. These should happen in the
      panel driver itself.
      
      Add a generic way of passing gpio information to the generic dpi panel driver
      via it's platform_data. This information includes the number of gpios used by
      the panel, the gpio number and logic level (active high/low) for each gpio. This
      gpio data will be used by the driver to request and configure the gpios required
      by the panel.
      
      This will help in removing the need for the panel drivers to have platform
      related callbacks.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      0801711e
    • Archit Taneja's avatar
      OMAPDSS: panel acx565akm: remove omap_dss_device maximum backlight level usage · ba7b2d98
      Archit Taneja authored
      The omap_dss_device structs's max_backlight_level is used to pass maximum
      backlight level for the platform. However, no board file using this panel
      populates this field. Therefore, we remove it's usage from the panel driver.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      ba7b2d98
    • Archit Taneja's avatar
      OMAPDSS: picodlp: use devm_kzalloc for allocating driver data · e1b94f1d
      Archit Taneja authored
      Use devm_kzalloc instead of kzalloc to allocate driver data for the picodlp
      panel driver. This simplifies the driver's probe and remove functions.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      e1b94f1d
    • Archit Taneja's avatar
      OMAPDSS: lb035q02: use devm_kzalloc for allocating driver data · e4dace46
      Archit Taneja authored
      Use devm_kzalloc instead of kzalloc to allocate driver data for the lg phillips
      panel driver. This simplifies the driver's probe and remove functions.
      
      Cc: Steve Sakoman <steve@sakoman.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      e4dace46
    • Archit Taneja's avatar
      OMAPDSS: Generic DPI Panel: use devm_kzalloc for allocating driver data · f5e484d8
      Archit Taneja authored
      Use devm_kzalloc instead of kzalloc to allocate driver data for the generic dpi
      panel driver. This simplifies the driver's probe and remove functions.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      f5e484d8
    • Tomi Valkeinen's avatar
      OMAPDSS: n8x0: remove platform backlight calls · a4419f3e
      Tomi Valkeinen authored
      The n8x0 panel contains support to call platform backlight functions.
      These are not used by any board, and can be removed.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      a4419f3e
    • Archit Taneja's avatar
      OMAPDSS: NEC-nl8048hl11: remove platform backlight support · 14e6a091
      Archit Taneja authored
      NEC-nl8048hl11 driver contains support to call platform backlight
      functions. These are not used by any board, and can be removed.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      14e6a091
    • Tomi Valkeinen's avatar
      OMAPDSS: ls037v7dw01: remove platform backlight calls · 02b80489
      Tomi Valkeinen authored
      Sharp ls037v7dw01 driver contains support to call platform backlight
      functions. These are not used by any board, and can be removed.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      02b80489
    • Tomi Valkeinen's avatar
      OMAPDSS: acx565akm: remove platform backlight calls · 058cc3bf
      Tomi Valkeinen authored
      acx565akm has support to call set_backlight/get_backlight in platform
      code. They are not used by any board, and thus can be removed from the
      driver.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      058cc3bf
    • Tomi Valkeinen's avatar
      OMAPDSS: add fields to panels' platform data · c3f80cbc
      Tomi Valkeinen authored
      Forthcoming panel patches will change the panel drivers to use platform
      data to pass panel's gpios to the panel driver. This patch adds the
      required fields and platform data structs to the omap-panel-data.h file,
      so that the board files can be changed independently of the panel driver
      changes.
      Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      c3f80cbc
    • Archit Taneja's avatar
      OMAPDSS: panels: keep platform data of all panels in a single header · a0d8dde9
      Archit Taneja authored
      Structs for platform data of omapdss panels are found in headers in the
      'include/video/' path. Board files populate these structs with platform
      specific values, and the panel driver uses these to configure the panel.
      
      Currently, each panel has it's own header in the above path. Move all the
      omapdss panel platform data structs to a single header omap-panel-data.h.
      This is useful because:
      
      - All other omapdss panel drivers will be modified to use platform data. This
        would lead to a lot of panel headers usable only by omapdss. A lot of these
        platform data structs are trivial, and don't really need a separate header.
      - Platform data would be eventually removed, and platform information would be
        passed via device tree. Therefore, omapdss panel platform data structs are
        temporary, and will be easier to remove if they are all in the same header.
      - All board files will have to include the same header to configure a panel's
        platform data, that makes the board files more consistent.
      Signed-off-by: default avatarArchit Taneja <archit@ti.com>
      a0d8dde9
  2. 31 Mar, 2013 5 commits
    • Linus Torvalds's avatar
      Linux 3.9-rc5 · 07961ac7
      Linus Torvalds authored
      07961ac7
    • Linus Torvalds's avatar
      Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma · 0bb44280
      Linus Torvalds authored
      Pull slave-dmaengine fixes from Vinod Koul:
       "Two fixes for slave-dmaengine.
      
        The first one is for making slave_id value correct for dw_dmac and
        the other one fixes the endieness in DT parsing"
      
      * 'fixes' of git://git.infradead.org/users/vkoul/slave-dma:
        dw_dmac: adjust slave_id accordingly to request line base
        dmaengine: dw_dma: fix endianess for DT xlate function
      0bb44280
    • Linus Torvalds's avatar
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · a7b436d3
      Linus Torvalds authored
      Pull media fixes from Mauro Carvalho Chehab:
       "For a some fixes for Kernel 3.9:
         - subsystem build fix when VIDEO_DEV=y, VIDEO_V4L2=m and I2C=m
         - compilation fix for arm multiarch preventing IR_RX51 to be selected
         - regression fix at bttv crop logic
         - s5p-mfc/m5mols/exynos: a few fixes for cameras on exynos hardware"
      
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        [media] [REGRESSION] bt8xx: Fix too large height in cropcap
        [media] fix compilation with both V4L2 and I2C as 'm'
        [media] m5mols: Fix bug in stream on handler
        [media] s5p-fimc: Do not attempt to disable not enabled media pipeline
        [media] s5p-mfc: Fix encoder control 15 issue
        [media] s5p-mfc: Fix frame skip bug
        [media] s5p-fimc: send valid m2m ctx to fimc_m2m_job_finish
        [media] exynos-gsc: send valid m2m ctx to gsc_m2m_job_finish
        [media] fimc-lite: Fix the variable type to avoid possible crash
        [media] fimc-lite: Initialize 'step' field in fimc_lite_ctrl structure
        [media] ir: IR_RX51 only works on OMAP2
      a7b436d3
    • Linus Torvalds's avatar
      Merge tag 'for-linus-20130331' of git://git.kernel.dk/linux-block · d299c290
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Alright, this time from 10K up in the air.
      
        Collection of fixes that have been queued up since the merge window
        opened, hence postponed until later in the cycle.  The pull request
        contains:
      
         - A bunch of fixes for the xen blk front/back driver.
      
         - A round of fixes for the new IBM RamSan driver, fixing various
           nasty issues.
      
         - Fixes for multiple drives from Wei Yongjun, bad handling of return
           values and wrong pointer math.
      
         - A fix for loop properly killing partitions when being detached."
      
      * tag 'for-linus-20130331' of git://git.kernel.dk/linux-block: (25 commits)
        mg_disk: fix error return code in mg_probe()
        rsxx: remove unused variable
        rsxx: enable error return of rsxx_eeh_save_issued_dmas()
        block: removes dynamic allocation on stack
        Block: blk-flush: Fixed indent code style
        cciss: fix invalid use of sizeof in cciss_find_cfgtables()
        loop: cleanup partitions when detaching loop device
        loop: fix error return code in loop_add()
        mtip32xx: fix error return code in mtip_pci_probe()
        xen-blkfront: remove frame list from blk_shadow
        xen-blkfront: pre-allocate pages for requests
        xen-blkback: don't store dev_bus_addr
        xen-blkfront: switch from llist to list
        xen-blkback: fix foreach_grant_safe to handle empty lists
        xen-blkfront: replace kmalloc and then memcpy with kmemdup
        xen-blkback: fix dispatch_rw_block_io() error path
        rsxx: fix missing unlock on error return in rsxx_eeh_remap_dmas()
        Adding in EEH support to the IBM FlashSystem 70/80 device driver
        block: IBM RamSan 70/80 error message bug fix.
        block: IBM RamSan 70/80 branding changes.
        ...
      d299c290
    • Paul Walmsley's avatar
      Revert "lockdep: check that no locks held at freeze time" · dbf520a9
      Paul Walmsley authored
      This reverts commit 6aa97070.
      
      Commit 6aa97070 ("lockdep: check that no locks held at freeze time")
      causes problems with NFS root filesystems.  The failures were noticed on
      OMAP2 and 3 boards during kernel init:
      
        [ BUG: swapper/0/1 still has locks held! ]
        3.9.0-rc3-00344-ga937536b #1 Not tainted
        -------------------------------------
        1 lock held by swapper/0/1:
         #0:  (&type->s_umount_key#13/1){+.+.+.}, at: [<c011e84c>] sget+0x248/0x574
      
        stack backtrace:
          rpc_wait_bit_killable
          __wait_on_bit
          out_of_line_wait_on_bit
          __rpc_execute
          rpc_run_task
          rpc_call_sync
          nfs_proc_get_root
          nfs_get_root
          nfs_fs_mount_common
          nfs_try_mount
          nfs_fs_mount
          mount_fs
          vfs_kern_mount
          do_mount
          sys_mount
          do_mount_root
          mount_root
          prepare_namespace
          kernel_init_freeable
          kernel_init
      
      Although the rootfs mounts, the system is unstable.  Here's a transcript
      from a PM test:
      
        http://www.pwsan.com/omap/testlogs/test_v3.9-rc3/20130317194234/pm/37xxevm/37xxevm_log.txt
      
      Here's what the test log should look like:
      
        http://www.pwsan.com/omap/testlogs/test_v3.8/20130218214403/pm/37xxevm/37xxevm_log.txt
      
      Mailing list discussion is here:
      
        http://lkml.org/lkml/2013/3/4/221
      
      Deal with this for v3.9 by reverting the problem commit, until folks can
      figure out the right long-term course of action.
      Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
      Cc: Mandeep Singh Baines <msb@chromium.org>
      Cc: Jeff Layton <jlayton@redhat.com>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: <maciej.rutecki@gmail.com>
      Cc: Fengguang Wu <fengguang.wu@intel.com>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Ben Chan <benchan@chromium.org>
      Cc: Oleg Nesterov <oleg@redhat.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Rafael J. Wysocki <rjw@sisk.pl>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      dbf520a9
  3. 30 Mar, 2013 1 commit
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending · 13d2080d
      Linus Torvalds authored
      Pull SCSI target fixes from Nicholas Bellinger:
       "This includes the bug-fix for a >= v3.8-rc1 regression specific to
        iscsi-target persistent reservation conflict handling (CC'ed to
        stable), and a tcm_vhost patch to drop VIRTIO_RING_F_EVENT_IDX usage
        so that in-flight qemu vhost-scsi-pci device code can detect the
        proper vhost feature bits.
      
        Also, there are two more tcm_vhost patches still being discussed by
        MST and Asias for v3.9 that will be required for the in-flight qemu
        vhost-scsi-pci device patch to function properly, and that should
        (hopefully) be the last target fixes for this round."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
        target: Fix RESERVATION_CONFLICT status regression for iscsi-target special case
        tcm_vhost: Avoid VIRTIO_RING_F_EVENT_IDX feature bit
      13d2080d
  4. 29 Mar, 2013 10 commits