Skip to content

Commit

Permalink
Merge pull request torvalds#195 from Ken-Vamrs/linux-5.10-gen-rkr4.1
Browse files Browse the repository at this point in the history
Changes:
  * Fix the issue that cannot boot properly when RPI LCD is not connected.

Signed-off-by: Stephen Chen <stephen@radxa.com>
  • Loading branch information
RadxaStephen committed Aug 29, 2023
2 parents 7da700f + 1d02f7c commit fd78925
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/gpu/drm/panel/panel-raspits-tc358762.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <video/videomode.h>
#include <linux/delay.h>
int trigger_bridge_raspits_tc358762 = 1;
static int timeout = 5;

struct panel_desc {
const struct drm_display_mode *modes;
Expand Down Expand Up @@ -527,8 +528,11 @@ static int raspits_tc358762_dsi_probe(struct mipi_dsi_device *dsi)
if (!id)
return -ENODEV;

if (!rockpi_mcu_is_connected())
if (!rockpi_mcu_is_connected() && timeout > 0){
msleep(100);
timeout--;
return -EPROBE_DEFER;
}

desc = id->data;

Expand Down

0 comments on commit fd78925

Please sign in to comment.