Skip to content
Commit 6b8cc330 authored by Josef Ahmad's avatar Josef Ahmad Committed by Mark Brown
Browse files

spi-gpio: init CS before spi_bitbang_setup()



spi_bitbang_setup() deasserts the chip select line to initialise
the device. The chip select GPIO line is obtained from
spi_gpio->cs_gpios[] private data.
Currently, devices that are not registered under devicetree
environment will call into spi_bitbang_setup() with stale
cs_gpios[].

This patch ensures spi_gpio->cs_gpios[] is always initialised prior
to calling spi_bitbang_setup().

Reviewed-by: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarJosef Ahmad <josef.ahmad@intel.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent c3e2aa86
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment