LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-12-2021, 03:19 AM   #1
Artem.Metra
LQ Newbie
 
Registered: Aug 2021
Posts: 1

Rep: Reputation: Disabled
v4l2 controls inheritance on subdevices when using async kapi


Hi,
I'm new to kernel development. I am currently working on embedded systems. I have a device tree and v4l2 devices/subdevices in which driver "A" depends on driver "B" and driver "B" depends on driver "C". I would like to make driver "B" wait for driver "C" first and then driver "B" registers with "A". Currently, I have mapped the dependency "A" <-> "B" and "B" <-> "C" with the async kapi. This works fine so far except that "B" has already registered with "A" before "C" is loaded. This leads to the fact that the controls of driver "C" are not visible in driver "A" (controls are transferred to the parent driver when registering when using ctrl_handler).

My question: What is the general approach in this situation. I believe the key is in returning -EPROBE_DEFER in the probe function in driver "B". However, it is unclear to me how to check if a connected node in the DeviceTree has already loaded its driver.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access v4l2 controls at i2c sensor (camera) driver? ssuesens Linux - Kernel 5 12-09-2018 11:51 PM
My munin graphs are not updated using munin-async FL_SA Linux - Server 0 06-03-2015 11:45 AM
LXer: Carla Schroder: Whoever controls technology controls society LXer Syndicated Linux News 0 03-22-2012 09:40 AM
Using blk_make_request() kAPI for REQ_TYPE_BLOCK_PC commands dwata Linux - Kernel 0 03-31-2011 02:43 AM
Use audio-subdevices as DSP pugilism Linux - Hardware 0 05-01-2006 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration