Changeset 33620


Ignore:
Timestamp:
2012-10-04T17:45:54+02:00 (5 years ago)
Author:
hauke
Message:

[brcm47xx]: bcma: do not initialize deactivated PCIe cores

Before it was tried to initialize the deactivated PCIe core in client
mode, but this causes the SoC to hang. Just do not initialize it at all
and ignore the core it is not working and nothing is connected to it
when the specific bit is set in the boardflags.

Location:
trunk/target/linux/brcm47xx/patches-3.3
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.3/240-bcma-pcie-config-access.patch

    r31481 r33620  
    11--- a/drivers/bcma/driver_pci_host.c 
    22+++ b/drivers/bcma/driver_pci_host.c 
    3 @@ -99,19 +99,19 @@ static int bcma_extpci_read_config(struc 
     3@@ -94,19 +94,19 @@ static int bcma_extpci_read_config(struc 
    44        if (dev == 0) { 
    55                /* we support only two functions on device 0 */ 
     
    2424                } 
    2525        } else { 
    26 @@ -127,8 +127,6 @@ static int bcma_extpci_read_config(struc 
     26@@ -122,8 +122,6 @@ static int bcma_extpci_read_config(struc 
    2727                        val = 0xffffffff; 
    2828                        goto unmap; 
     
    3333        val >>= (8 * (off & 3)); 
    3434  
    35 @@ -156,7 +154,7 @@ static int bcma_extpci_write_config(stru 
     35@@ -151,7 +149,7 @@ static int bcma_extpci_write_config(stru 
    3636                                   const void *buf, int len) 
    3737 { 
     
    4242        u16 chipid = pc->core->bus->chipinfo.id; 
    4343  
    44 @@ -164,16 +162,22 @@ static int bcma_extpci_write_config(stru 
     44@@ -159,16 +157,22 @@ static int bcma_extpci_write_config(stru 
    4545        if (unlikely(len != 1 && len != 2 && len != 4)) 
    4646                goto out; 
     
    7171        } else { 
    7272                addr = bcma_get_cfgspace_addr(pc, dev, func, off); 
    73 @@ -192,12 +196,10 @@ static int bcma_extpci_write_config(stru 
     73@@ -187,12 +191,10 @@ static int bcma_extpci_write_config(stru 
    7474  
    7575        switch (len) { 
     
    8484                val |= *((const u16 *)buf) << (8 * (off & 3)); 
    8585                break; 
    86 @@ -205,13 +207,14 @@ static int bcma_extpci_write_config(stru 
     86@@ -200,13 +202,14 @@ static int bcma_extpci_write_config(stru 
    8787                val = *((const u32 *)buf); 
    8888                break; 
Note: See TracChangeset for help on using the changeset viewer.