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

Commit 04f542c0 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau: support init table i2c device identifier 0x81



It appears to be meant to reference the second "default index".

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent f8b0be1a
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -810,6 +810,9 @@ init_i2c_device_find(struct drm_device *dev, int i2c_index)
	}
	}
	if (i2c_index == 0x80)	/* g80+ */
	if (i2c_index == 0x80)	/* g80+ */
		i2c_index = dcb->i2c_default_indices & 0xf;
		i2c_index = dcb->i2c_default_indices & 0xf;
	else
	if (i2c_index == 0x81)
		i2c_index = (dcb->i2c_default_indices & 0xf0) >> 4;


	if (i2c_index > DCB_MAX_NUM_I2C_ENTRIES) {
	if (i2c_index > DCB_MAX_NUM_I2C_ENTRIES) {
		NV_ERROR(dev, "invalid i2c_index 0x%x\n", i2c_index);
		NV_ERROR(dev, "invalid i2c_index 0x%x\n", i2c_index);