drm/radeon/kms: add retry limits for native DP aux defer
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 3 Oct 2011 13:13:46 +0000 (09:13 -0400)
committerDave Airlie <airlied@redhat.com>
Mon, 3 Oct 2011 17:37:31 +0000 (18:37 +0100)
commit6375bda073724ead7df08746866b724b1799a295
treee2fb38f42845db6a31a532611e1f4e4dd164bc12
parent109bc10d30f33e84f1d7289f0039e0c858ade82f
drm/radeon/kms: add retry limits for native DP aux defer

The previous code could potentially loop forever.  Limit
the number of DP aux defer retries to 4 for native aux
transactions, same as i2c over aux transactions.

Noticed by: Brad Campbell <lists2009@fnarfbargle.com>

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: Brad Campbell <lists2009@fnarfbargle.com>
Cc: stable@kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atombios_dp.c