mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-07-23 17:47:28 +08:00

These patches were generated from: https://github.com/raspberrypi/linux/commits/rpi-6.12.y With the following command: git format-patch -N v6.12.27..HEAD (HEAD -> 8d3206ee456a5ecdf9ddbfd8e5e231e4f0cd716e) Exceptions: - (def)configs patches - github workflows patches - applied & reverted patches - readme patches - wireless patches Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From feafe4bed8d698342a3f3451b35695e2572172fe Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Fri, 13 Sep 2024 14:44:08 +0100
|
|
Subject: [PATCH] drm: panel: ili9881: Correct symmetry on enable/disable
|
|
return codes
|
|
|
|
ili9881c_enable is always returning 0.
|
|
|
|
ili9881c_disable was returning the error code from
|
|
mipi_dsi_dcs_set_display_off.
|
|
If non-zero, the drm_panel framework will leave the panel marked as
|
|
enabled, and not run the enable hook next time around. That isn't
|
|
helpful, particularly as we're expecting unprepare to disable
|
|
resets and regulators.
|
|
|
|
Change ili9881c_disable to match enable in always returning 0.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
|
+++ b/drivers/gpu/drm/panel/panel-ilitek-ili9881c.c
|
|
@@ -2138,7 +2138,9 @@ static int ili9881c_disable(struct drm_p
|
|
{
|
|
struct ili9881c *ctx = panel_to_ili9881c(panel);
|
|
|
|
- return mipi_dsi_dcs_set_display_off(ctx->dsi);
|
|
+ mipi_dsi_dcs_set_display_off(ctx->dsi);
|
|
+
|
|
+ return 0;
|
|
}
|
|
|
|
static int ili9881c_unprepare(struct drm_panel *panel)
|