[PATCH v5 1/4] drm/bridge: ti-sn65dsi86: check AUX errors better
Tomi Valkeinen
tomi.valkeinen at ideasonboard.com
Wed Aug 24 13:00:31 UTC 2022
From: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
The driver does not check AUX_IRQ_STATUS_NAT_I2C_FAIL bit at all when
sending AUX transfers, which leads to the driver not returning an error.
Add the check.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen+renesas at ideasonboard.com>
---
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index 90bbabde1595..ba84215c1511 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -582,6 +582,11 @@ static ssize_t ti_sn_aux_transfer(struct drm_dp_aux *aux,
goto exit;
}
+ if (val & AUX_IRQ_STATUS_NAT_I2C_FAIL) {
+ ret = -EIO;
+ goto exit;
+ }
+
if (val & AUX_IRQ_STATUS_AUX_SHORT) {
ret = regmap_read(pdata->regmap, SN_AUX_LENGTH_REG, &len);
if (ret)
--
2.34.1
More information about the dri-devel
mailing list