Re: [PATCH V3 4/4] mmc: core: Support aggressive power management for (e)MMC/SD

2013-05-02 Thread Adrian Hunter
On 02/05/13 14:35, Ulf Hansson wrote: > On 2 May 2013 12:38, Adrian Hunter wrote: >> On 16/04/13 13:00, Ulf Hansson wrote: >>> Aggressive power management is suitable when saving power is >>> essential. At request inactivity timeout, aka pm runtime >>> autosuspend timeout, the card will be suspend

Re: [PATCH V3 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Adrian Hunter
On 02/05/13 14:09, Ulf Hansson wrote: > On 2 May 2013 11:57, Asutosh Das wrote: >> On 5/2/2013 3:22 PM, Ulf Hansson wrote: >>> >>> On 2 May 2013 10:58, Adrian Hunter wrote: On 16/04/13 13:00, Ulf Hansson wrote: > > From: Ulf Hansson > > Once the mmc blkdevice is being p

[PATCH V4 2/4] mmc: core: Add bus_ops for runtime pm callbacks

2013-05-02 Thread Ulf Hansson
From: Ulf Hansson SDIO is the only protocol that uses runtime pm for the card device right now. To provide the option for sd and mmc to use runtime pm as well the bus_ops callback are extended with two new functions. One for runtime_suspend and one for runtime_resume. This patch will also implem

[PATCH V4 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Ulf Hansson
From: Ulf Hansson Once the mmc blkdevice is being probed, runtime pm will be enabled. By using runtime autosuspend, the power save operations can be done when request inactivity occurs for a certain time. Right now the selected timeout value is set to 3 s. Obviously this value will likely need to

[PATCH V4 1/4] mmc: core: Stop bkops for eMMC only from mmc suspend

2013-05-02 Thread Ulf Hansson
From: Ulf Hansson Move mmc suspend specific operations to be executed from the .suspend callback in the mmc bus_ops. This simplifies the mmc_suspend_host function which is supposed to handle nothing but common suspend tasks. Since eMMC can be considered non-removable there are no need to check f

[PATCH V4 4/4] mmc: core: Support aggressive power management for (e)MMC/SD

2013-05-02 Thread Ulf Hansson
From: Ulf Hansson Aggressive power management is suitable when saving power is essential. At request inactivity timeout, aka pm runtime autosuspend timeout, the card will be suspended. Once a new request arrives, the card will be re-initalized and thus the first request will suffer from a latenc

[PATCH V4 0/4] mmc: Use runtime pm for blkdevice

2013-05-02 Thread Ulf Hansson
From: Ulf Hansson SDIO has been using runtime pm for a while to handle runtime power save operations. This patchset is enabling the option to make the sd/mmc blockdevices to use runtime pm as well. The runtime pm implementation for the block device will make use of autosuspend to defer power sav

Re: [PATCH V3 4/4] mmc: core: Support aggressive power management for (e)MMC/SD

2013-05-02 Thread Ulf Hansson
On 2 May 2013 12:38, Adrian Hunter wrote: > On 16/04/13 13:00, Ulf Hansson wrote: >> Aggressive power management is suitable when saving power is >> essential. At request inactivity timeout, aka pm runtime >> autosuspend timeout, the card will be suspended. >> >> Once a new request arrives, the ca

Re: [PATCH V3 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Ulf Hansson
On 2 May 2013 11:57, Asutosh Das wrote: > On 5/2/2013 3:22 PM, Ulf Hansson wrote: >> >> On 2 May 2013 10:58, Adrian Hunter wrote: >>> >>> On 16/04/13 13:00, Ulf Hansson wrote: From: Ulf Hansson Once the mmc blkdevice is being probed, runtime pm will be enabled. By using

Re: [PATCH V3 4/4] mmc: core: Support aggressive power management for (e)MMC/SD

2013-05-02 Thread Adrian Hunter
On 16/04/13 13:00, Ulf Hansson wrote: > Aggressive power management is suitable when saving power is > essential. At request inactivity timeout, aka pm runtime > autosuspend timeout, the card will be suspended. > > Once a new request arrives, the card will be re-initalized and > thus the first req

Re: [PATCH V3 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Asutosh Das
On 5/2/2013 3:22 PM, Ulf Hansson wrote: On 2 May 2013 10:58, Adrian Hunter wrote: On 16/04/13 13:00, Ulf Hansson wrote: From: Ulf Hansson Once the mmc blkdevice is being probed, runtime pm will be enabled. By using runtime autosuspend, the power save operations can be done when request inact

Re: [PATCH V3 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Ulf Hansson
On 2 May 2013 10:58, Adrian Hunter wrote: > On 16/04/13 13:00, Ulf Hansson wrote: >> From: Ulf Hansson >> >> Once the mmc blkdevice is being probed, runtime pm will be enabled. >> By using runtime autosuspend, the power save operations can be done >> when request inactivity occurs for a certain t

Re: [PATCH V3 3/4] mmc: block: Enable runtime pm for mmc blkdevice

2013-05-02 Thread Adrian Hunter
On 16/04/13 13:00, Ulf Hansson wrote: > From: Ulf Hansson > > Once the mmc blkdevice is being probed, runtime pm will be enabled. > By using runtime autosuspend, the power save operations can be done > when request inactivity occurs for a certain time. Right now the > selected timeout value is se