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

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

 




On 2/5/21 1:24 PM, Bryan O'Donoghue wrote:
> 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

I'd prefer this solution. Do you see a problem if we change
core_get|put|power functional pointers from pm_ops to receive a
venus_core pointer instead of core->dev?


-- 
regards,
Stan



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux