Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-11-03 Thread Ulf Hansson
@@ -2342,11 +2350,19 @@ static int pl022_runtime_resume(struct device *dev) return 0; } + +static int pl022_runtime_idle(struct device *dev) +{ +pm_runtime_suspend(dev); +return 0; +} #endif static const struct dev_pm_ops pl022_dev_pm_ops = {

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-11-03 Thread Russell King - ARM Linux
On Thu, Nov 03, 2011 at 02:59:53PM +0100, Ulf Hansson wrote: @@ -2342,11 +2350,19 @@ static int pl022_runtime_resume(struct device *dev) return 0; } + +static int pl022_runtime_idle(struct device *dev) +{ + pm_runtime_suspend(dev); + return 0; +} #endif static const struct

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-11-03 Thread Ulf Hansson
Russell King - ARM Linux wrote: On Thu, Nov 03, 2011 at 02:59:53PM +0100, Ulf Hansson wrote: @@ -2342,11 +2350,19 @@ static int pl022_runtime_resume(struct device *dev) return 0; } + +static int pl022_runtime_idle(struct device *dev) +{ + pm_runtime_suspend(dev); + return 0; +}

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-11-02 Thread Russell King - ARM Linux
On Fri, Oct 21, 2011 at 04:08:44PM +0200, Ulf Hansson wrote: Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are able to be runtime suspended after probe in the case when no request is going to be recieved, a runtime_idle function has

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-10-24 Thread Ulf Hansson
Linus Walleij wrote: On Fri, Oct 21, 2011 at 4:08 PM, Ulf Hansson ulf.hans...@stericsson.com wrote: Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are able to be runtime suspended after probe in the case when no request is going to

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-10-24 Thread Grant Likely
On Fri, Oct 21, 2011 at 04:08:44PM +0200, Ulf Hansson wrote: Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are able to be runtime suspended after probe in the case when no request is going to be recieved, a runtime_idle function has

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-10-24 Thread Linus Walleij
2011/10/24 Russell King - ARM Linux li...@arm.linux.org.uk: On Mon, Oct 24, 2011 at 02:03:42PM +0200, Grant Likely wrote: On Fri, Oct 21, 2011 at 04:08:44PM +0200, Ulf Hansson wrote: Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are

Re: [PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-10-22 Thread Linus Walleij
On Fri, Oct 21, 2011 at 4:08 PM, Ulf Hansson ulf.hans...@stericsson.com wrote: Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are able to be runtime suspended after probe in the case when no request is going to be recieved, a

[PATCH] spi/pl022: Enable clock in probe an use runtime_idle

2011-10-21 Thread Ulf Hansson
Since we are always runtime resumed when leaving probe the clock must be enabled. To accomplish that we are able to be runtime suspended after probe in the case when no request is going to be recieved, a runtime_idle function has been implemented. Change-Id: