AnsweredAssumed Answered

Error return during gpio_request_array -16 (-EBUSY) on custom board using i.MX6Q

Question asked by Yogesh Gupta on Dec 3, 2015
Latest reply on Dec 11, 2015 by Yuri Muhin

Hi

I have to configure some pins as GPIO IN/OUT on our custom board having i.MX6 Q.

There were 2 ways to do this first via DT and second is change the mach-xxx.c i.e. in kernel

I opted for 2nd one and used mxc_iomux_v3_setup_multiple_pads() to change the PIN MUX/PAD setting and gpio_request_array() to configure the direction of gpio from .init_machine function.

 

But I am getting error from gpio_request_array with return value -16 (-EBUSY) i.e. /* Device or resource busy */

The gpio array is of type

{IMX_GPIO_NR(6, 10 )  ,  GPIOF_IN ,  " Toggle "}.....................

 

While debugging I put the PIN muxing part in kernel in init_machine and gpio_request_array in a custom gpio driver but I am getting the same error again and again.

 

Please help.

 

Thanks

Outcomes