Changeset 33600


Ignore:
Timestamp:
2012-09-30T13:44:44+02:00 (5 years ago)
Author:
hauke
Message:

[brcm47xx]: bcma: initialize sprom earlier

The chip common and the PCIe code are accessing the sprom struct which
is not filled when these cores are initialized. Fix this by adding an
early initialize and fill the sprom struct before accessing it in other
code.

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

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/patches-3.3/501-bcma-add-gpio-driver.patch

    r33462 r33600  
    11--- a/drivers/bcma/driver_chipcommon.c 
    22+++ b/drivers/bcma/driver_chipcommon.c 
    3 @@ -57,6 +57,8 @@ void bcma_core_chipcommon_init(struct bc 
     3@@ -70,6 +70,8 @@ void bcma_core_chipcommon_init(struct bc 
    44                         (leddc_off << BCMA_CC_GPIOTIMER_OFFTIME_SHIFT))); 
    55        } 
     
    1010 } 
    1111  
    12 @@ -79,34 +81,81 @@ u32 bcma_chipco_irq_status(struct bcma_d 
     12@@ -92,34 +94,81 @@ u32 bcma_chipco_irq_status(struct bcma_d 
    1313  
    1414 u32 bcma_chipco_gpio_in(struct bcma_drv_cc *cc, u32 mask) 
     
    100100--- a/include/linux/bcma/bcma_driver_chipcommon.h 
    101101+++ b/include/linux/bcma/bcma_driver_chipcommon.h 
    102 @@ -494,6 +494,9 @@ struct bcma_drv_cc { 
     102@@ -495,6 +495,9 @@ struct bcma_drv_cc { 
    103103        int nr_serial_ports; 
    104104        struct bcma_serial_port serial_ports[4]; 
     
    110110  
    111111 /* Register access */ 
    112 @@ -523,13 +526,22 @@ void bcma_chipco_irq_mask(struct bcma_dr 
     112@@ -525,13 +528,22 @@ void bcma_chipco_irq_mask(struct bcma_dr 
    113113  
    114114 u32 bcma_chipco_irq_status(struct bcma_drv_cc *cc, u32 mask); 
Note: See TracChangeset for help on using the changeset viewer.