]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/radeon/kms: make sure retry count increases.
authorDave Airlie <airlied@redhat.com>
Mon, 15 Feb 2010 05:24:48 +0000 (15:24 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Feb 2010 05:24:48 +0000 (15:24 +1000)
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>
drivers/gpu/drm/radeon/atombios_dp.c

index b32eeea5bb8b24796318ab165712e39afbcfc3ef..99915a682d593deb4b4aabaf2cd81fd902bc9103 100644 (file)
@@ -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],