Add some extra information to the case when devm_drm_of_get_bridge() fails, e.g. with -EPROBE_DEFER. This makes it more obvious what this aux_bridge device is trying to do and what it may be going wrong or missing - e.g. when Type-C modules are not loaded yet.
As an example, this will change the message to: aux_bridge.aux_bridge.0 aux_bridge.aux_bridge: failed to acquire drm_bridge for 88e8000.phy Signed-off-by: Luca Weiss <[email protected]> --- drivers/gpu/drm/bridge/aux-bridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/aux-bridge.c b/drivers/gpu/drm/bridge/aux-bridge.c index 90f76bb529cc..c0a13a77fa55 100644 --- a/drivers/gpu/drm/bridge/aux-bridge.c +++ b/drivers/gpu/drm/bridge/aux-bridge.c @@ -126,7 +126,8 @@ static int drm_aux_bridge_probe(struct auxiliary_device *auxdev, data->next_bridge = devm_drm_of_get_bridge(&auxdev->dev, auxdev->dev.of_node, 0, 0); if (IS_ERR(data->next_bridge)) return dev_err_probe(&auxdev->dev, PTR_ERR(data->next_bridge), - "failed to acquire drm_bridge\n"); + "failed to acquire drm_bridge for %s\n", + dev_name(auxdev->dev.parent)); data->bridge.of_node = data->dev->of_node; --- base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f change-id: 20261124-aux-bridge-defer-0fc68decc013 Best regards, -- Luca Weiss <[email protected]>
