SPI ioctl hangs in imx6ul

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI ioctl hangs in imx6ul

1,048 次查看
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?

 

 

 

标记 (1)
0 项奖励
回复
4 回复数

1,019 次查看
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 项奖励
回复

995 次查看
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 项奖励
回复

983 次查看
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 项奖励
回复

971 次查看
obulesu_veggidi
Contributor II
Hello Bio_TICFSL,
We have interfaced CLRC663 chip which is a NXP contactless card reader chip.
0 项奖励
回复