bcma: add mdelay bcma_pmu_resources_init()
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 29 Jun 2012 23:44:45 +0000 (01:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Jul 2012 20:36:07 +0000 (16:36 -0400)
This is based on code from brcmsmac.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/driver_chipcommon_pmu.c

index 35c9130746fb057b64087c91e5b2f2bd8a6c2b4e..ca5a919133f7a856db2261ecf1123dcafaa2ff57 100644 (file)
@@ -75,6 +75,9 @@ static void bcma_pmu_resources_init(struct bcma_drv_cc *cc)
                bcma_cc_write32(cc, BCMA_CC_PMU_MINRES_MSK, min_msk);
        if (max_msk)
                bcma_cc_write32(cc, BCMA_CC_PMU_MAXRES_MSK, max_msk);
+
+       /* Add some delay; allow resources to come up and settle. */
+       mdelay(2);
 }
 
 /* Disable to allow reading SPROM. Don't know the adventages of enabling it. */