I want to check if IMX219 camera works okay. That includes not only checking if it’s connected but also if there is a failure with the hardware or software. I would assume IMX219 camera should have a register that holds some kind of information, but I have yet to find it.
To start with, I intend to modify nvidia/drivers/media/i2c/imx219.c and add a polling code to detect each driver error (when probing, when streaming etc.) that is being produced and be notified from the user space. Is this a good approach? Will this provide enough information?
What else can I do to make sure picture is okay from the kernel driver side and from the user space side?
Thank you for information in advance.