Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

spi: made spi chip select polarity match that requested in platform data

  • Loading branch information...
commit e82c350c65e44742b12e1d7c99cfd17a74430429 1 parent 98c62bb
@dirjud dirjud authored Matthew Isaacs committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  drivers/spi/omap2_mcspi.c
View
2  drivers/spi/omap2_mcspi.c
@@ -247,7 +247,7 @@ static void omap2_mcspi_force_cs(struct spi_device *spi, int cs_active)
index = spi->chip_select - cdata->config->num_cs;
if (index >= 0){
//printk(KERN_INFO "force_cs: index: %d gpio: %d\n", index, cdata->config->gpio_cs[index]);
- gpio_direction_output(cdata->config->gpio_cs[index], !cs_active);
+ gpio_direction_output(cdata->config->gpio_cs[index], (spi->mode & SPI_CS_HIGH) ? cs_active : !cs_active);
}
l = mcspi_cached_chconf0(spi);
Please sign in to comment.
Something went wrong with that request. Please try again.