Re: [PATCH] media: venus: core, venc, vdec: Fix probe dependency error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux