1. 05 6月, 2015 6 次提交
    • T
      drm/panel: ld9040: Remove useless padding · 6343f22f
      Thierry Reding 提交于
      There's some useless padding in the struct spi_driver definition. Remove
      it since it serves no useful purpose.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      6343f22f
    • T
      drm/panel: Constify OF match tables · 1a8f9056
      Thierry Reding 提交于
      Both the Samsung LD9040 and Samsung S6E8AA0 panel drivers are missing
      a const qualifier for their OF match tables. This data is static and
      never changes, so can be read-only.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      1a8f9056
    • T
      drm/bridge: Remove stale ptn3460.h include · f3f375cd
      Thierry Reding 提交于
      This header file declares prototypes of functions that are no longer
      used. Remove this file and all references to it.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      f3f375cd
    • G
      drm/bridge: ps8622: Include linux/gpio/consumer.h · dcd43d64
      Geert Uytterhoeven 提交于
      If GPIOLIB=n and asm-generic/gpio.h is not used:
      
          drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_pre_enable’:
          drivers/gpu/drm/bridge/ps8622.c:368: error: implicit declaration of function ‘gpiod_set_value’
          drivers/gpu/drm/bridge/ps8622.c: In function ‘ps8622_probe’:
          drivers/gpu/drm/bridge/ps8622.c:584: error: implicit declaration of function ‘devm_gpiod_get’
          drivers/gpu/drm/bridge/ps8622.c:584: warning: assignment makes pointer from integer without a cast
          drivers/gpu/drm/bridge/ps8622.c:590: error: implicit declaration of function ‘gpiod_direction_output’
          drivers/gpu/drm/bridge/ps8622.c:596: warning: assignment makes pointer from integer without a cast
      
      Add the missing #include <linux/gpio/consumer.h> to fix this.
      
      Fixes: f1336e6afb ("drm/bridge: Add I2C based driver for ps8622/ps8625 bridge")
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      dcd43d64
    • G
      drm/bridge: ptn3460: Include linux/gpio/consumer.h · dad3c350
      Geert Uytterhoeven 提交于
      If GPIOLIB=n and asm-generic/gpio.h is not used:
      
          drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_pre_enable’:
          drivers/gpu/drm/bridge/ptn3460.c:135: error: implicit declaration of function ‘gpiod_set_value’
          drivers/gpu/drm/bridge/ptn3460.c: In function ‘ptn3460_probe’:
          drivers/gpu/drm/bridge/ptn3460.c:333: error: implicit declaration of function ‘devm_gpiod_get’
          drivers/gpu/drm/bridge/ptn3460.c:333: warning: assignment makes pointer from integer without a cast
          drivers/gpu/drm/bridge/ptn3460.c:340: error: implicit declaration of function ‘gpiod_direction_output’
          drivers/gpu/drm/bridge/ptn3460.c:346: warning: assignment makes pointer from integer without a cast
      
      Add the missing #include <linux/gpio/consumer.h> to fix this.
      
      Fixes: af478d88 ("drm/bridge: ptn3460: use gpiod interface")
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Cc: David Airlie <airlied@linux.ie>
      Cc: dri-devel@lists.freedesktop.org
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      dad3c350
    • D
      drm/bridge: dw-hdmi: Return number of EDID modes · 6c7e66e6
      Doug Anderson 提交于
      The dw_hdmi_connector_get_modes() function accidentally forgets to
      return the number of modes it added, although it has this information
      stored in a local variable.  Let's fix that.
      
      Without this fix, drm_helper_probe_single_connector_modes_merge_bits()
      could get confused and always call drm_add_modes_noedid().  That's not
      right.
      Signed-off-by: NDoug Anderson <dianders@chromium.org>
      Tested-by: NYakir Yang <ykk@rock-chips.com>
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      6c7e66e6
  2. 22 5月, 2015 1 次提交
  3. 19 5月, 2015 2 次提交
  4. 15 5月, 2015 2 次提交
  5. 24 4月, 2015 3 次提交
    • I
      drm/i915: vlv: fix save/restore of GFX_MAX_REQ_COUNT reg · b5f1c97f
      Imre Deak 提交于
      Due this typo we don't save/restore the GFX_MAX_REQ_COUNT register across
      suspend/resume, so fix this.
      
      This was introduced in
      
      commit ddeea5b0
      Author: Imre Deak <imre.deak@intel.com>
      Date:   Mon May 5 15:19:56 2014 +0300
      
          drm/i915: vlv: add runtime PM support
      
      I noticed this only by reading the code. To my knowledge it shouldn't
      cause any real problems at the moment, since the power well backing this
      register remains on across a runtime s/r. This may change once
      system-wide s0ix functionality is enabled in the kernel.
      
      v2:
      - resend after a missing git add -u :/
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Tested-By: PRC QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NMika Kuoppala <mika.kuoppala@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      b5f1c97f
    • M
      drm/i915: Workaround to avoid lite restore with HEAD==TAIL · 53292cdb
      Michel Thierry 提交于
      WaIdleLiteRestore is an execlists-only workaround, and requires the driver
      to ensure that any context always has HEAD!=TAIL when attempting lite
      restore.
      
      Add two extra MI_NOOP instructions at the end of each request, but keep
      the requests tail pointing before the MI_NOOPs. We may not need to
      executed them, and this is why request->tail is sampled before adding
      these extra instructions.
      
      If we submit a context to the ELSP which has previously been submitted,
      move the tail pointer past the MI_NOOPs. This ensures HEAD!=TAIL.
      
      v2: Move overallocation to gen8_emit_request, and added note about
      sampling request->tail in commit message (Chris).
      
      v3: Remove redundant request->tail assignment in __i915_add_request, in
      lrc mode this is already set in execlists_context_queue.
      Do not add wa implementation details inside gem (Chris).
      
      v4: Apply the wa whenever the req has been resubmitted and update
      comment (Chris).
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NThomas Daniel <thomas.daniel@intel.com>
      Signed-off-by: NMichel Thierry <michel.thierry@intel.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      53292cdb
    • D
      drm/i915: cope with large i2c transfers · 9535c475
      Dmitry Torokhov 提交于
      The hardware, according to the specs, is limited to 256 byte transfers,
      and current driver has no protections in case users attempt to do larger
      transfers. The code will just stomp over status register and mayhem
      ensues.
      
      Let's split larger transfers into digestable chunks. Doing this allows
      Atmel MXT driver on Pixel 1 function properly (it hasn't since commit
      9d8dc3e5 "Input: atmel_mxt_ts -
      implement T44 message handling" which tries to consume multiple
      touchscreen/touchpad reports in a single transaction).
      
      Cc: stable@vger.kernel.org
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      Signed-off-by: NJani Nikula <jani.nikula@intel.com>
      9535c475
  6. 21 4月, 2015 1 次提交
  7. 17 4月, 2015 1 次提交
  8. 14 4月, 2015 24 次提交