refresh 3.2 patches
authorFlorian Fainelli <florian@openwrt.org>
Sat, 28 Jan 2012 13:19:43 +0000 (13:19 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 28 Jan 2012 13:19:43 +0000 (13:19 +0000)
SVN-Revision: 29934

12 files changed:
target/linux/ar71xx/patches-3.2/026-MIPS-ath79-Rename-dev-ar913x-wmac.c-to-dev-wmac.c.patch
target/linux/ar71xx/patches-3.2/115-MIPS-ath79-allow-to-use-board-specific-pci_plat_dev_.patch
target/linux/ar71xx/patches-3.2/132-MIPS-ath79-add-PCI_AR724X-Kconfig-symbol.patch
target/linux/ar71xx/patches-3.2/133-MIPS-ath79-add-PCI-registration-code-for-AR934X.patch
target/linux/ar71xx/patches-3.2/204-spi-ath79-use-gpio_request_one.patch
target/linux/ar71xx/patches-3.2/205-spi-ath79-introduce-ath79_spi_-en-dis-able-helpers.patch
target/linux/ar71xx/patches-3.2/207-spi-ath79-make-chipselect-logic-more-flexible.patch
target/linux/ar71xx/patches-3.2/301-leds-wndr3700-3.2-fixes.patch
target/linux/ar71xx/patches-3.2/303-rb750_nand-3.2-fixes.patch
target/linux/ar71xx/patches-3.2/306-spi-rb4xx-3.2-fixes.patch
target/linux/ar71xx/patches-3.2/505-MIPS-ath79-add-ath79_gpio_function_select.patch
target/linux/ar71xx/patches-3.2/606-MIPS-ath79-pb44-fixes.patch

index c9a4ce9a1cba97f5c09cbb7ba8c90e46afa8ccf7..a89a22f981709132296306c49cd5c8430fea8fa7 100644 (file)
@@ -20,7 +20,7 @@ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
 
 --- a/arch/mips/ath79/Makefile
 +++ b/arch/mips/ath79/Makefile
-@@ -20,7 +20,7 @@ obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) += 
+@@ -20,7 +20,7 @@ obj-$(CONFIG_ATH79_DEV_GPIO_BUTTONS) +=
  obj-$(CONFIG_ATH79_DEV_LEDS_GPIO)     += dev-leds-gpio.o
  obj-$(CONFIG_ATH79_DEV_SPI)           += dev-spi.o
  obj-$(CONFIG_ATH79_DEV_USB)           += dev-usb.o
index 4a5ec6c93fde9d7597b9df9e7be376af18d19a41..91430a4a1a07ddc0cadec1d8b2b345aed3488b6d 100644 (file)
@@ -99,7 +99,7 @@ dereference, that will be fixed in a subsequent patch.
  static struct ar724x_pci_data *pci_data;
  static int pci_data_size;
  
