drm/dp/i2c: send bare addresses to properly reset i2c connections (v4)
authorAlex Deucher <alexdeucher@gmail.com>
Mon, 7 Apr 2014 14:33:44 +0000 (10:33 -0400)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Apr 2014 14:12:38 +0000 (16:12 +0200)
commitccdb516e1873d9c69377bfec1e3392f3ed660102
treef1c37f89c63a83145444c55793149f55219c6adf
parent25377b921b4078a509f384fdd328b50d46414d9c
drm/dp/i2c: send bare addresses to properly reset i2c connections (v4)

We need bare address packets at the start and end of
each i2c over aux transaction to properly reset the connection
between transactions.  This mirrors what the existing dp i2c
over aux algo currently does.

This fixes EDID fetches on certain monitors especially with
dp bridges.

v2: update as per Ville's comments
    - Set buffer to NULL for zero sized packets
    - abort the entre transaction if one of the messages fails
v3: drop leftover debugging code
v4: integrate Thierry's comments
    - add comments about address only transactions
    - switch back to i and j

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Cc: Thierry Reding <treding@nvidia.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/drm_dp_helper.c
This page took 0.039928 seconds and 5 git commands to generate.