On Thu, Nov 4, 2010 at 10:25 AM, Linus Walleij
<[email protected]> wrote:
> Since the runtime_pm_get/put calls are balanced for the host
> enable/disable case and the clock gating is orthogonal,
> I need to create an orthogonal instance of hooks, maybe it's
> easiest to just spawn a second dummy device like mmc0_clk
> for this to be able to use the runtime PM hooks?

What about:
- register the (generic ?) runtime PM handlers to mmc_host_class
- call the runtime pm get/put API on host->class_dev (in
mmc_start_request/mmc_request_done)
- use runtime PM autosuspend for taking care of the required delay

The host controller will get the idle notification directly to its
runtime PM handlers. It's not via set_ios, I know, but it looks so
simple and intuitive..

>
> Back to hacking!
>
> Yours,
> Linus Walleij
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to