ar71xx: add kernel support for the OpenMesh OM2Pv2 board
[oweals/openwrt.git] / target / linux / ar71xx / patches-3.10 / 206-spi-ath79-make-chipselect-logic-more-flexible.patch
index 93df466fdf74981cdb6b7c2217943a7552303c2c..b57dd5d5bab51bf3fe2c02f43f4cd07ed7dd2edc 100644 (file)
@@ -236,9 +236,9 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
 +      case ATH79_SPI_CS_TYPE_GPIO:
                flags = GPIOF_DIR_OUT;
                if (spi->mode & SPI_CS_HIGH)
-                       flags |= GPIOF_INIT_HIGH;
-               else
                        flags |= GPIOF_INIT_LOW;
+               else
+                       flags |= GPIOF_INIT_HIGH;
  
 -              status = gpio_request_one(cdata->gpio, flags,
 +              status = gpio_request_one(cdata->cs_line, flags,