[PATCH] omap: dsi: do not WARN on detach if dsidev was never attached

Tony Lindgren tony at atomide.com
Wed Sep 20 05:50:13 UTC 2023


* H. Nikolaus Schaller <hns at goldelico.com> [230919 13:38]:
> dsi_init_output() called by dsi_probe() may fail. In that
> case mipi_dsi_host_unregister() is called which may call
> omap_dsi_host_detach() with uninitialized dsi->dsidev
> because omap_dsi_host_attach() was never called before.
> 
> This happens if the panel driver asks for an EPROBE_DEFER.
> 
> So let's suppress the WARN() in this special case.

Reviewed-by: Tony Lindgren <tony at atomide.com>

Thanks,

Tony


More information about the dri-devel mailing list