gpio_request Fails in linux 4.14.98

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

gpio_request Fails in linux 4.14.98

3,115件の閲覧回数
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

ラベル(5)
0 件の賞賛
返信
3 返答(返信)

2,912件の閲覧回数
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 件の賞賛
返信

2,912件の閲覧回数
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 件の賞賛
返信

2,912件の閲覧回数
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 件の賞賛
返信