[PATCH 1/2] spi: check bits_per_word in spi_setup

2015-08-23 Thread Stefan Brüns
This allows drivers for devices connected via SPI to check if the controller supports a given bits_per_word value during setup. Currently any BPW value is accepted durings setup, and transfers are rejected later. Signed-off-by: Stefan Brüns --- drivers/spi/spi.c | 27

[PATCH 0/2] Fix displays requiring 9 bit transfers on RPi

2015-08-23 Thread Stefan Brüns
on RPi B with an Ilitek9341 based TFT display in 9 bit mode. Crossposting to linux-spi and staging ML, as the FBTFT 9 bit fix depends on the change in SPI core. Stefan Brüns (2): spi: check bits_per_word in spi_setup staging/fbtft: use spi_setup instead of direct call to master->setup d

[PATCH 2/2] staging/fbtft: use spi_setup instead of direct call to master->setup

2015-08-23 Thread Stefan Brüns
Avoid a crash, as master->setup may be NULL (e.g. xilinx controller). Even if master->setup is set, spi_setup does several compatibility/ sanity checks which should not be skipped (fixes problems with displays/controllers needing emulation for bits_per_word = 9). Signed-off-by: Stefan