net: wireless: bcmdhd: move barrier to after setting the suspended flag.
Sang-Hun Lee [Sat, 16 Jun 2012 00:15:46 +0000 (17:15 -0700)]
Reviewed-on: http://mcrd1-5.corpnet.asus/code-review/master/47846
Tested-by: Kirt Hsieh <Kirt_Hsieh@asus.com>
Reviewed-by: Kirt Hsieh <Kirt_Hsieh@asus.com>
Reviewed-by: Vincent Yue <Vincent_Yue@asus.com>

Bug 984811

Signed-off-by: Roger Hsieh <rhsieh@nvidia.com>
Change-Id: I708dadddf3f3eac9f8bacc72e3aef94247a87e70
Reviewed-on: http://git-master/r/106352
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Tested-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>

drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c

index a9b6629..7d74d31 100644 (file)
@@ -204,7 +204,6 @@ static int bcmsdh_sdmmc_suspend(struct device *pdev)
 #if defined(OOB_INTR_ONLY)
        bcmsdh_oob_intr_set(0);
 #endif /* defined(OOB_INTR_ONLY) */
-       smp_mb();
 
        sdio_flags = sdio_get_host_pm_caps(func);
 
@@ -223,6 +222,7 @@ static int bcmsdh_sdmmc_suspend(struct device *pdev)
        }
 
        dhd_mmc_suspend = TRUE;
+       smp_mb();
 
 out:
        return ret;