kernel: update ssb and bcma to linux-next next-20110628
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 28 Jun 2011 19:33:50 +0000 (19:33 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 28 Jun 2011 19:33:50 +0000 (19:33 +0000)
SVN-Revision: 27299

target/linux/brcm47xx/patches-2.6.39/250-ssb_fix_ssb_clock_rate.patch [deleted file]
target/linux/brcm47xx/patches-3.0/250-ssb_fix_ssb_clock_rate.patch [deleted file]
target/linux/generic/patches-2.6.39/020-ssb_update.patch
target/linux/generic/patches-2.6.39/025-bcma_backport.patch
target/linux/generic/patches-3.0/020-ssb_update.patch
target/linux/generic/patches-3.0/025-bcma_backport.patch

diff --git a/target/linux/brcm47xx/patches-2.6.39/250-ssb_fix_ssb_clock_rate.patch b/target/linux/brcm47xx/patches-2.6.39/250-ssb_fix_ssb_clock_rate.patch
deleted file mode 100644 (file)
index fe6507b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-From 974353557959d8ec1c022511cd1b3eeaa7ed482a Mon Sep 17 00:00:00 2001
-From: Hauke Mehrtens <hauke@hauke-m.de>
-Date: Sat, 4 Jun 2011 15:55:24 +0200
-Subject: [PATCH 15/15] ssb: fix ssb clock rate according to broadcom source
-
-This fix was done according to si_clock_rate function in broadcom siutils.c
-
-Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
----
- drivers/ssb/main.c |    4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/ssb/main.c
-+++ b/drivers/ssb/main.c
-@@ -1002,8 +1002,8 @@ u32 ssb_calc_clock_rate(u32 plltype, u32
-       switch (plltype) {
-       case SSB_PLLTYPE_6: /* 100/200 or 120/240 only */
-               if (m & SSB_CHIPCO_CLK_T6_MMASK)
--                      return SSB_CHIPCO_CLK_T6_M0;
--              return SSB_CHIPCO_CLK_T6_M1;
-+                      return SSB_CHIPCO_CLK_T6_M1;
-+              return SSB_CHIPCO_CLK_T6_M0;
-       case SSB_PLLTYPE_1: /* 48Mhz base, 3 dividers */
-       case SSB_PLLTYPE_3: /* 25Mhz, 2 dividers */
-       case SSB_PLLTYPE_4: /* 48Mhz, 4 dividers */
diff --git a/target/linux/brcm47xx/patches-3.0/250-ssb_fix_ssb_clock_rate.patch b/target/linux/brcm47xx/patches-3.0/250-ssb_fix_ssb_clock_rate.patch
deleted file mode 100644 (file)
index fe6507b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-From 974353557959d8ec1c022511cd1b3eeaa7ed482a Mon Sep 17 00:00:00 2001
-From: Hauke Mehrtens <hauke@hauke-m.de>
-Date: Sat, 4 Jun 2011 15:55:24 +0200
-Subject: [PATCH 15/15] ssb: fix ssb clock rate according to broadcom source
-
-This fix was done according to si_clock_rate function in broadcom siutils.c
-
-Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
----
- drivers/ssb/main.c |    4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
-
---- a/drivers/ssb/main.c
-+++ b/drivers/ssb/main.c
-@@ -1002,8 +1002,8 @@ u32 ssb_calc_clock_rate(u32 plltype, u32
-       switch (plltype) {
-       case SSB_PLLTYPE_6: /* 100/200 or 120/240 only */
-               if (m & SSB_CHIPCO_CLK_T6_MMASK)
--                      return SSB_CHIPCO_CLK_T6_M0;
--              return SSB_CHIPCO_CLK_T6_M1;
-+                      return SSB_CHIPCO_CLK_T6_M1;
-+              return SSB_CHIPCO_CLK_T6_M0;
-       case SSB_PLLTYPE_1: /* 48Mhz base, 3 dividers */
-       case SSB_PLLTYPE_3: /* 25Mhz, 2 dividers */
-       case SSB_PLLTYPE_4: /* 48Mhz, 4 dividers */
index 1ee3ad95561842d89477a6218ee3de8274243fd4..8e4ac19ab1980da21b1d2f733932a6fa36841ab3 100644 (file)
  {
        int err;
  
+@@ -1001,8 +1002,8 @@ u32 ssb_calc_clock_rate(u32 plltype, u32
+       switch (plltype) {
+       case SSB_PLLTYPE_6: /* 100/200 or 120/240 only */
+               if (m & SSB_CHIPCO_CLK_T6_MMASK)
+-                      return SSB_CHIPCO_CLK_T6_M0;
+-              return SSB_CHIPCO_CLK_T6_M1;
++                      return SSB_CHIPCO_CLK_T6_M1;
++              return SSB_CHIPCO_CLK_T6_M0;
+       case SSB_PLLTYPE_1: /* 48Mhz base, 3 dividers */
+       case SSB_PLLTYPE_3: /* 25Mhz, 2 dividers */
+       case SSB_PLLTYPE_4: /* 48Mhz, 4 dividers */
 @@ -1117,23 +1118,22 @@ static u32 ssb_tmslow_reject_bitmask(str
  {
        u32 rev = ssb_read32(dev, SSB_IDLOW) & SSB_IDLOW_SSBREV;
                        return 1;
        }
  #endif /* CONFIG_SSB_PCIHOST */
-@@ -307,7 +310,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
+@@ -307,8 +310,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
        } else {
                if (bus->bustype == SSB_BUSTYPE_PCI) {
                        bus->chip_id = pcidev_to_chipid(bus->host_pci);
 -                      pci_read_config_word(bus->host_pci, PCI_REVISION_ID,
-+                      pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
-                                            &bus->chip_rev);
+-                                           &bus->chip_rev);
++                      bus->chip_rev = bus->host_pci->revision;
                        bus->chip_package = 0;
                } else {
+                       bus->chip_id = 0x4710;
 --- a/drivers/ssb/sprom.c
 +++ b/drivers/ssb/sprom.c
 @@ -17,7 +17,7 @@
index 333a3b57b02543d71ba6def6671c41eaa82afbab..07b278e8c78bc7139b359667b5810280e6cd7999 100644 (file)
 +}
 --- /dev/null
 +++ b/drivers/bcma/main.c
-@@ -0,0 +1,254 @@
+@@ -0,0 +1,255 @@
 +/*
 + * Broadcom specific AMBA
 + * Bus subsystem
 +
 +#include "bcma_private.h"
 +#include <linux/bcma/bcma.h>
++#include <linux/slab.h>
 +
 +MODULE_DESCRIPTION("Broadcom's specific AMBA driver");
 +MODULE_LICENSE("GPL");
index 3282ff0d7acc54c272e7e12a739bf6f4720e4fa8..a310d90f92213a07865a475ad868ec7600bd9fde 100644 (file)
  {
        int err;
  
+@@ -1001,8 +1002,8 @@ u32 ssb_calc_clock_rate(u32 plltype, u32
+       switch (plltype) {
+       case SSB_PLLTYPE_6: /* 100/200 or 120/240 only */
+               if (m & SSB_CHIPCO_CLK_T6_MMASK)
+-                      return SSB_CHIPCO_CLK_T6_M0;
+-              return SSB_CHIPCO_CLK_T6_M1;
++                      return SSB_CHIPCO_CLK_T6_M1;
++              return SSB_CHIPCO_CLK_T6_M0;
+       case SSB_PLLTYPE_1: /* 48Mhz base, 3 dividers */
+       case SSB_PLLTYPE_3: /* 25Mhz, 2 dividers */
+       case SSB_PLLTYPE_4: /* 48Mhz, 4 dividers */
 --- a/drivers/ssb/pcihost_wrapper.c
 +++ b/drivers/ssb/pcihost_wrapper.c
 @@ -53,8 +53,8 @@ static int ssb_pcihost_resume(struct pci
  {
        driver->probe = ssb_pcihost_probe;
        driver->remove = ssb_pcihost_remove;
+--- a/drivers/ssb/scan.c
++++ b/drivers/ssb/scan.c
+@@ -310,8 +310,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
+       } else {
+               if (bus->bustype == SSB_BUSTYPE_PCI) {
+                       bus->chip_id = pcidev_to_chipid(bus->host_pci);
+-                      pci_read_config_byte(bus->host_pci, PCI_REVISION_ID,
+-                                           &bus->chip_rev);
++                      bus->chip_rev = bus->host_pci->revision;
+                       bus->chip_package = 0;
+               } else {
+                       bus->chip_id = 0x4710;
index 8f02d9e80bd6e11b0d50222f3d08d250d9f69d27..1e61794701169f5ce872bbd5f92d15db52ef0af8 100644 (file)
  };
 --- a/drivers/bcma/main.c
 +++ b/drivers/bcma/main.c
-@@ -89,6 +89,8 @@ static int bcma_register_cores(struct bc
+@@ -7,6 +7,7 @@
+ #include "bcma_private.h"
+ #include <linux/bcma/bcma.h>
++#include <linux/slab.h>
+ MODULE_DESCRIPTION("Broadcom's specific AMBA driver");
+ MODULE_LICENSE("GPL");
+@@ -89,6 +90,8 @@ static int bcma_register_cores(struct bc
                switch (bus->hosttype) {
                case BCMA_HOSTTYPE_PCI:
                        core->dev.parent = &bus->host_pci->dev;
                        break;
                case BCMA_HOSTTYPE_NONE:
                case BCMA_HOSTTYPE_SDIO:
-@@ -144,6 +146,13 @@ int bcma_bus_register(struct bcma_bus *b
+@@ -144,6 +147,13 @@ int bcma_bus_register(struct bcma_bus *b
                bcma_core_pci_init(&bus->drv_pci);
        }
  
        /* Register found cores */
        bcma_register_cores(bus);
  
-@@ -151,13 +160,11 @@ int bcma_bus_register(struct bcma_bus *b
+@@ -151,13 +161,11 @@ int bcma_bus_register(struct bcma_bus *b
  
        return 0;
  }