Permalink
Browse files

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

  • Loading branch information...
1 parent 98c62bb commit e82c350c65e44742b12e1d7c99cfd17a74430429 @dirjud dirjud committed with Matthew Isaacs Sep 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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);

0 comments on commit e82c350

Please sign in to comment.