From 42b7fbe82fb751e7b08d27c77d80fca24fac640b Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 7 Apr 2022 09:36:23 +0000 Subject: [PATCH] drm/vrr: Set VRR capable prop only if it is attached to connector From Manasi Navare 3534c5c005ef99a1804ed50b8a72cdae254cabb5 in linux 5.15.y/5.15.30 62929726ef0ec72cbbe9440c5d125d4278b99894 in mainline linux --- sys/dev/pci/drm/drm_connector.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pci/drm/drm_connector.c b/sys/dev/pci/drm/drm_connector.c index 83f0a270ab1..e9e12a1a6ee 100644 --- a/sys/dev/pci/drm/drm_connector.c +++ b/sys/dev/pci/drm/drm_connector.c @@ -2233,6 +2233,9 @@ EXPORT_SYMBOL(drm_connector_atomic_hdr_metadata_equal); void drm_connector_set_vrr_capable_property( struct drm_connector *connector, bool capable) { + if (!connector->vrr_capable_property) + return; + drm_object_property_set_value(&connector->base, connector->vrr_capable_property, capable); -- 2.20.1