From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Drake Subject: Re: [PATCH] mmc: sdio: reset card during power_restore Date: Wed, 29 Jun 2011 09:56:50 +0100 Message-ID: References: <20110605123852.BC6F39D401C@zog.reactivated.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-pw0-f46.google.com ([209.85.160.46]:47384 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753946Ab1F2I4u (ORCPT ); Wed, 29 Jun 2011 04:56:50 -0400 Received: by pwj7 with SMTP id 7so687595pwj.19 for ; Wed, 29 Jun 2011 01:56:50 -0700 (PDT) In-Reply-To: Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: zhangfei gao Cc: linux-mmc@vger.kernel.org On 28 June 2011 10:13, zhangfei gao 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