drm/radeon/kms: add connectors even if i2c fails
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 14 Apr 2011 21:24:07 +0000 (17:24 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Apr 2011 23:06:01 +0000 (09:06 +1000)
commita70882aa3137fff9532b51ed5d6a92922e1c4c9c
tree934e0579d238777106bb5c406a9b936c3c46100f
parent8e461123f28e6b17456225e70eb834b3b30d28bb
drm/radeon/kms: add connectors even if i2c fails

Sometimes the i2c test in i2c_bit_add_bus fails
if this happens we fail to register the i2c adapter and
eventually fail to add the connector.  If i2c fails,
add the connector to the user can at least force
it on.

Note that some distros set i2c-algo-bit.bit_test to 1 by
default which sometimes fails preventing the ddc i2c adapter
from being added.  The i2c adapter works even if the bit test
fails, probably due to pre/post_xfer not getting called in
the test_bit function.  I have another patch to follow
up on that.

See:
https://bugs.freedesktop.org/show_bug.cgi?id=36221

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_i2c.c