Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2896b539 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Don't offset the pin used for crt_ddc



Previously when converting the GMBUS pin to the GPIO reg, we would
offset the pin by one and then use the look-up table. Now that we first
try to use the GMBUS pin, we no longer need the offset and can use the
value from the VBIOS directly.

Reported-by: default avatarCarlos R. Mafra <crmafra2@gmail.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent dfaae392
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -299,7 +299,7 @@ parse_general_definitions(struct drm_i915_private *dev_priv,
			int bus_pin = general->crt_ddc_gmbus_pin;
			int bus_pin = general->crt_ddc_gmbus_pin;
			DRM_DEBUG_KMS("crt_ddc_bus_pin: %d\n", bus_pin);
			DRM_DEBUG_KMS("crt_ddc_bus_pin: %d\n", bus_pin);
			if (bus_pin >= 1 && bus_pin <= 6)
			if (bus_pin >= 1 && bus_pin <= 6)
				dev_priv->crt_ddc_pin = bus_pin - 1;
				dev_priv->crt_ddc_pin = bus_pin;
		} else {
		} else {
			DRM_DEBUG_KMS("BDB_GD too small (%d). Invalid.\n",
			DRM_DEBUG_KMS("BDB_GD too small (%d). Invalid.\n",
				  block_size);
				  block_size);