[PATCH 2/3] spi: spi-gpio: support different word widths
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Sep 25 23:07:49 PDT 2024
On 25.09.24 16:06, Sascha Hauer wrote:
> The spi-gpio driver only supports 8bit word width. Add support for
> arbitrary word widths up to 32bit.
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
With below issue addressed:
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> static int gpio_spi_setup(struct spi_device *spi)
> {
> - if (spi->bits_per_word != 8) {
> - dev_err(spi->master->dev, "master does not support %d bits per word\n",
> - spi->bits_per_word);
> - return -EINVAL;
> - }
> -
> + gpio_spi_set_cs(spi, 0);
Chipselect is already asserted/deasserted in gpio_spi_transfer, why deassert it here?
> return 0;
> }
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list