mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
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: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
049e6dde7e
commit
2239b76b0b
@ -267,6 +267,12 @@ init_i2c(struct nvbios_init *init, int index)
|
||||
index = NVKM_I2C_BUS_PRI;
|
||||
if (init->outp && init->outp->i2c_upper_default)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user