]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mgag200: Fix big-endian support
authorRené Rebe <rene@exactco.de>
Mon, 8 Dec 2025 13:18:27 +0000 (14:18 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:18 +0000 (10:17 +0100)
commit635c8d6e72f6e6912b11fd8d534f35062221fbd9
treea6a03e83404084743596f5e55df0a0f9d48c56c5
parentb94182b3d7228aec18d069cba56d5982e9bfe1b1
drm/mgag200: Fix big-endian support

commit 6cb31fba137d45e682ce455b8ea364f44d5d4f98 upstream.

Unlike the original, deleted Matrox mga driver, the new mgag200 driver
has the XRGB frame-buffer byte swapped on big-endian "RISC"
systems. Fix by enabling byte swapping "PowerPC" OPMODE for any
__BIG_ENDIAN config.

Fixes: 414c45310625 ("mgag200: initial g200se driver (v2)")
Signed-off-by: René Rebe <rene@exactco.de>
Cc: stable@kernel.org
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20251208.141827.965103015954471168.rene@exactco.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mgag200/mgag200_mode.c