diff options
author | Linus Walleij <[email protected]> | 2019-12-05 10:13:40 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-12-09 18:46:34 +0000 |
commit | 4a07b8bcd503c842bcf0171cdbccdfdac3d985c3 (patch) | |
tree | aaa3ab1ae1173dfd6384024cda28fed155b0db5a /lib/mpi/mpi-internal.h | |
parent | 8a6553ecdf976d6a34664bd491f0ea74a15aa982 (diff) |
spi: bitbang: Make chipselect callback optional
The ->chipselect() callback on the bit-banged SPI library
master is optional if using GPIO descriptors: when using
descriptors exclusively without any native chipselects,
the core does not even call out the the native ->set_cs()
and therefore ->chipselect() on a bit-banged SPI master
will not even be called in this case.
Make sure to respect the SPI_MASTER_GPIO_SS as used by
e.g. spi-gpio.c though: this setting will make the core
handle the chip select using GPIO descriptors *AND* call
the local chipselect handler.
Signed-off-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions