bcm27xx: 6.1: add kernel patches
[openwrt/staging/nbd.git] / target / linux / bcm27xx / patches-6.1 / 950-0357-drm-panel-simple-Populate-bpc-when-using-panel-dpi.patch
1 From e1b2f1d5c797e2073e058326f492fad3e61fb403 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Thu, 2 Dec 2021 18:10:55 +0000
4 Subject: [PATCH] drm/panel-simple: Populate bpc when using panel-dpi
5
6 panel-dpi doesn't know the bit depth, so in the same way that
7 DPI is guessed for the connector type, guess that it'll be 8bpc.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
10 ---
11 drivers/gpu/drm/panel/panel-simple.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14 --- a/drivers/gpu/drm/panel/panel-simple.c
15 +++ b/drivers/gpu/drm/panel/panel-simple.c
16 @@ -499,6 +499,8 @@ static int panel_dpi_probe(struct device
17
18 /* We do not know the connector for the DT node, so guess it */
19 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
20 + /* Likewise for the bit depth. */
21 + desc->bpc = 8;
22
23 panel->desc = desc;
24