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
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
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