diff options
| author | David Lechner <dlechner@baylibre.com> | 2024-07-08 20:05:30 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-27 10:40:22 +0200 |
| commit | 727ed4810c8b8ef614c17c25a026850927b2de01 (patch) | |
| tree | 58f585a0847d24115dd4118053c671659cdccd1c | |
| parent | 34f8efd2743f2d961e92e8e994de4c7a2f9e74a0 (diff) | |
| download | linux-727ed4810c8b8ef614c17c25a026850927b2de01.tar.gz linux-727ed4810c8b8ef614c17c25a026850927b2de01.tar.bz2 linux-727ed4810c8b8ef614c17c25a026850927b2de01.zip | |
spi: mux: set ctlr->bits_per_word_mask
[ Upstream commit c8bd922d924bb4ab6c6c488310157d1a27996f31 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | drivers/spi/spi-mux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-mux.c b/drivers/spi/spi-mux.c index 9708b7827ff7..b18c5265e858 100644 --- a/drivers/spi/spi-mux.c +++ b/drivers/spi/spi-mux.c @@ -149,6 +149,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); |
