On 28 June 2011 10:13, zhangfei gao <zhangfei.gao@xxxxxxxxx> wrote: > Hi, Ohad > > One question :( > > Under pm_runtime mechanism, how to dynamically open/close wlan. > > If the wlan chip really power off, the firmware should be reloaded, > since the firmware is download to ram and disappear after power off. > So wlan probe function should be called for re-downloading, is it be > achieved by calling pm_runtime_get_sync and mmc_power_restore_host? Here is how I'm doing it for libertas: http://dev.laptop.org/~dsd/20110610/ See patches 6 and 7. This is somewhat based off the wl1xxx example that Ohad gave. Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html