drm: mxsfb: Silence -EPROBE_DEFER while waiting for bridge
authorGuido Günther <agx@sigxcpu.org>
Tue, 15 Dec 2020 08:23:38 +0000 (09:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Dec 2020 10:01:10 +0000 (11:01 +0100)
commitee46d16d2e40bebc2aa790fd7b6a056466ff895c
treeb7a0cfbf0e53651a3aaefcff57a40fa6e562e821
parentbe98e05a67f05ff4c8349a51fcec993a28be718c
drm: mxsfb: Silence -EPROBE_DEFER while waiting for bridge

It can take multiple iterations until all components for an attached DSI
bridge are up leading to several:

[    3.796425] mxsfb 30320000.lcd-controller: Cannot connect bridge: -517
[    3.816952] mxsfb 30320000.lcd-controller: [drm:mxsfb_probe [mxsfb]] *ERROR* failed to attach bridge: -517

Silence this by checking for -EPROBE_DEFER and using dev_err_probe() so
we set a deferred reason in case a dependency fails to probe (which
quickly happens on small config/DT changes due to the rather long probe
chain which can include bridges, phys, panels, backights, leds, etc.).

This also removes the only DRM_DEV_ERROR() usage, the rest of the driver
uses dev_err().

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Fixes: c42001e357f7 ("drm: mxsfb: Use drm_panel_bridge")
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/d5761eb871adde5464ba112b89d966568bc2ff6c.1608020391.git.agx@sigxcpu.org
drivers/gpu/drm/mxsfb/mxsfb_drv.c