Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Rename constant

[WHY]
7 is the minimum number of retries TX must attempt on an AUX DEFER, not
the maximum.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Wesley Chalmers and committed by
Alex Deucher
d307ce4b 30adeee5

+3 -3
+3 -3
drivers/gpu/drm/amd/display/dc/dce/dce_aux.c
··· 615 615 } 616 616 617 617 #define AUX_MAX_RETRIES 7 618 - #define AUX_MAX_DEFER_RETRIES 7 618 + #define AUX_MIN_DEFER_RETRIES 7 619 619 #define AUX_MAX_I2C_DEFER_RETRIES 7 620 620 #define AUX_MAX_INVALID_REPLY_RETRIES 2 621 621 #define AUX_MAX_TIMEOUT_RETRIES 3 ··· 664 664 retry_on_defer = true; 665 665 fallthrough; 666 666 case AUX_TRANSACTION_REPLY_I2C_OVER_AUX_NACK: 667 - if (++aux_defer_retries >= AUX_MAX_DEFER_RETRIES) { 667 + if (++aux_defer_retries >= AUX_MIN_DEFER_RETRIES) { 668 668 goto fail; 669 669 } else { 670 670 if ((*payload->reply == AUX_TRANSACTION_REPLY_AUX_DEFER) || ··· 701 701 // Check whether a DEFER had occurred before the timeout. 702 702 // If so, treat timeout as a DEFER. 703 703 if (retry_on_defer) { 704 - if (++aux_defer_retries >= AUX_MAX_DEFER_RETRIES) 704 + if (++aux_defer_retries >= AUX_MIN_DEFER_RETRIES) 705 705 goto fail; 706 706 else if (payload->defer_delay > 0) 707 707 msleep(payload->defer_delay);