RE: [RFC] sdhci: use ios->clock to know when sdhci is idle

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Gao, Yunpeng
Date: Thursday, December 30, 2010 - 3:37 am

>> So, why we have to move to the 'aggressive clock gating framework'?

Thanks for the response. I just curious that is this the only reason to change the framework? To my understanding, seems it's not a very strong reason :-)

Take the example of sd/mmc card -
by using the aggressive clock gating framework, it means the host controller will gate (clock gating or power gating) itself if not receiving requests for 8 clocks even if the request queue of mmc block driver is not empty at that time. So the host controller has to be gated / ungated repeatedly until the current request queue of mmc block driver becomes empty. I don't think this is elegant since most of the gating / ungating operations are not necessary.

Instead, if we do it in the mmc block driver by just call the pm_runtime_put() once the current request queue is empty and call pm_runtime_get() once any new request comes, then the host controller can be gated/ungated appropriately.

Thanks.

Regards,
Yunpeng
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RE: [RFC] sdhci: use ios->clock to know when sdhci is idle, Gao, Yunpeng, (Thu Dec 30, 3:37 am)
[PATCH] mmc: add MMC_QUIRK_BROKEN_CLK_GATING, Pierre Tardy, (Sun Jan 2, 2:08 pm)
Re: [PATCH] mmc: add MMC_QUIRK_BROKEN_CLK_GATING, Philip Rakity, (Sun Jan 2, 3:23 pm)
Re: [PATCH] mmc: add MMC_QUIRK_BROKEN_CLK_GATING, Pierre Tardy, (Mon Jan 3, 3:10 am)