drm/nouveau/bios: fix i2c table parsing for dcb 4.1
authorStefan Huehner <stefan@huehner.org>
Sun, 22 Feb 2015 14:46:36 +0000 (15:46 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 16 Mar 2015 23:44:23 +0000 (09:44 +1000)
commit5a6f690ca565f536ab0fc05e267b08d5a7c36b46
tree5e0cdb9e9d1812fe39ce6792804371ccd5e88857
parent7e547adcea7b9d927009717e1f3303879d5f2687
drm/nouveau/bios: fix i2c table parsing for dcb 4.1

Code before looked only at bit 31 to decide if a port is unused.
However dcb 4.1 spec says 0x1F in bits 31-27 and 26-22 means unused.

This fixed hdmi monitor detection on GM206.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/i2c.c