Skip to content

Commit 763dedf

Browse files
AxelLinbroonie
authored andcommitted
spi: bcm2835: Remove unnecessary workaround to call gpio_set_value
This should be fixed by commit 4c02cba ("pinctrl: bcm2835: Fix initial value for direction_output") Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Martin Sperl <kernel@martin.sperl.org> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent bbcfb89 commit 763dedf

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/spi/spi-bcm2835.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,6 @@ static int bcm2835_spi_setup(struct spi_device *spi)
727727
spi->chip_select, spi->cs_gpio, err);
728728
return err;
729729
}
730-
/* the implementation of pinctrl-bcm2835 currently does not
731-
* set the GPIO value when using gpio_direction_output
732-
* so we are setting it here explicitly
733-
*/
734-
gpio_set_value(spi->cs_gpio, (spi->mode & SPI_CS_HIGH) ? 0 : 1);
735730

736731
return 0;
737732
}

0 commit comments

Comments
 (0)