From 659efdb53906e254e1dae88d85d29f7912458178 Mon Sep 17 00:00:00 2001 From: "w12.lee" Date: Tue, 28 Sep 2010 18:04:46 -0700 Subject: S5PC11X: WLAN: waiting bcm4329 firmware for AP mode to be ready. Now, after enabling bcm4329 pin to high at machine side, probing mmc2 starts too early by dhd driver side even if the firmware for AP mode(soft AP) is not ready. So, we can hardly enable bcm4329 for soft AP. It must be guaranteed that downloading firmware for soft AP to a module be ready, before bcm4329 driver calls sdioh_start() in wl_iw. So a device waits a several mile seconds (need msleep(25) at least), after setting wlan pins to high in wlan_power_en() to be ready for AP mode firmware. Change-Id: I415f0dd4ec87ca28a9c0143944c014b93e049e87 Signed-off-by: w12.lee --- arch/arm/mach-s5pv210/mach-herring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-s5pv210/mach-herring.c b/arch/arm/mach-s5pv210/mach-herring.c index 80e2869..25ffb3e 100644 --- a/arch/arm/mach-s5pv210/mach-herring.c +++ b/arch/arm/mach-s5pv210/mach-herring.c @@ -3124,6 +3124,8 @@ static int wlan_power_en(int onoff) s3c_gpio_setpull(GPIO_WLAN_nRST, S3C_GPIO_PULL_NONE); gpio_set_value(GPIO_WLAN_nRST, GPIO_LEVEL_HIGH); s3c_gpio_slp_cfgpin(GPIO_WLAN_nRST, S3C_GPIO_SLP_OUT1); + + msleep(25); } else { gpio_set_value(GPIO_WLAN_nRST, GPIO_LEVEL_LOW); s3c_gpio_slp_cfgpin(GPIO_WLAN_nRST, S3C_GPIO_SLP_OUT0); -- cgit v1.1