aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch b/target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch
new file mode 100644
index 0000000000..5104067843
--- /dev/null
+++ b/target/linux/bcm27xx/patches-5.15/950-0689-drm-panel-simple-Remove-custom-handling-of-orientati.patch
@@ -0,0 +1,48 @@
+From 4c3df24cea00ca3973134f4e542cee1d501c1a88 Mon Sep 17 00:00:00 2001
+From: Dave Stevenson <dave.stevenson@raspberrypi.com>
+Date: Tue, 1 Feb 2022 12:24:51 +0000
+Subject: [PATCH] drm/panel: simple: Remove custom handling of
+ orientation
+
+Panel orientation is now handled by the drm_panel and
+panel_bridge frameworks, so remove the custom handling.
+
+Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
+---
+ drivers/gpu/drm/panel/panel-simple.c | 11 -----------
+ 1 file changed, 11 deletions(-)
+
+--- a/drivers/gpu/drm/panel/panel-simple.c
++++ b/drivers/gpu/drm/panel/panel-simple.c
+@@ -195,8 +195,6 @@ struct panel_simple {
+ struct edid *edid;
+
+ struct drm_display_mode override_mode;
+-
+- enum drm_panel_orientation orientation;
+ };
+
+ static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
+@@ -533,9 +531,6 @@ static int panel_simple_get_modes(struct
+ /* add hard-coded panel modes */
+ num += panel_simple_get_non_edid_modes(p, connector);
+
+- /* set up connector's "panel orientation" property */
+- drm_connector_set_panel_orientation(connector, p->orientation);
+-
+ return num;
+ }
+
+@@ -702,12 +697,6 @@ static int panel_simple_probe(struct dev
+ return err;
+ }
+
+- err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
+- if (err) {
+- dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
+- return err;
+- }
+-
+ ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
+ if (ddc) {
+ panel->ddc = of_find_i2c_adapter_by_node(ddc);