Commit c8bd922d authored by David Lechner's avatar David Lechner Committed by Mark Brown

spi: mux: set ctlr->bits_per_word_mask

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: default avatarDavid Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240708-spi-mux-fix-v1-3-6c8845193128@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent ca52aa4c
...@@ -158,6 +158,7 @@ static int spi_mux_probe(struct spi_device *spi) ...@@ -158,6 +158,7 @@ static int spi_mux_probe(struct spi_device *spi)
/* supported modes are the same as our parent's */ /* supported modes are the same as our parent's */
ctlr->mode_bits = spi->controller->mode_bits; ctlr->mode_bits = spi->controller->mode_bits;
ctlr->flags = spi->controller->flags; 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->transfer_one_message = spi_mux_transfer_one_message;
ctlr->setup = spi_mux_setup; ctlr->setup = spi_mux_setup;
ctlr->num_chipselect = mux_control_states(priv->mux); ctlr->num_chipselect = mux_control_states(priv->mux);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment