Sierra_spi.c missing in Legato-Dist-Source-mdm9x15-SWI9X15Y_07.11.21.00

Hello Forum,

From Legato-Dist-Source-mdm9x15-SWI9X15Y_07.11.21.00 version, the sierra_spi.c file is missing.

In the Legato-Dist-Source-mdm9x15-SWI9X15Y_07.11.09.00 version, the file is present.

Is this an error or a voluntary action ?

Best regards,

I just replaced the SWI SPI driver code in the kernel branch 07.11.21.00 07.11.21.00 and the SPI works now.

DBUG | uartService[907]/spi T=main | uart_spi.c uart_spi_Configure() 111 | Mode = 0, Speed = 960000, Bits = 8, MSB = 0
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_new() 752 | Initialization of register(‘3’): 0x03
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_new() 752 | Initialization of register(‘2’): 0x07
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_new() 752 | Initialization of register(‘7’): 0x42
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_new() 752 | Initialization of register(‘10’): 0x01
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_new() 752 | Initialization of register(‘11’): 0x0C
DBUG | uartService[907]/spi T=main | pi7c9x760b.c pi7c9x760b_set_baud() 434 | Setting divisor to 0x9c (baud=9600, osc=24000000)

Best regards,

Hi,

I believe the sierra spi driver was intentionally removed because it was deemed to be an unnecessary fork of the spidev driver. In 16.10 and beyond, the way to get SPI to work from userspace is to build this spisvc module which informs the kernel about the presence of the spidev device.

Hi,

Thank you for your reply.

The change is brutal because I did not see a note on that.

Thank,