diff options
author | Dave Airlie <airlied@redhat.com> | 2010-02-15 06:24:48 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-15 06:24:48 +0100 |
commit | e803e8b2628f3e9a42f45c5b7bb1f9821b08352c (patch) | |
tree | c8b3464c79fb5b531b9e24937339327cf85c15c9 /drivers/gpu | |
parent | drm/radeon/kms/atom: use get_unaligned_le32() for ctx->ps (diff) | |
download | linux-e803e8b2628f3e9a42f45c5b7bb1f9821b08352c.tar.xz linux-e803e8b2628f3e9a42f45c5b7bb1f9821b08352c.zip |
drm/radeon/kms: make sure retry count increases.
In testing I've never seen it go past 1 retry anyways but better
safe than sorry.
Reported by Droste on irc.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/atombios_dp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index b32eeea5bb8b..99915a682d59 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c @@ -350,7 +350,7 @@ retry: atom_execute_table(rdev->mode_info.atom_context, index, (uint32_t *)&args); if (args.ucReplyStatus && !args.ucDataOutLen) { - if (args.ucReplyStatus == 0x20 && retry_count < 10) + if (args.ucReplyStatus == 0x20 && retry_count++ < 10) goto retry; DRM_DEBUG("failed to get auxch %02x%02x %02x %02x 0x%02x %02x after %d retries\n", req_bytes[1], req_bytes[0], req_bytes[2], req_bytes[3], |