Skip to content

Commit

Permalink
spi: fsl: Fix GPIO descriptor support
Browse files Browse the repository at this point in the history
This makes the driver actually support looking up GPIO
descriptor. A coding mistake in the initial descriptor
support patch was that it was failing to turn on the very
feature it was implementing. Mea culpa.

Cc: Christophe Leroy <[email protected]>
Reported-by: Christophe Leroy <[email protected]>
Fixes: 0f0581b ("spi: fsl: Convert to use CS GPIO descriptors")
Signed-off-by: Linus Walleij <[email protected]>
Tested-by: Christophe Leroy <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
linusw authored and broonie committed Nov 28, 2019
1 parent ada9e3f commit f106904
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-fsl-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,7 @@ static struct spi_master * fsl_spi_probe(struct device *dev,
master->setup = fsl_spi_setup;
master->cleanup = fsl_spi_cleanup;
master->transfer_one_message = fsl_spi_do_one_msg;
master->use_gpio_descriptors = true;

mpc8xxx_spi = spi_master_get_devdata(master);
mpc8xxx_spi->max_bits_per_word = 32;
Expand Down

0 comments on commit f106904

Please sign in to comment.