spi: add ancillary device support
authorSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 21 Jun 2021 17:53:55 +0000 (19:53 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 22 Jun 2021 11:54:59 +0000 (12:54 +0100)
commit0c79378c01999bd60057c475f163ec807c24891f
tree7a3c43d13c4cdfb0c8a748e3c58f4a762cdeb224
parent476ad3ff8952db3569a77d9ed4a067c5f0f4b733
spi: add ancillary device support

Introduce support for ancillary devices, similar to existing
implementation for I2C. This is useful for devices having
multiple chip-selects, for example some microcontrollers
provide a normal SPI interface and a flashing SPI interface.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Link: https://lore.kernel.org/r/20210621175359.126729-2-sebastian.reichel@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c
include/linux/spi/spi.h