Skip to contentSkip to conversation

drm/panel: synaptics-r63353: Fix regulator unbalance

PATCH Superseded Dario Binacchi 2 participants 2 messages Oct 24, 2024

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panel: synaptics-r63353: Fix regulator unbalance

From: Michael Trimarchi <[email protected]>

The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning.

---

 drivers/gpu/drm/panel/panel-synaptics-r63353.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +1 -1
index 169c629746c7..17349825543f 100644
@@ -325,7 +325,7 @@ static void r63353_panel_shutdown(struct mipi_dsi_device *dsi)
 {
 	struct r63353_panel *rpanel = mipi_dsi_get_drvdata(dsi);
 
-	r63353_panel_unprepare(&rpanel->base);
+	drm_panel_unprepare(&rpanel->base);
 }
 
 static const struct r63353_desc sharp_ls068b3sx02_data = {
Signature · 1 line
2.43.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Dario Binacchi

From: Michael Trimarchi <[email protected]>

The shutdown function can be called when the display is already unprepared. For example during reboot this trigger a kernel backlog. Calling the drm_panel_unprepare, allow us to avoid to trigger the kernel warning.

Could you add a Fixed tag ?

Quoted 11 lines

---

  drivers/gpu/drm/panel/panel-synaptics-r63353.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panel/panel-synaptics-r63353.c +0 -0
index 169c629746c7..17349825543f 100644

drivers/gpu/drm/panel/panel-synaptics-r63353.c static void r63353_panel_shutdown(struct mipi_dsi_device *dsi) · line 331

Quoted 8 lines
drivers/gpu/drm/panel/panel-synaptics-r63353.c +1 -1
@@ -325,7 +325,7 @@ static void r63353_panel_shutdown(struct mipi_dsi_device *dsi)
  {
  	struct r63353_panel *rpanel = mipi_dsi_get_drvdata(dsi);
 
-	r63353_panel_unprepare(&rpanel->base);
+	drm_panel_unprepare(&rpanel->base);
  }
 
  static const struct r63353_desc sharp_ls068b3sx02_data = {

With that: