drm/i915/gmbus: Enable burst read
authorRamalingam C <ramalingam.c@intel.com>
Thu, 28 Jun 2018 13:34:49 +0000 (19:04 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Jul 2018 15:31:28 +0000 (17:31 +0200)
commitd5dc0f43f268bf2b6bb61f109a18a652a49c6f4e
treede68a81289a693f1b7f2b2d90a84f9920f704542
parent73675cf6979bb80534641b1814a971eaf9f649b5
drm/i915/gmbus: Enable burst read

Support for Burst read in HW is added for HDCP2.2 compliance
requirement.

This patch enables the burst read for all the gmbus read of more than
511Bytes, on capable platforms.

v2:
  Extra line is removed.
v3:
  Macro is added for detecting the BURST_READ Support [Jani]
  Runtime detection of the need for burst_read [Jani]
  Calculation enhancement.
v4:
  GMBUS0 reg val is passed from caller [ville]
  Removed a extra var [ville]
  Extra brackets are removed [ville]
  Implemented the handling of 512Bytes Burst Read.
v5:
  Burst read max length is fixed at 767Bytes [Ville]
v6:
  Collecting the received reviewed-by.

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1530192889-5789-3-git-send-email-ramalingam.c@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_i2c.c