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.
Signed-off-by: Luca Ceresoli <[email protected]> --- 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 9b43456c67a1..49eb8318e974 100644 --- a/drivers/gpu/drm/bridge/ite-it66121.c +++ b/drivers/gpu/drm/bridge/ite-it66121.c @@ -1675,7 +1675,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.0
