gpio_request Fails in linux 4.14.98

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gpio_request Fails in linux 4.14.98

1,423 Views
yashavantha_yas
Contributor I

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

Labels (5)
0 Kudos
3 Replies

1,220 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,220 Views
yashavantha_yas
Contributor I

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

0 Kudos

1,220 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos