projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca52aa4
)
spi: mux: set ctlr->bits_per_word_mask
author
David Lechner
<dlechner@baylibre.com>
Tue, 9 Jul 2024 01:05:30 +0000
(20:05 -0500)
committer
Mark Brown
<broonie@kernel.org>
Tue, 9 Jul 2024 16:42:33 +0000
(17:42 +0100)
Like other SPI controller flags, bits_per_word_mask may be used by a
peripheral driver, so it needs to reflect the capabilities of the
underlying controller.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link:
https://patch.msgid.link/20240708-spi-mux-fix-v1-3-6c8845193128@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mux.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-mux.c
b/drivers/spi/spi-mux.c
index f4b619cc26578701d54c61adee96612a5f85bf7c..c02c4204442f5eb614a4231fa193e5efb887dd75 100644
(file)
--- a/
drivers/spi/spi-mux.c
+++ b/
drivers/spi/spi-mux.c
@@
-158,6
+158,7
@@
static int spi_mux_probe(struct spi_device *spi)
/* supported modes are the same as our parent's */
ctlr->mode_bits = spi->controller->mode_bits;
ctlr->flags = spi->controller->flags;
+ ctlr->bits_per_word_mask = spi->controller->bits_per_word_mask;
ctlr->transfer_one_message = spi_mux_transfer_one_message;
ctlr->setup = spi_mux_setup;
ctlr->num_chipselect = mux_control_states(priv->mux);