On Tue, Dec 01, 2026 at 05:24:29PM +0800, Luo Liu wrote: > komeda_attach_bridge() is called from the probe path, through the > pipeline setup in komeda_kms_attach(). Report a failure of > drm_bridge_attach() with dev_err_probe(), which also keeps > -EPROBE_DEFER silent. > > Signed-off-by: Luo Liu <[email protected]>
Reviewed-by: Liviu Dudau <[email protected]> Best regards, Liviu > --- > drivers/gpu/drm/arm/display/komeda/komeda_crtc.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c > b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c > index 21445385b245..fad278d6ec18 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c > @@ -616,7 +616,6 @@ static int komeda_attach_bridge(struct device *dev, > struct komeda_pipeline *pipe, > struct drm_encoder *encoder) > { > - struct drm_device *drm = encoder->dev; > struct drm_bridge *bridge; > int err; > > @@ -628,10 +627,10 @@ static int komeda_attach_bridge(struct device *dev, > > err = drm_bridge_attach(encoder, bridge, NULL, 0); > if (err) > - drm_err(drm, "bridge_attach() failed for pipe: %s\n", > - of_node_full_name(pipe->of_node)); > + return dev_err_probe(dev, err, "bridge_attach() failed for > pipe: %s\n", > + of_node_full_name(pipe->of_node)); > > - return err; > + return 0; > } > > static const struct drm_encoder_funcs komeda_encoder_funcs = { > -- > 2.25.1 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯
