diff options
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r-- | drivers/spi/spi-gpio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index eca9d52ecf65..9eb82150666e 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c | |||
@@ -410,6 +410,12 @@ static int spi_gpio_probe(struct platform_device *pdev) | |||
410 | 410 | ||
411 | bb = &spi_gpio->bitbang; | 411 | bb = &spi_gpio->bitbang; |
412 | bb->master = master; | 412 | bb->master = master; |
413 | /* | ||
414 | * There is some additional business, apart from driving the CS GPIO | ||
415 | * line, that we need to do on selection. This makes the local | ||
416 | * callback for chipselect always get called. | ||
417 | */ | ||
418 | master->flags |= SPI_MASTER_GPIO_SS; | ||
413 | bb->chipselect = spi_gpio_chipselect; | 419 | bb->chipselect = spi_gpio_chipselect; |
414 | bb->set_line_direction = spi_gpio_set_direction; | 420 | bb->set_line_direction = spi_gpio_set_direction; |
415 | 421 | ||