<p dir="ltr"><br>
10 gru 2014 17:16 "Russell King - ARM Linux" <<a href="mailto:linux@arm.linux.org.uk">linux@arm.linux.org.uk</a>> napisał(a):<br>
><br>
> On Wed, Dec 10, 2014 at 04:48:18PM +0100, Andrzej Hajda wrote:<br>
> > 3. There are drivers which can work without specific resource, but if<br>
> > the resource becomes available/unavailable it can do some additional stuff.<br>
> > An example of such driver is DRM driver (more precisely drm_connector) -<br>
> > it can start without attached drm_panel, but if the panel becomes available it<br>
> > can react by generating HPD event and start using it.<br>
><br>
> Bad example, and actually incorrect. DRM connectors are referenced in<br>
> userspace by an IDR number, which can be re-used in the case of a<br>
> connector appearing, disappearing, and then a different connector<br>
> re-appearing.</p>
<p dir="ltr">But it is not about reappearing of drm_connector, it is about reappearing of drm_panel which is fortunately not a part of drm driver. Connector here is only consumer of drm_panel which should have possibility to receive notifications on panel (dis-)appearance. </p>
<p dir="ltr">Regards<br>
Andrzej</p>
<p dir="ltr">><br>
> DRM really is *not* safe to hotplug like this: DRM is more a card-level<br>
> thing, which is why we have the component helpers - which allow us to<br>
> merge several devices into one logical card-like device in a generic<br>
> manner.<br>
><br>
> DRM needs a stable picture of the CRTCs, encoders and connectors, which<br>
> should _never_ change during the lifetime of the DRM device. Devices<br>
> attached to connectors can be hotplugged, but that's about the limit of<br>
> hot-plugging in DRM.<br>
><br>
> --<br>
> FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up<br>
> according to <a href="http://speedtest.net">speedtest.net</a>.<br>
> _______________________________________________<br>
> dri-devel mailing list<br>
> <a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a></p>