[PATCH v2 3/4] drm/bridge: ite-it66121: log an error if the IDs do not match
From: Luca Ceresoli
Date: Fri Nov 27 2026 - 06:21:27 EST
If the IDs read from the chip do not match any of the known models,
it66121_probe() fails silently, making troubleshooting unnecessarily
difficult. Log an error to clarify the failure reason, showing the IDs read
from the hardware.
Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
---
drivers/gpu/drm/bridge/ite-it66121.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index 4642a32f1bd0..596c31f3d5a9 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1661,7 +1661,8 @@ static int it66121_probe(struct i2c_client *client)
}
if (i == ARRAY_SIZE(it66xx_chip_info))
- return -ENODEV;
+ return dev_err_probe(dev, -ENODEV, "Unknown vendor %04x device %04x (rev %01x)\n",
+ vendor_id, device_id, revision_id);
ctx->bridge.of_node = dev->of_node;
ctx->bridge.type = DRM_MODE_CONNECTOR_HDMIA;
--
2.56.1