Upon boot two spi modules are loaded but no SPI device is found at /dev/spidev.* spi_pxa2xx_pci 2317 0 spi_pxa2xx_platform 15607 0 When I manually rmmod spi-pxa2xx-pci then reload it I get the following error: [ 597.682946] pxa2xx_spi_pci: probe of 0000:00:1e.5 failed with error -17 I'm using the core-image-sato-intel-corei7-64.hddimg image from the link below http://downloads.yoctoproject.org/releases/yocto/yocto-1.6.1/machines/intel-corei7-64/intel-corei7-64-1.0-daisy-1.6.1.tar.bz2
Fixing the filing status
The pxa2xx_spi* driver is for the master bus device, the bus should show up under: /sys/class/spi_master/spi0 spidev devices are typically enumerated via boardfiles, or a firmware description, such as Device Tree or ACPI _DSD (new this month). For example boardfiles, see: https://github.com/MinnowBoard/minnow-max-extras/blob/master/modules/calamari/calamari.c And for a spidev boardfile see: https://github.com/MinnowBoard/minnow-max-extras/blob/master/modules/low-speed-spidev/low-speed-spidev.c All that said, the error you reported should not occur when configured in PCI mode with the SPI device enabled in firmware. We need to attempt to reproduce with the image you provided.
Using the image from the opening comment, with the firmware configured in PCI mode, with SPI enabled: root@intel-corei7-64:~# lspci | grep SPI 00:1e.5 Serial bus controller [0c80]: Intel Corporation ValleyView LPIO1 SPI Controller (rev 0c) root@intel-corei7-64:~# uname -r 3.14.4-yocto-standard root@intel-corei7-64:~# lsmod | grep pxa spi_pxa2xx_pci 2317 0 spi_pxa2xx_platform 15607 0 root@intel-corei7-64:~# ls /sys/class/spi_master/ spi0 Everything is working as expected on boot. However, if I unload the to modules listed above and attempt to load the pci alone: root@intel-corei7-64:~# modprobe spi_pxa2xx_pci [ 218.128831] pxa2xx_spi_pci: probe of 0000:00:1e.5 failed with error -17 (The driver should probably attempt to request the platform driver) But if I first load the platform driver: root@intel-corei7-64:~# modprobe spi_pxa2xx_platform root@intel-corei7-64:~# modprobe spi_pxa2xx_pci root@intel-corei7-64:~# lsmod | grep pxa spi_pxa2xx_platform 15607 0 spi_pxa2xx_pci 2317 0 It loads as expected. Unfortunately, the spi master doesn't appear under /sys/class/spi_master/. While these work on first boot, unloading and reloading doesn't work. I suspect this is a bug. Next step would be to determine if this also fails on mainline, and then either do a backport or provide a fix there and then backport.
No longer driving fixes for Minnowboard Max.