-@@ -38,14 +39,15 @@ int __init pcibios_map_irq(const struct 
+@@ -38,14 +39,15 @@ int __init pcibios_map_irq(const struct
  
  int pcibios_plat_dev_init(struct pci_dev *dev)
  {
index dff6969d6fd565b1b378778793d52d72d3fe6619..62e95df955abf49899538456bddffd9eaa983482 100644 (file)
@@ -51,7 +51,7 @@ Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
  static inline int ar724x_pcibios_init(int irq) { return 0 };
 --- a/arch/mips/pci/Makefile
 +++ b/arch/mips/pci/Makefile
-@@ -20,7 +20,7 @@ obj-$(CONFIG_BCM63XX)                += pci-bcm63xx.o 
+@@ -20,7 +20,7 @@ obj-$(CONFIG_BCM63XX)                += pci-bcm63xx.o
                                        ops-bcm63xx.o
  obj-$(CONFIG_MIPS_ALCHEMY)    += pci-alchemy.o
  obj-$(CONFIG_SOC_AR71XX)      += pci-ar71xx.o
index 6c9d072ac4cbb4501216db0469e8e885bd2b568a..7f168b33e7dbe1b841ae95898a1e274f9e51eeaa 100644 (file)
@@ -31,7 +31,7 @@ Acked-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
  #include <asm/mach-ath79/ath79.h>
  #include <asm/mach-ath79/irq.h>
  #include <asm/mach-ath79/pci.h>
-@@ -57,7 +58,9 @@ int __init pcibios_map_irq(const struct 
+@@ -57,7 +58,9 @@ int __init pcibios_map_irq(const struct
                if (soc_is_ar71xx()) {
                        ath79_pci_irq_map = ar71xx_pci_irq_map;
                        ath79_pci_nr_irqs = ARRAY_SIZE(ar71xx_pci_irq_map);
index 0484d3d7f30cd2451ab52427663ef41cb5c725f1..1f607fd5ddd301fba9f08f5865b4ac140a2c7e05 100644 (file)
@@ -32,18 +32,19 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
 -              status = gpio_request(cdata->gpio, dev_name(&spi->dev));
 -              if (status)
 -                      return status;
-+              flags = GPIOF_DIR_OUT;
-+              if (spi->mode & SPI_CS_HIGH)
-+                      flags |= GPIOF_INIT_HIGH;
-+              else
-+                      flags |= GPIOF_INIT_LOW;
+-
 -              status = gpio_direction_output(cdata->gpio,
 -                                             spi->mode & SPI_CS_HIGH);
 -              if (status) {
 -                      gpio_free(cdata->gpio);
 -                      return status;
 -              }
++              flags = GPIOF_DIR_OUT;
++              if (spi->mode & SPI_CS_HIGH)
++                      flags |= GPIOF_INIT_HIGH;
++              else
++                      flags |= GPIOF_INIT_LOW;
++
 +              status = gpio_request_one(cdata->gpio, flags,
 +                                        dev_name(&spi->dev));
        }
index bf18edead79e49137983583f64fb1feaf8c05405..1324f18dc185b797baa4f055802dec11134f60aa 100644 (file)
@@ -9,7 +9,7 @@ Subject: [PATCH 5/7] spi/ath79: introduce ath79_spi_{en,dis}able helpers
 
 --- a/drivers/spi/spi-ath79.c
 +++ b/drivers/spi/spi-ath79.c
-@@ -89,16 +89,8 @@ static void ath79_spi_chipselect(struct 
+@@ -89,16 +89,8 @@ static void ath79_spi_chipselect(struct
  
  }
  
@@ -53,7 +53,7 @@ Subject: [PATCH 5/7] spi/ath79: introduce ath79_spi_{en,dis}able helpers
  
        status = 0;
        if (spi->chip_select) {
-@@ -134,11 +145,6 @@ static void ath79_spi_cleanup_cs(struct 
+@@ -134,11 +145,6 @@ static void ath79_spi_cleanup_cs(struct
                struct ath79_spi_controller_data *cdata = spi->controller_data;
                gpio_free(cdata->gpio);
        }
index 7c45b73f1f393a6ed49f5e0cad019fa6b067253e..cada123cb57e0bcbb05f734cee854645ced82efa 100644 (file)
@@ -38,7 +38,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  struct ath79_spi {
        struct spi_bitbang      bitbang;
        u32                     ioc_base;
-@@ -62,6 +64,7 @@ static void ath79_spi_chipselect(struct 
+@@ -62,6 +64,7 @@ static void ath79_spi_chipselect(struct
  {
        struct ath79_spi *sp = ath79_spidev_to_sp(spi);
        int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active;
@@ -46,7 +46,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  
        if (is_active) {
                /* set initial clock polarity */
-@@ -73,20 +76,21 @@ static void ath79_spi_chipselect(struct 
+@@ -73,20 +76,21 @@ static void ath79_spi_chipselect(struct
                ath79_spi_wr(sp, AR71XX_SPI_REG_IOC, sp->ioc_base);
        }
  
index 5171e909dc00593ba6475564e22b7c8a23ff5fc4..1b5012b7db725035a244a9dddee00b9c8c665869 100644 (file)
@@ -10,7 +10,7 @@
  
  #define DRIVER_NAME   "wndr3700-led-usb"
  
-@@ -20,14 +21,14 @@ static void wndr3700_usb_led_set(struct 
+@@ -20,14 +21,14 @@ static void wndr3700_usb_led_set(struct
                                 enum led_brightness brightness)
  {
        if (brightness)
index b0434e29a77309d66e7ca3f306c7f8c96627c4b1..2c222835bc8563bb57b01179487f76ed625bc9f9 100644 (file)
@@ -97,7 +97,7 @@
                u32 t;
  
                t = __raw_readl(base + AR71XX_GPIO_REG_OUT);
-@@ -236,7 +234,7 @@ static int rb750_nand_verify_buf(struct 
+@@ -236,7 +234,7 @@ static int rb750_nand_verify_buf(struct
  
  static void __init rb750_nand_gpio_init(void)
  {
index cd154324d90fd7f7a41abc3471f5ce67b964615a..973b3744251ebffed6636e095cefd74b20ae4f96 100644 (file)
@@ -39,7 +39,7 @@
  
  #ifdef RB4XX_SPI_DEBUG
  static inline void do_spi_delay(void)
-@@ -60,10 +67,11 @@ static inline void do_spi_delay(void) { 
+@@ -60,10 +67,11 @@ static inline void do_spi_delay(void) {
  
  static inline void do_spi_init(struct spi_device *spi)
  {
index 9a23f7d5e454fbca83c3715025f85e82104f26fc..6b09fc0a9bc6570b0c3b8b433aba116789d53ebd 100644 (file)
@@ -10,7 +10,7 @@
  #endif /* __ATH79_COMMON_H */
 --- a/arch/mips/ath79/gpio.c
 +++ b/arch/mips/ath79/gpio.c
-@@ -184,6 +184,34 @@ void ath79_gpio_function_setup(u32 set, 
+@@ -184,6 +184,34 @@ void ath79_gpio_function_setup(u32 set,
        spin_unlock_irqrestore(&ath79_gpio_lock, flags);
  }
  
index 1f3550bc6fd610be8df3d7b9b0c60cc2dc796b35..6f1829fd2da14c6d02ce22ffe06627204d9cbf53 100644 (file)
@@ -50,7 +50,7 @@
  #define PB44_GPIO_SW_RESET    (PB44_GPIO_EXP_BASE + 6)
  #define PB44_GPIO_SW_JUMP     (PB44_GPIO_EXP_BASE + 8)
  #define PB44_GPIO_LED_JUMP1   (PB44_GPIO_EXP_BASE + 9)
-@@ -92,21 +117,66 @@ static struct ath79_spi_controller_data 
+@@ -92,21 +117,66 @@ static struct ath79_spi_controller_data
        .cs_line = 0,
  };