Messages in this thread | ![/](/images/icornerl.gif) | | Date | Wed, 28 Aug 2013 11:39:11 -0300 | Subject | Re: [PATCH] imx-drm: Fix probe failure | From | Fabio Estevam <> |
| |
On Wed, Aug 28, 2013 at 2:27 AM, Sascha Hauer <s.hauer@pengutronix.de> wrote:
> Nack. We need the references to prevent that encoders/connectors are > (de)registered while the device is active. Simply dropping this code is > no solution.
Any suggestions about a proper way of handling this?
After b5dc0d10, imx_drm_device_get() is called from imx_drm_driver_load(), which increments the 'references' very early now.
Then when we check:
if (imxdrm->references) { ret = -EBUSY; goto err_busy; }
,it will fail always.
Not sure where is a proper location to increment/decrement 'imxdrm->references' though.
Tried to look at other drm drivers, but could not find examples on how to deal with such references.
Regards,
Fabio Estevam
| ![\](/images/icornerr.gif) |