Patch "drm/mgag200: Store flags from PCI driver data in device structure" has been added to the 5.4-stable tree
Subsystems (3)
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
drm/mgag200: Store flags from PCI driver data in device structure
to the 5.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-mgag200-store-flags-from-pci-driver-data-in-device-structure.patch
and it can be found in the queue-5.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
From d6d437d97d54c85a1a93967b2745e31dff03365a Mon Sep 17 00:00:00 2001
From: Thomas Zimmermann <[email protected]>
Date: Tue, 26 Nov 2019 11:15:28 +0100
Subject: drm/mgag200: Store flags from PCI driver data in device structure
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Thomas Zimmermann <[email protected]>
commit d6d437d97d54c85a1a93967b2745e31dff03365a upstream.
The flags field in struct mga_device has been unused so far. We now use it to store flag bits from the PCI driver.
--- drivers/gpu/drm/mgag200/mgag200_drv.h | 8 ++++++++ drivers/gpu/drm/mgag200/mgag200_main.c | 1 + 2 files changed, 9 insertions(+)
drivers/gpu/drm/mgag200/mgag200_drv.h +8 -0
@@ -160,6 +160,7 @@ enum mga_type { };#define MGAG200_TYPE_MASK (0x000000ff) +#define MGAG200_FLAG_MASK (0x00ffff00)#define IS_G200_SE (mdev) (mdev->type == G200_SE_A || mdev->type == G200_SE_B)
@@ -195,6 +196,13 @@ mgag200_type_from_driver_data(kernel_ulo {return (enum mga_type )(driver_data &MGAG200_TYPE_MASK ); } + +static inline unsigned long +mgag200_flags_from_driver_data (kernel_ulong_t driver_data) +{ +return driver_data &MGAG200_FLAG_MASK ; +} +/* mgag200_mode.c */ int mgag200_modeset_init (struct mga_device *mdev);void mgag200_modeset_fini (struct mga_device *mdev);
drivers/gpu/drm/mgag200/mgag200_main.c +1 -0
@@ -94,6 +94,7 @@ static int mgag200_device_init(struct drstruct mga_device *mdev = dev->dev_private;int ret, option; + mdev->flags =mgag200_flags_from_driver_data (flags); mdev->type =mgag200_type_from_driver_data (flags);/* Hardcode the number of CRTCs to 1 */
Patches currently in stable-queue which might be from [email protected] are
queue-5.4/drm-mgag200-flag-all-g200-se-a-machines-as-broken-wrt-startadd.patch queue-5.4/drm-mgag200-store-flags-from-pci-driver-data-in-device-structure.patch queue-5.4/drm-mgag200-add-workaround-for-hw-that-does-not-support-startadd.patch queue-5.4/drm-mgag200-extract-device-type-from-flags.patch
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel