Hi,
I am using Linux 4.14.98 Ga release source.
Here when I tried to requets a gpio in 'arch/arm/mach-imx/mach-imx6q.c', it fails with EPROBE_DEFER (517) error.
But able to export same gpio using SYSFS using "echo * > /sys/class/gpio/export" command.
Why it is not able to access it in mach-imx6q.c file? is there any driver dependency?
Best Regards,
Yashavantha
Hi Yashavantha
one can try to add #include <linux/gpio.h>
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Thank you for the reply.
I have already included above file.
Also gpio request works fine if the same section is added in 'drivers/gpio/gpio-mxc.c' file.
Best Regards,
Yashavantha
Hi Yashavantha
one can try to debug it using AN4553 Using Open Source Debugging Tools
for Linux on i.MX Processors
https://www.nxp.com/docs/en/application-note/AN4553.pdf
Best regards
igor