Commit 2239b76b authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/bios: translate devinit pri/sec i2c bus to internal identifiers

fdo#92013.

Regression from "i2c: transition pad/ports away from being based on nvkm_object"
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 049e6dde
...@@ -267,6 +267,12 @@ init_i2c(struct nvbios_init *init, int index) ...@@ -267,6 +267,12 @@ init_i2c(struct nvbios_init *init, int index)
index = NVKM_I2C_BUS_PRI; index = NVKM_I2C_BUS_PRI;
if (init->outp && init->outp->i2c_upper_default) if (init->outp && init->outp->i2c_upper_default)
index = NVKM_I2C_BUS_SEC; index = NVKM_I2C_BUS_SEC;
} else
if (index == 0x80) {
index = NVKM_I2C_BUS_PRI;
} else
if (index == 0x81) {
index = NVKM_I2C_BUS_SEC;
} }
bus = nvkm_i2c_bus_find(i2c, index); bus = nvkm_i2c_bus_find(i2c, index);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment