android_kernel_xiaomi_sm8350/drivers/spi
David Brownell 082c8cb4e5 spi device setup gets better error checking
This updates some error reporting paths in SPI device setup:

 - Move validation logic for SPI chipselects to spi_new_device(),
   which is where it should always have been.

 - In spi_new_device(), emit error messages if the device can't
   be created.  This is LOTS better than a silent failure; though
   eventually, the calling convention should probably change to
   use the <linux/err.h> conventions.

 - Includes one previously-missing check:  SPI masters must always
   have at least one chipselect, even for dedicated busses which
   always keep it selected!

It also adds a FIXME (IDR for dynamic ID allocation) so the issue doesn't live
purely in my mailbox.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-31 15:39:44 -07:00
..
at25.c
atmel_spi.c atmel_spi: don't always deselect chip between messages 2007-07-17 10:23:05 -07:00
atmel_spi.h
au1550_spi.c
Kconfig spi_txx9 controller driver 2007-07-17 10:23:05 -07:00
Makefile spi_txx9 controller driver 2007-07-17 10:23:05 -07:00
mpc52xx_psc_spi.c
omap2_mcspi.c SPI: omap2_mcspi driver 2007-07-17 10:23:05 -07:00
omap_uwire.c
pxa2xx_spi.c
spi_bfin5xx.c
spi_bitbang.c
spi_butterfly.c
spi_imx.c
spi_lm70llp.c spi_lm70llp parport adapter driver 2007-07-17 10:23:04 -07:00
spi_mpc83xx.c spi_mpc83xx: support loopback mode 2007-07-31 15:39:40 -07:00
spi_s3c24xx_gpio.c
spi_s3c24xx.c fixup s3c24xx build after arch moves 2007-07-26 11:35:16 -07:00
spi_txx9.c spi_txx9 controller driver 2007-07-17 10:23:05 -07:00
spi.c spi device setup gets better error checking 2007-07-31 15:39:44 -07:00
spidev.c spidev supports more communications modes 2007-07-31 15:39:40 -07:00
tle62x0.c SPI: tle620x power switch driver 2007-07-17 10:23:05 -07:00
xilinx_spi.c SPI master driver for Xilinx virtex 2007-07-17 10:23:05 -07:00