Skip to content

Commit c8bd922

Browse files
dlechbroonie
authored andcommitted
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: David Lechner <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent ca52aa4 commit c8bd922

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
@@ -158,6 +158,7 @@ static int spi_mux_probe(struct spi_device *spi)
158158
/* supported modes are the same as our parent's */
159159
ctlr->mode_bits = spi->controller->mode_bits;
160160
ctlr->flags = spi->controller->flags;
161+
ctlr->bits_per_word_mask = spi->controller->bits_per_word_mask;
161162
ctlr->transfer_one_message = spi_mux_transfer_one_message;
162163
ctlr->setup = spi_mux_setup;
163164
ctlr->num_chipselect = mux_control_states(priv->mux);

0 commit comments

Comments
 (0)