08-25-2014 07:40 PM
I have a problem with using Linux SPI Driver. The issue I am facing is that the driver will go into wait_for_completion state (reside in xspips_start_transfer in the device driver in the spi-xilinx-ps.c) after a few successful test. The kernel I am using is linux-xlnx, Xilinx-v14.4, with XPS 14.6.
I am currently using Zedboard version C for the development.
08-25-2014 11:05 PM
For further reference, the current fix i use to stop getting into the issue above,
is to change the Driver from manual start to auto start enable.
xspips_write(regs_base + XSPIPS_CR_OFFSET, 0x0000FC01);
xspips_write(regs_base + XSPIPS_CR_OFFSET, 0x00007C01);
It seems there is a premature of manual enable the device before it is ready at certain a point in the driver, which cause the random hang at wait_for_completion.