1. 13 5月, 2015 2 次提交
  2. 12 5月, 2015 29 次提交
  3. 11 5月, 2015 9 次提交
    • M
      gpio / ACPI: Add support for retrieving GpioInt resources from a device · c884fbd4
      Mika Westerberg 提交于
      ACPI specification knows two types of GPIOs: GpioIo and GpioInt. The latter
      is used to describe that a given device interrupt line is connected to a
      specific GPIO pin. Typical ACPI _CRS entry for such device looks like
      below:
      
          Name (_CRS, ResourceTemplate ()
          {
              I2cSerialBus (0x004A, ControllerInitiated, 0x00061A80,
                            AddressingMode7Bit, "\\_SB.PCI0.I2C6",
                            0x00, ResourceConsumer)
              GpioIo (Exclusive, PullDefault, 0x0000, 0x0000,
                      IoRestrictionOutputOnly, "\\_SB.GPO0",
                      0x00, ResourceConsumer)
              {
                  0x004B
              }
              GpioInt (Level, ActiveLow, Shared, PullDefault, 0x0000,
                       "\\_SB.GPO0", 0x00, ResourceConsumer)
              {
                  0x004C
              }
          })
      
      Currently drivers need to request a GPIO corresponding to the right GpioInt
      and then translate that to Linux IRQ number. This adds unnecessary lines of
      boiler-plate code.
      
      We can ease this a bit by introducing acpi_dev_gpio_irq_get() analogous to
      of_irq_get(). This function translates given GpioInt resource under the
      device in question to the suitable Linux IRQ number.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      c884fbd4
    • V
      gpio: mxc: read output value from GPIO_DR register · 442b2494
      Vladimir Zapolskiy 提交于
      All supported iMX GPIO controllers store configured GPIO output value
      in GPIO_DR data register, which is represented by GPIO generic reg_set.
      Provide a BGPIOF_READ_OUTPUT_REG_SET flag to bgpio_init() to allow
      correct getting of previously set output value.
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      442b2494
    • V
      gpio: moxart: get value of output gpio from generic driver · f3066339
      Vladimir Zapolskiy 提交于
      Adding a BGPIOF_READ_OUTPUT_REG_SET initialization flag to GPIO
      generic MMIO driver makes possible to remove a private get() value
      function from the driver.
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      f3066339
    • V
      gpio: gpio-generic: add flag to read out output value from reg_set · b19e7f51
      Vladimir Zapolskiy 提交于
      The change introduces BGPIOF_READ_OUTPUT_REG_SET flag for gpio-generic
      GPIO chip implementation, which allows to get correct configured value
      from reg_set register, input value is still get from reg_dat.
      Signed-off-by: NVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      b19e7f51
    • L
      Linux 4.1-rc3 · 030bbdbf
      Linus Torvalds 提交于
      030bbdbf
    • L
      Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux · 01d07351
      Linus Torvalds 提交于
      Pull drm fixes from Dave Airlie:
       "I really need to get back to sending these on my Friday, instead of my
        Monday morning, but nothing too amazing in here: a few amdkfd fixes, a
        few radeon fixes, i915 fixes, one tegra fix and one core fix"
      
      * 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
        drm: Zero out invalid vblank timestamp in drm_update_vblank_count.
        drm/tegra: Don't use vblank_disable_immediate on incapable driver.
        drm/radeon: stop trying to suspend UVD sessions
        drm/radeon: more strictly validate the UVD codec
        drm/radeon: make UVD handle checking more strict
        drm/radeon: make VCE handle check more strict
        drm/radeon: fix userptr lockup
        drm/radeon: fix userptr BO unpin bug v3
        drm/amdkfd: Initialize sdma vm when creating sdma queue
        drm/amdkfd: Don't report local memory size
        drm/amdkfd: allow unregister process with queues
        drm/i915: Drop PIPE-A quirk for 945GSE HP Mini
        drm/i915: Sink rate read should be saved in deca-kHz
        drm/i915/dp: there is no audio on port A
        drm/i915: Add missing MacBook Pro models with dual channel LVDS
        drm/i915: Assume dual channel LVDS if pixel clock necessitates it
        drm/radeon: don't setup audio on asics that don't support it
        drm/radeon: disable semaphores for UVD V1 (v2)
      01d07351
    • D
      Merge tag 'drm-intel-fixes-2015-05-08' of git://anongit.freedesktop.org/drm-intel into drm-fixes · 332545b3
      Dave Airlie 提交于
      misc i915 fixes.
      
      * tag 'drm-intel-fixes-2015-05-08' of git://anongit.freedesktop.org/drm-intel:
        drm/i915: Drop PIPE-A quirk for 945GSE HP Mini
        drm/i915: Sink rate read should be saved in deca-kHz
        drm/i915/dp: there is no audio on port A
        drm/i915: Add missing MacBook Pro models with dual channel LVDS
        drm/i915: Assume dual channel LVDS if pixel clock necessitates it
      332545b3
    • M
      drm: Zero out invalid vblank timestamp in drm_update_vblank_count. · fdb68e09
      Mario Kleiner 提交于
      Since commit 844b03f2 we make
      sure that after vblank irq off, we return the last valid
      (vblank count, vblank timestamp) pair to clients, e.g., during
      modesets, which is good.
      
      An overlooked side effect of that commit for kms drivers without
      support for precise vblank timestamping is that at vblank irq
      enable, when we update the vblank counter from the hw counter, we
      can't update the corresponding vblank timestamp, so now we have a
      totally mismatched timestamp for the new count to confuse clients.
      
      Restore old client visible behaviour from before Linux 3.17, but
      zero out the timestamp at vblank counter update (instead of disable
      as in original implementation) if we can't generate a meaningful
      timestamp immediately for the new vblank counter. This will fix
      this regression, so callers know they need to retry again later
      if they need a valid timestamp, but at the same time preserves
      the improvements made in the commit mentioned above.
      Signed-off-by: NMario Kleiner <mario.kleiner.de@gmail.com>
      Cc: <stable@vger.kernel.org> #v3.17+
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      fdb68e09
    • L
      Merge branch 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm · 41f2a93c
      Linus Torvalds 提交于
      Pull ARM fixes from Russell King:
       "A set of ARM fixes:
      
         - fix an off-by-one error in the iommu DMA ops, which caused errors
           with a 4GiB size.
      
         - remove comments mentioning the non-existent CONFIG_CPU_ARM1020_CPU_IDLE
           macro.
      
         - remove useless CONFIG_CPU_ICACHE_STREAMING_DISABLE blocks, where
           this symbol never appeared in any Kconfig.
      
         - fix Feroceon code to cope with a previous change correctly (it
           incorrectly left an additional word in an assembly structure
           definition)
      
         - avoid a misleading IRQ affinity warning in the ARM PMU code for
           IRQs which are already affine to their CPUs.
      
         - fix the node name printed in the IRQ affinity warning"
      
      * 'fixes' of git://ftp.arm.linux.org.uk/~rmk/linux-arm:
        ARM: 8352/1: perf: Fix the pmu node name in warning message
        ARM: 8351/1: perf: don't warn about missing interrupt-affinity property for PPIs
        ARM: 8350/1: proc-feroceon: Fix feroceon_proc_info macro
        ARM: 8349/1: arch/arm/mm/proc-arm925.S: remove dead #ifdef block
        ARM: 8348/1: remove comments on CPU_ARM1020_CPU_IDLE
        ARM: 8347/1: dma-mapping: fix off-by-one check in arm_setup_iommu_dma_ops
      41f2a93c