drm/bridge: anx7625: Fix edid_read break case in sp_tx_edid_read()
authorHsin-Yi Wang <hsinyi@chromium.org>
Thu, 18 Nov 2021 19:30:02 +0000 (03:30 +0800)
committerRobert Foss <robert.foss@linaro.org>
Wed, 24 Nov 2021 12:32:53 +0000 (13:32 +0100)
commit0bae5687bc689b64343fd8b52db2ad9e448f3f16
treed3e51b33021819ce046cae784c6c7dd92d860972
parent7057474c83817cc707c4a0f08ed05774659a2fc9
drm/bridge: anx7625: Fix edid_read break case in sp_tx_edid_read()

edid_read() was assumed to return 0 on success. After commit
7f16d0f3b8e2("drm/bridge: anx7625: Propagate errors from sp_tx_rst_aux()"),
the function will return > 0 for successful case, representing the i2c
read bytes. Otherwise -EIO on failure cases. Update the g_edid_break
break condition accordingly.

Fixes: 7f16d0f3b8e2("drm/bridge: anx7625: Propagate errors from sp_tx_rst_aux()")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Xin Ji <xji@analogixsemi.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20211118193002.407168-1-hsinyi@chromium.org
drivers/gpu/drm/bridge/analogix/anx7625.c