drm: tidss: Fix pixel format definition
authorRandolph Sapp <rs@ti.com>
Fri, 2 Dec 2022 00:18:03 +0000 (18:18 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:20 +0000 (09:39 +0100)
[ Upstream commit 2df0433b18f2735a49d2c3a968b40fa2881137c0 ]

There was a long-standing bug from a typo that created 2 ARGB1555 and
ABGR1555 pixel format entries. Weston 10 has a sanity check that alerted
me to this issue.

According to the Supported Pixel Data formats table we have the later
entries should have been for Alpha-X instead.

Signed-off-by: Randolph Sapp <rs@ti.com>
Fixes: 32a1795f57eecc ("drm/tidss: New driver for TI Keystone platform Display SubSystem")
Reviewed-by: Aradhya Bhatia <a-bhatia1@ti.com>
Acked-by: Andrew Davis <afd@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221202001803.1765805-1-rs@ti.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tidss/tidss_dispc.c

index 60b92df615aa5d80e831815cfd77bbb3bb43b0bf..f54517698710f47d5c3b9f8cd7ad69a6fe081f7b 100644 (file)
@@ -1855,8 +1855,8 @@ static const struct {
        { DRM_FORMAT_XBGR4444, 0x21, },
        { DRM_FORMAT_RGBX4444, 0x22, },
 
-       { DRM_FORMAT_ARGB1555, 0x25, },
-       { DRM_FORMAT_ABGR1555, 0x26, },
+       { DRM_FORMAT_XRGB1555, 0x25, },
+       { DRM_FORMAT_XBGR1555, 0x26, },
 
        { DRM_FORMAT_XRGB8888, 0x27, },
        { DRM_FORMAT_XBGR8888, 0x28, },