SPI ioctl hangs in imx6ul

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

SPI ioctl hangs in imx6ul

1,030 Views
obulesu_veggidi
Contributor II

Hi,

sometimes spi ioctl in imx6ul hangs indefinitely.
ioctl(sSpiObj.spiFd, SPI_IOC_MESSAGE(1), &sSpiTransfer);

What could be the reason, is the issue belongs to the driver or SPI config in dts file?

 

 

 

Tags (1)
0 Kudos
Reply
4 Replies

1,001 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

 The as example:

struct spi_ioc_transfer tr[256];

has to be defined as a global variable.

Regards

0 Kudos
Reply

977 Views
obulesu_veggidi
Contributor II
Hello Bio_TICFSL,
I made it as a global variable, still the problem exist.
Do I need to change SPI config in dts?
0 Kudos
Reply

965 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi, You said it happens sometimes, this should be a problem of the hardware you have connected.

Regards

0 Kudos
Reply

953 Views
obulesu_veggidi
Contributor II
Hello Bio_TICFSL,
We have interfaced CLRC663 chip which is a NXP contactless card reader chip.
0 Kudos
Reply