Forum Discussion
Altera_Forum
Honored Contributor
14 years agoWell, I don't know if this is actually going to mean anything to anyone out there but I'll try anyway....
My driver calls spi_sync whic calls spi_async below. In the following code from spi.h, spi->master is NULL. I am fairly confident that the Nios SPI master is getting registered, at least I am sure that altspi is loading, running, acquiring the correct IRQ from the Nios2 system and is not returning any errors about not being able to register the SPI master & such. The other pointers below that I am "printk-ing" appear to be valid. spi_async(struct spi_device *spi, struct spi_message *message) { printk("++++++++++ IN SPI_ASYNC +++++++++++++++\n"); message->spi = spi; printk("++++++++++ RETURNING FROM SPI_ASYNC +++++++++++++++\n"); printk("$$$$$$$ spi_device: %p $$$$$$$$$$$\n", spi); printk("$$$$$$$ spi_message: %p $$$$$$$$$$$\n", message); printk("$$$$$$$ spi->master->transfer: %p %p %p $$$$$$$$$$$\n", spi, spi->master, spi->master->transfer); return spi->master->transfer(spi, message); }