[PATCH v3 21/22] drm/tilcdc: Initialize crtc->port
tomi.valkeinen at ti.com
Tue Feb 23 15:32:48 UTC 2016
On 23/02/16 17:26, Jyri Sarha wrote:
>> You didn't comment on why this is not an error? Why should the driver
>> continue even if crtc->port is missing?
> At least for the time being if the drm_of_find_possible_crtcs() fails
> the tda998x driver assumes the first crtc with a warning. So for that
> part everything will work just fine still.
> Then it is another question how priv->is_componentized could be set and
> probing has gotten this far while there is no port node to be found. The
> WARN_ON() should really never happen as long as the code is the way it
> currently is.
Ok. But I think it's either ok to not have crtc->port, and in that case
no print is needed, or it's not ok, and it's better to print an error
Now it's kind of vague: the driver continues without crtc->port, but
gives a scary WARN.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: OpenPGP digital signature
More information about the dri-devel