Hello all,
I'm having an issue with spi on the omap3530. I have an FPGA connected to mcspi3 CS0, and i wrote a kernel module that reads from it. there are two problems.
my board spi configure structure looks like this
{
.modalias = "fpga_comm",
.bus_num = 3,
.chip_select = 0,
.irq = OMAP_GPIO_IRQ(QNA_HC_BUTTONS_GPIO),
}
the driver i wrote later sets the spi_device structure like this:
dev->mode &= SPI_MODE_0;
dev->max_speed_hz = 10000;
dev->bits_per_word = 32;
Two problems.
1. Alignment seems off. I'm reading 1 32 bit word at a time, and the four bytes come through out of order.
2. every few reads, one fails, and the following is printed to the console:
[ 47.506134] fpga_comm spi3.0: RXS timed out
This seems to originate in omap2_mcspi.c.
Does anyone know what i can do to diagnose and fix this issue?
thanks a bunch,
Woody