On 05/02/2021 08:31, Stanimir Varbanov wrote:
Why not just move platform_set_drvdata(pdev, core) at the end of
venus_probe() after we registered v4l2_dev? I think this way we will
avoid this v4l2_dev gymnastics.
Because pm_ops->core_functionname() relies on getdrvdata.
I changed that in a version of this fix which I didn't publish but also
found that there were other dependencies in core::probe venc::probe and
vdec::probe on drvdata.
I can publish a fix for drvdata and you can take your preference