Re: [PATCH] mmc: agressive clocking framework v9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 4, 2010 at 10:25 AM, Linus Walleij
<linus.walleij@xxxxxxxxxxxxxx> 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 majordomo@xxxxxxxxxxxxxxx
> 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux