I have a requirement for control chipselect for my spidevice.
The requirement is between two writes or reads my device should remain selected from contoller.
For example the sequence is like :
2)send some data ( i am using ioctl(SPI_IOC_MESSAGE(1) )
3)send some more data ( means sending one more time ioctl command).
Now after Write operation i need to read the data.
2)Read data ( i am using ioctl(SPI_IOC_MESSAGE(1) )
3)Read more data ( means sending one more time ioctl command).
but as per my understanding whenever we call ioctl(SPI_IOC_MESSAGE(1)) the control finally goes to mxc_spi.c (which is controller driver) and for each write/read it selects the chip -> enables the clock -> write/read data then deselects the chip.
Note : i saw it wrtites to the control register which actually has the value for chip select and all.
Is there any way i can meet the above requirement?
i am really stuck.