drm/i915/mtl: Cleanup usage of phy lane reset
authorMika Kahola <mika.kahola@intel.com>
Fri, 9 Jun 2023 12:21:30 +0000 (15:21 +0300)
committerJouni Högander <jouni.hogander@intel.com>
Thu, 15 Jun 2023 09:50:32 +0000 (12:50 +0300)
commitd4b62a1a251db33a453ffa9d3535bf6f4a011546
treec733b6af59cb2bea30daf25a1dc77f87e8300c82
parentb3e4aae612eca42950c4612f80ec199c15d2fd51
drm/i915/mtl: Cleanup usage of phy lane reset

From PICA message bus we wait for acknowledgment from
read/write commands. In case of an error, we reset the
bus for the next command.

Current implementation ends up resetting message bus twice
in cases where error is not the timeout. Since, we only need
to reset message bus once, let's move reset to corresponding
timeout error and drop the excess reset function calls from
read/write functions.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230609122130.69794-1-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c