
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.78 Removed upstreamed: bcm27xx/patches-6.6/950-0487-drivers-media-imx296-Add-standby-delay-during-probe.patch[1] mediatek/patches-6.6/256-clk-mediatek-mt2701-vdec-fix-conversion-to-mtk_clk_s.patch[2] mediatek/patches-6.6/257-clk-mediatek-mt2701-aud-fix-conversion-to-mtk_clk_si.patch[3] mediatek/patches-6.6/258-clk-mediatek-mt2701-bdp-add-missing-dummy-clk.patch[4] mediatek/patches-6.6/259-clk-mediatek-mt2701-mm-add-missing-dummy-clk.patch[5] mediatek/patches-6.6/260-clk-mediatek-mt2701-img-add-missing-dummy-clk.patch[6] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=25abffee5ceb6691ecd4f089be2bb28842e2d2fd 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=b6c5237ab7af82c9f1d8d772dbf309bb4aadfdbb 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=20210b5c775d2d96f706591c64bc2ad975c37eaf 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=a1fa3dda6bf0b7ecd95fa8f9125e5486b699a81f 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=fc60e9357f15372698da373ee76de8f52d22aac2 6. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.78&id=6f4868e6b2887b55531bc8e0a4106ef0150e6326 Build system: x86/64 Build-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Run-tested: bcm27xx/bcm2712, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64 Signed-off-by: John Audia <therealgraysky@proton.me> Link: https://github.com/openwrt/openwrt/pull/18000 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 57b0304ce93b9e84701de3091c9f272e6b14e6fa) Link: https://github.com/openwrt/openwrt/pull/17987 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
From b882872e4391bf38d8cb7fb2544d6941f297b57d Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Tue, 1 Feb 2022 12:20:20 +0000
|
|
Subject: [PATCH 1051/1085] drm/panel: Add and initialise an orientation field
|
|
to drm_panel from OF
|
|
|
|
"rotation" is listed as a standard property of panels in panel-common.yaml,
|
|
therefore it would be logical to process that from within the core
|
|
code should a panel driver not implement the get_orientation hook.
|
|
|
|
Call of_drm_get_panel_orientation from
|
|
drm_connector_set_orientation_from_panel to get that information.
|
|
|
|
This removes the need for any boiler-plate in panel drivers for calling
|
|
drm_connector_set_orientation_from_panel or
|
|
drm_connector_set_panel_orientation.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
drivers/gpu/drm/drm_connector.c | 9 +++++++--
|
|
1 file changed, 7 insertions(+), 2 deletions(-)
|
|
|
|
--- a/drivers/gpu/drm/drm_connector.c
|
|
+++ b/drivers/gpu/drm/drm_connector.c
|
|
@@ -2698,10 +2698,15 @@ int drm_connector_set_orientation_from_p
|
|
{
|
|
enum drm_panel_orientation orientation;
|
|
|
|
- if (panel && panel->funcs && panel->funcs->get_orientation)
|
|
+ if (panel && panel->funcs && panel->funcs->get_orientation) {
|
|
orientation = panel->funcs->get_orientation(panel);
|
|
- else
|
|
+ } else {
|
|
orientation = DRM_MODE_PANEL_ORIENTATION_UNKNOWN;
|
|
+ if (panel) {
|
|
+ of_drm_get_panel_orientation(panel->dev->of_node,
|
|
+ &orientation);
|
|
+ }
|
|
+ }
|
|
|
|
return drm_connector_set_panel_orientation(connector, orientation);
|
|
}
|