From a63848d043ea682faa0aee64072e2491b3ee2d11 Mon Sep 17 00:00:00 2001 From: jsg Date: Wed, 26 Jul 2023 06:35:39 +0000 Subject: [PATCH] drm/amd/display: Correct `DMUB_FW_VERSION` macro From Mario Limonciello 7ad40467fdfb57bdd8540a4a08cbb448f323c275 in linux-6.1.y/6.1.40 274d205cb59f43815542e04b42a9e6d0b9b95eff in mainline linux --- sys/dev/pci/drm/amd/display/dmub/dmub_srv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/amd/display/dmub/dmub_srv.h b/sys/dev/pci/drm/amd/display/dmub/dmub_srv.h index eb5b7eb292e..b53468aca4a 100644 --- a/sys/dev/pci/drm/amd/display/dmub/dmub_srv.h +++ b/sys/dev/pci/drm/amd/display/dmub/dmub_srv.h @@ -471,7 +471,7 @@ struct dmub_notification { * of a firmware to know if feature or functionality is supported or present. */ #define DMUB_FW_VERSION(major, minor, revision) \ - ((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | ((revision) & 0xFFFF)) + ((((major) & 0xFF) << 24) | (((minor) & 0xFF) << 16) | (((revision) & 0xFF) << 8)) /** * dmub_srv_create() - creates the DMUB service. -- 2.20.1