Skip to content

Commit 2b1a43a

Browse files
dlechgregkh
authored andcommitted
spi: mux: set ctlr->bits_per_word_mask
[ Upstream commit c8bd922 ] 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>
1 parent 2836d54 commit 2b1a43a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-mux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ static int spi_mux_probe(struct spi_device *spi)
156156
/* supported modes are the same as our parent's */
157157
ctlr->mode_bits = spi->controller->mode_bits;
158158
ctlr->flags = spi->controller->flags;
159+
ctlr->bits_per_word_mask = spi->controller->bits_per_word_mask;
159160
ctlr->transfer_one_message = spi_mux_transfer_one_message;
160161
ctlr->setup = spi_mux_setup;
161162
ctlr->num_chipselect = mux_control_states(priv->mux);

0 commit comments

Comments
 (0)