drm/nouveau: Put back the old 2-messages I2C slave test.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 23 Jul 2010 21:17:57 +0000 (23:17 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 26 Jul 2010 01:43:31 +0000 (11:43 +1000)
commitf1feda70b5dfdbe6a1069efffec099b430467331
tree95d7dd0abe2f808ca8812bd2f19967564c2b39d7
parente04d8e829d7807e132d8c82c3554b164a803c617
drm/nouveau: Put back the old 2-messages I2C slave test.

I was hoping we could detect I2C devices at a given address without
actually writing data into them, but apparently some DDC slaves get
confused with 0-bytes transactions. Put the good old test back.

Reported-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_i2c.c