drm/i915: Make use of indexed write GMBUS feature
authorSean Paul <seanpaul@chromium.org>
Mon, 8 Jan 2018 19:55:40 +0000 (14:55 -0500)
committerSean Paul <seanpaul@chromium.org>
Mon, 8 Jan 2018 19:58:24 +0000 (14:58 -0500)
commitd02cf0a4f4db3bdbf1f7fa6915db0a96bd98ed9e
treed17d7aabe979667c5c676271d01401af18ec7089
parentee5e5e7a5e0fdeca5add8de6314b1f0a62604bdf
drm/i915: Make use of indexed write GMBUS feature

This patch enables the indexed write feature of the GMBUS to concatenate
2 consecutive messages into one. The criteria for an indexed write is
that both messages are writes, the first is length == 1, and the second
is length > 0. The first message is sent out by the GMBUS as the slave
command, and the second one is sent via the GMBUS FIFO as usual.

Changes in v3:
- Added to series
Changes in v4:
- Combine indexed reads and writes (Ville)
Changes in v5:
- checkpatch whitespace nits
Changes in v6:
- None

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180108195545.218615-7-seanpaul@chromium.org
drivers/gpu/drm/i915/intel_i2c.c