drm/tilcdc fixing i2c/slave initialization race
authorDarren Etheridge <detheridge@ti.com>
Fri, 21 Jun 2013 18:52:27 +0000 (13:52 -0500)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Jun 2013 23:12:54 +0000 (09:12 +1000)
commit39de6194131c155901f96686a063212656d80c2e
tree251e3247c1c09c27bcd8401fce48aed92fdf7693
parentf7b4575601dafb3cf3c568465ec6980de6d09b94
drm/tilcdc fixing i2c/slave initialization race

In certain senarios drm will initialize before i2c this means that i2c
slave devices like the nxp tda998x will fail to be probed.  This patch
detects this condition then defers the probe of the slave device and
the tilcdc main driver.

Signed-off-by: Darren Etheridge <detheridge@ti.com>
Acked-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h
drivers/gpu/drm/tilcdc/tilcdc_slave.c