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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Oct 2011 21:14:52 +0000 (14:14 -0700)
commitc6e2e6abefaceb135487e805b7af78afdbff563e
treeb61dcba30a262590e9aa8f740f5265d4c6617ecb
parent290771305e6699f3807950f30562781d9bc593df
drm/radeon/kms: add retry limits for native DP aux defer

commit 6375bda073724ead7df08746866b724b1799a295 upstream.

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>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/radeon/atombios_dp.c