state of CF suspend / resume

Dan Williams dcbw at redhat.com
Wed Apr 30 13:19:07 EDT 2008


On Tue, 2008-04-29 at 15:54 +0200, Holger Schurig wrote:
> Hi !
> 
> I'd like to implement suspend/resume for the compact flash 
> driver. From what I know so far, suspend/resume is intermingled 
> with Wake-on-LAN. lbs_suspend() in main.c contains this code 
> fragment:
> 
>         if (priv->wol_criteria == 0xffffffff) {
>                 lbs_pr_info("Suspend attempt without configuring"
>                             "wake params!\n");
>                 return -EINVAL;
>         }
> 
> I don't know why, it should be perfectly legal to do suspend 
> without Wake-on-LAN. Or shouldn't it?

Yeah, probably; but unless there's a way to wake the chip up again, they
may have just decided that one or both of a timer (I thought there was a
way to bound the chip's sleep time) or WOL was fine for waking up.

> CMD_802_11_HOST_SLEEP_ACTIVATE isn't documented in the firmware 
> manual.

I'm pretty sure this is only present in v9 and greater firmware.  There
are no arguments, but it should only be issued after a HOST_SLEEP_CFG
command.  Take a look at the moblin driver.  The v8 driver from the
Marvell site doesn't have HOST_SLEEP_ACTIVATE.

Dan

> 
> 
> 
> 
> When calling CMD_802_11_FW_WAKE_METHOD with CMD_ACT_SET to set 
> the firmware wakeup method, my 5.0.16p0 firmware won't accept 
> the CMD_WAKE_METHOD_COMMAND_INT parameter (error 2: not 
> implemented).
> 
> However, I can set CMD_WAKE_METHOD_COMMAND_INT, which is also 
> what CMD_ACT_GET retrieves when the CF card is freshly plugged 
> in.
> 
> Conclusion: I have to use some GPIO pin for this functionality. 
> Just which one?
> 
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev




More information about the libertas-dev mailing list