Skip to content

Commit

Permalink
drm/nouveau/bios: translate devinit pri/sec i2c bus to internal ident…
Browse files Browse the repository at this point in the history
…ifiers

fdo#92013.

Regression from "i2c: transition pad/ports away from being based on nvkm_object"

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Oct 12, 2015
1 parent 049e6dd commit 2239b76
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2239b76

Please sign in to comment.