If the panel is not connected, the attach function is not called and a
bridge node is not created. In Tizen, dsi_bind operates as drm vc4
when dsi_bind is normally terminated. After waiting 5 attach calls,
dsi_bind returns to success.
Change-Id: I89b29752d63f5152415df3327cb47790d1b03979
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
struct drm_panel *panel;
const struct of_device_id *match;
dma_cap_mask_t dma_mask;
+ static int attach_cnt = 5;
int ret;
match = of_match_device(vc4_dsi_dt_match, dev);
if (ret == -ENODEV)
return 0;
+ if (!--attach_cnt)
+ ret = 0;
goto err_free_dma;
}