From: Ben Skeggs Date: Fri, 27 Jul 2012 04:18:03 +0000 (+1000) Subject: drm/nouveau/aux: mask off higher bits of auxch index in i2c table entry X-Git-Tag: v3.6~105^2~4^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3d7a1da2c2bddb916450b1a124a9bcd9c507bdce;p=platform%2Fkernel%2Flinux-amlogic.git drm/nouveau/aux: mask off higher bits of auxch index in i2c table entry At least partially fixes DP output detection on W530. Not sure if more issues remain, or if my adaptor is just behaving weirdly (it does that sometimes). In any case, this patch is necessary. Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nouveau_i2c.c b/drivers/gpu/drm/nouveau/nouveau_i2c.c index 77e5646..240cf96 100644 --- a/drivers/gpu/drm/nouveau/nouveau_i2c.c +++ b/drivers/gpu/drm/nouveau/nouveau_i2c.c @@ -229,7 +229,7 @@ nouveau_i2c_init(struct drm_device *dev) } break; case 6: /* NV50- DP AUX */ - port->drive = entry[0]; + port->drive = entry[0] & 0x0f; port->sense = port->drive; port->adapter.algo = &nouveau_dp_i2c_algo; break;