summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-05-25 12:25:26 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-05-25 12:25:26 +0000
commitd92fb3d1f5e750270daca9737b0281bdddf60860 (patch)
tree6cb245321c2f2d2d5b08b8ecce965688836dda0f /sys/dev/pci
parentdbe38c33fd8f86ec44adf82dc92abe5f05402f83 (diff)
Revert "drm/i915/opregion: check port number bounds for SWSCI display power state"
From Greg Thelen 11e6a90ffd6294083b808d34ccc5a5ea18ed603e in linux 5.15.y/5.15.42
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/drm/i915/display/intel_opregion.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/pci/drm/i915/display/intel_opregion.c b/sys/dev/pci/drm/i915/display/intel_opregion.c
index 610a1e40d81..df469af1667 100644
--- a/sys/dev/pci/drm/i915/display/intel_opregion.c
+++ b/sys/dev/pci/drm/i915/display/intel_opregion.c
@@ -376,21 +376,6 @@ int intel_opregion_notify_encoder(struct intel_encoder *intel_encoder,
return -EINVAL;
}
- /*
- * The port numbering and mapping here is bizarre. The now-obsolete
- * swsci spec supports ports numbered [0..4]. Port E is handled as a
- * special case, but port F and beyond are not. The functionality is
- * supposed to be obsolete for new platforms. Just bail out if the port
- * number is out of bounds after mapping.
- */
- if (port > 4) {
- drm_dbg_kms(&dev_priv->drm,
- "[ENCODER:%d:%s] port %c (index %u) out of bounds for display power state notification\n",
- intel_encoder->base.base.id, intel_encoder->base.name,
- port_name(intel_encoder->port), port);
- return -EINVAL;
- }
-
if (!enable)
parm |= 4 << 8;