Skip to content
Snippets Groups Projects
Commit cedc942b authored by Tommy Chen's avatar Tommy Chen Committed by Oleksii Kutuzov
Browse files

GENIO: panel: startek-kd070fhfid015: remove panel if mipi_dsi_attach fails


The problem is the panel driver got -EPROBE_DEFER from dsi host which
is not ready yet, but after defer probing the second time, finding the
matching panel while attaching to the host is causing de-referencing
error due to the un-removed panel of the previous one.

Therefore remove the panel if mipi_dsi_attach fails.

Change-Id: I3c3325853cacce889cfbdc1e8fcb43627072d931
Signed-off-by: default avatarTommy Chen <tommyyl.chen@mediatek.com>
parent a1370c87
No related branches found
No related tags found
1 merge request!15[UPSTREAM] Add miscellaneous patches from Mediatek's Release 24.0
......@@ -445,7 +445,14 @@ static int stk_panel_probe(struct mipi_dsi_device *dsi)
if (ret < 0)
return ret;
return mipi_dsi_attach(dsi);
ret = mipi_dsi_attach(dsi);
if (ret < 0) {
drm_panel_remove(&stk->base);
dev_err(&dsi->dev, "mipi_dsi_attach() failed: %d\n", ret);
return -EPROBE_DEFER;
}
return ret;
}
static int stk_panel_remove(struct mipi_dsi_device *dsi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment