* [PATCH 0/3] Fixup use of runtime pm
@ 2012-09-28 11:21 Ulf Hansson
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
0 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-09-28 11:21 UTC (permalink / raw)
To: Grant Likely, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
Linus Walleij, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Some old runtime pm patches got merged whiched messed up things.
These is now reverted. Additionaly one patch do a simplification
of the use of runtime pm functions.
Ulf Hansson (3):
Revert "spi/pl022: fix spi-pl022 pm enable at probe"
Revert "spi/pl022: enable runtime PM"
spi: spi-pl022: Minor simplification for runtime pm
drivers/spi/spi-pl022.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
--
1.7.10
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
@ 2012-09-28 11:21 ` Ulf Hansson
[not found] ` <1348831266-16721-2-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:21 ` [PATCH 2/3] Revert "spi/pl022: enable runtime PM" Ulf Hansson
` (2 subsequent siblings)
3 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-09-28 11:21 UTC (permalink / raw)
To: Grant Likely, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
Linus Walleij, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
This reverts commit 6887237cd7da904184dab2750504040c68f3a080.
Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/spi/spi-pl022.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index f8568b4..3f2f36c 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2188,6 +2188,7 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
adev->res.start, pl022->virtbase);
+ pm_runtime_enable(dev);
pm_runtime_resume(dev);
pl022->clk = clk_get(&adev->dev, NULL);
--
1.7.10
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 2/3] Revert "spi/pl022: enable runtime PM"
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:21 ` [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe" Ulf Hansson
@ 2012-09-28 11:21 ` Ulf Hansson
[not found] ` <1348831266-16721-3-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:21 ` [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm Ulf Hansson
2012-09-28 11:25 ` [PATCH 0/3] Fixup use of " Ulf Hansson
3 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-09-28 11:21 UTC (permalink / raw)
To: Grant Likely, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
Linus Walleij, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
This reverts commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99.
Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/spi/spi-pl022.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 3f2f36c..05cfb61e 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2188,9 +2188,6 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
adev->res.start, pl022->virtbase);
- pm_runtime_enable(dev);
- pm_runtime_resume(dev);
-
pl022->clk = clk_get(&adev->dev, NULL);
if (IS_ERR(pl022->clk)) {
status = PTR_ERR(pl022->clk);
@@ -2303,7 +2300,6 @@ pl022_remove(struct amba_device *adev)
clk_disable(pl022->clk);
clk_unprepare(pl022->clk);
clk_put(pl022->clk);
- pm_runtime_disable(&adev->dev);
iounmap(pl022->virtbase);
amba_release_regions(adev);
tasklet_disable(&pl022->pump_transfers);
--
1.7.10
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply related [flat|nested] 16+ messages in thread
* [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:21 ` [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe" Ulf Hansson
2012-09-28 11:21 ` [PATCH 2/3] Revert "spi/pl022: enable runtime PM" Ulf Hansson
@ 2012-09-28 11:21 ` Ulf Hansson
[not found] ` <1348831266-16721-4-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:25 ` [PATCH 0/3] Fixup use of " Ulf Hansson
3 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-09-28 11:21 UTC (permalink / raw)
To: Grant Likely, spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
Linus Walleij, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
In probe pm_runtime_put_autosuspend has the same effect as doing
pm_runtime_put. This due to upper layer in driver core is preventing
the device from being runtime suspended by a pm_runtime_get*.
Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
---
drivers/spi/spi-pl022.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 05cfb61e..e51a026 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2248,10 +2248,9 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
pm_runtime_set_autosuspend_delay(dev,
platform_info->autosuspend_delay);
pm_runtime_use_autosuspend(dev);
- pm_runtime_put_autosuspend(dev);
- } else {
- pm_runtime_put(dev);
}
+ pm_runtime_put(dev);
+
return 0;
err_spi_register:
--
1.7.10
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: [PATCH 0/3] Fixup use of runtime pm
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
` (2 preceding siblings ...)
2012-09-28 11:21 ` [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm Ulf Hansson
@ 2012-09-28 11:25 ` Ulf Hansson
3 siblings, 0 replies; 16+ messages in thread
From: Ulf Hansson @ 2012-09-28 11:25 UTC (permalink / raw)
To: Ulf Hansson
Cc: Vipul Kumar Samar, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Sorry for the heading, should be spi: spi-pl022"
Kind regards
Ulf Hansson
On 28 September 2012 13:21, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
> From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> Some old runtime pm patches got merged whiched messed up things.
> These is now reverted. Additionaly one patch do a simplification
> of the use of runtime pm functions.
>
> Ulf Hansson (3):
> Revert "spi/pl022: fix spi-pl022 pm enable at probe"
> Revert "spi/pl022: enable runtime PM"
> spi: spi-pl022: Minor simplification for runtime pm
>
> drivers/spi/spi-pl022.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> --
> 1.7.10
>
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <1348831266-16721-2-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
@ 2012-09-28 11:45 ` vipul kumar samar
2012-09-30 8:44 ` Linus Walleij
2012-10-03 13:43 ` Ulf Hansson
2 siblings, 0 replies; 16+ messages in thread
From: vipul kumar samar @ 2012-09-28 11:45 UTC (permalink / raw)
To: Ulf HANSSON
Cc: Ulf Hansson, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Hello Ulf,
On 9/28/2012 4:51 PM, Ulf HANSSON wrote:
> From: Ulf Hansson<ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This reverts commit 6887237cd7da904184dab2750504040c68f3a080.
>
> Signed-off-by: Ulf Hansson<ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> drivers/spi/spi-pl022.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
> index f8568b4..3f2f36c 100644
> --- a/drivers/spi/spi-pl022.c
> +++ b/drivers/spi/spi-pl022.c
> @@ -2188,6 +2188,7 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
> printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
> adev->res.start, pl022->virtbase);
>
> + pm_runtime_enable(dev);
Before calling spi-pl022 probe, amba_probe enables runtime pm. Is it
requires to re-enable it in spi-pl022 probe??
Regards
Vipul Samar
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/3] Revert "spi/pl022: enable runtime PM"
[not found] ` <1348831266-16721-3-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
@ 2012-09-28 11:50 ` vipul kumar samar
2012-09-30 21:46 ` Linus Walleij
1 sibling, 0 replies; 16+ messages in thread
From: vipul kumar samar @ 2012-09-28 11:50 UTC (permalink / raw)
To: Ulf HANSSON
Cc: Ulf Hansson, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Hello ulf,
On 9/28/2012 4:51 PM, Ulf HANSSON wrote:
> From: Ulf Hansson<ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This reverts commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99.
>
> Signed-off-by: Ulf Hansson<ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> drivers/spi/spi-pl022.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
> index 3f2f36c..05cfb61e 100644
> --- a/drivers/spi/spi-pl022.c
> +++ b/drivers/spi/spi-pl022.c
> @@ -2188,9 +2188,6 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
> printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
> adev->res.start, pl022->virtbase);
>
> - pm_runtime_enable(dev);
> - pm_runtime_resume(dev);
> -
> pl022->clk = clk_get(&adev->dev, NULL);
> if (IS_ERR(pl022->clk)) {
> status = PTR_ERR(pl022->clk);
> @@ -2303,7 +2300,6 @@ pl022_remove(struct amba_device *adev)
> clk_disable(pl022->clk);
> clk_unprepare(pl022->clk);
> clk_put(pl022->clk);
> - pm_runtime_disable(&adev->dev);
> iounmap(pl022->virtbase);
> amba_release_regions(adev);
> tasklet_disable(&pl022->pump_transfers);
sorry..Now i got it you revert complete rumtime patch.
Regards
Vipul Samar
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <1348831266-16721-2-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:45 ` vipul kumar samar
@ 2012-09-30 8:44 ` Linus Walleij
[not found] ` <CACRpkdb+bnCzYV2Dzqou5kGyc1hrh0VT-pYXZm1auu4uik2GNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-03 13:43 ` Ulf Hansson
2 siblings, 1 reply; 16+ messages in thread
From: Linus Walleij @ 2012-09-30 8:44 UTC (permalink / raw)
To: Ulf Hansson
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Fri, Sep 28, 2012 at 1:21 PM, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
> From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This reverts commit 6887237cd7da904184dab2750504040c68f3a080.
>
> Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Why?
It was removed in this commit, is it wrong?
Author: Michel JAOUEN <michel.jaouen-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Date: Fri Aug 17 17:28:41 2012 +0200
spi/pl022: fix spi-pl022 pm enable at probe
amba drivers does not need to enable pm runtime at probe.
amba_probe already enables pm runtime.
This rids this warning in the ux500 boot log:
ssp-pl022 ssp0: Unbalanced pm_runtime_enable!
Signed-off-by: Michel JAOUEN <michel.jaouen-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Signed-off-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Signed-off-by: Mark Brown <broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
Yours,
Linus Walleij
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <CACRpkdb+bnCzYV2Dzqou5kGyc1hrh0VT-pYXZm1auu4uik2GNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-09-30 10:14 ` Russell King - ARM Linux
[not found] ` <20120930101418.GF6933-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
0 siblings, 1 reply; 16+ messages in thread
From: Russell King - ARM Linux @ 2012-09-30 10:14 UTC (permalink / raw)
To: Linus Walleij
Cc: Ulf Hansson, Vipul Kumar Samar, Viresh Kumar,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ulf Hansson,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Sun, Sep 30, 2012 at 10:44:17AM +0200, Linus Walleij wrote:
> On Fri, Sep 28, 2012 at 1:21 PM, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
>
> > From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> >
> > This reverts commit 6887237cd7da904184dab2750504040c68f3a080.
> >
> > Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> Why?
>
> It was removed in this commit, is it wrong?
Linus, please read the previous thread on pl022.
The long and short of it is that your commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99
(spi/pl022: enable runtime PM) is totally broken, and Michel came along
trying to fix the resulting breakage by partially removing your commit
in 6887237cd7da904184dab2750504040c68f3a080 (spi/pl022: fix spi-pl022
pm enable at probe).
The reason why your commit is wrong is:
pm_runtime_get_noresume(dev);
pm_runtime_set_active(dev);
pm_runtime_enable(dev);
ret = pcdrv->probe(pcdev, id);
So, adding this in spi-pl022 probe:
+ pm_runtime_enable(dev);
+ pm_runtime_resume(dev);
makes the sequence:
pm_runtime_get_noresume(dev);
pm_runtime_set_active(dev);
pm_runtime_enable(dev);
pm_runtime_enable(dev);
pm_runtime_resume(dev);
which is absolute rubbish. Your commit should never have gone into any
tree.
The real answer is to revert both commits to get the driver back to a
sane state, before then progressing with the driver in a sane manner.
This is what Ulf is doing.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <20120930101418.GF6933-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
@ 2012-09-30 21:43 ` Linus Walleij
0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2012-09-30 21:43 UTC (permalink / raw)
To: Russell King - ARM Linux
Cc: Ulf Hansson, Vipul Kumar Samar, Viresh Kumar,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, Ulf Hansson,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Sun, Sep 30, 2012 at 12:14 PM, Russell King - ARM Linux
<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org> wrote:
> The real answer is to revert both commits to get the driver back to a
> sane state, before then progressing with the driver in a sane manner.
> This is what Ulf is doing.
Aha, mea culpa.
Acked-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
For all of them, I'll read up on this exploding backlog and then Ulf
will hammer me at the office until I understand this stuff properly...
Yours,
Linus Walleij
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 2/3] Revert "spi/pl022: enable runtime PM"
[not found] ` <1348831266-16721-3-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:50 ` vipul kumar samar
@ 2012-09-30 21:46 ` Linus Walleij
1 sibling, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2012-09-30 21:46 UTC (permalink / raw)
To: Ulf Hansson
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Fri, Sep 28, 2012 at 1:21 PM, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
> From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This reverts commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99.
>
> Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Reviewed-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Thanks for fixing my stupid mistakes ...
Linus Walleij
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm
[not found] ` <1348831266-16721-4-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
@ 2012-09-30 21:47 ` Linus Walleij
0 siblings, 0 replies; 16+ messages in thread
From: Linus Walleij @ 2012-09-30 21:47 UTC (permalink / raw)
To: Ulf Hansson
Cc: Ulf Hansson, Vipul Kumar Samar, Russell King, Viresh Kumar,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Fri, Sep 28, 2012 at 1:21 PM, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
> From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> In probe pm_runtime_put_autosuspend has the same effect as doing
> pm_runtime_put. This due to upper layer in driver core is preventing
> the device from being runtime suspended by a pm_runtime_get*.
>
> Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Reviewed-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Yours,
Linus Walleij
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <1348831266-16721-2-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:45 ` vipul kumar samar
2012-09-30 8:44 ` Linus Walleij
@ 2012-10-03 13:43 ` Ulf Hansson
[not found] ` <CAPDyKFo5-UeUe7PkxCBMnRziWh+eSC_ZjJ0pKhcBkHUkFdSH+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-10-03 13:43 UTC (permalink / raw)
To: Mark Brown, Grant Likely
Cc: Vipul Kumar Samar, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hi Mark and Grant,
Heard from Linus Walleij that you Mark has been helping out merging
spi patches, did not know that when sending out this series. Anyway,
do you guys see any issues merging this?
[PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[PATCH 2/3] Revert "spi/pl022: enable runtime PM"
[PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm
Kind regards
Ulf Hansson
On 28 September 2012 13:21, Ulf Hansson <ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org> wrote:
> From: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>
> This reverts commit 6887237cd7da904184dab2750504040c68f3a080.
>
> Signed-off-by: Ulf Hansson <ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> drivers/spi/spi-pl022.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
> index f8568b4..3f2f36c 100644
> --- a/drivers/spi/spi-pl022.c
> +++ b/drivers/spi/spi-pl022.c
> @@ -2188,6 +2188,7 @@ pl022_probe(struct amba_device *adev, const struct amba_id *id)
> printk(KERN_INFO "pl022: mapped registers from 0x%08x to %p\n",
> adev->res.start, pl022->virtbase);
>
> + pm_runtime_enable(dev);
> pm_runtime_resume(dev);
>
> pl022->clk = clk_get(&adev->dev, NULL);
> --
> 1.7.10
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <CAPDyKFo5-UeUe7PkxCBMnRziWh+eSC_ZjJ0pKhcBkHUkFdSH+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-03 13:55 ` Mark Brown
[not found] ` <20121003135556.GE4360-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
0 siblings, 1 reply; 16+ messages in thread
From: Mark Brown @ 2012-10-03 13:55 UTC (permalink / raw)
To: Ulf Hansson
Cc: Vipul Kumar Samar, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Wed, Oct 03, 2012 at 03:43:16PM +0200, Ulf Hansson wrote:
> Heard from Linus Walleij that you Mark has been helping out merging
> spi patches, did not know that when sending out this series. Anyway,
> do you guys see any issues merging this?
> [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
> [PATCH 2/3] Revert "spi/pl022: enable runtime PM"
> [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm
If someone could send the patches I'll take a look... some explanation
as to why we're reverting things would be helpful.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <20121003135556.GE4360-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
@ 2012-10-03 14:28 ` Ulf Hansson
[not found] ` <CAPDyKFrQ9UhEc_jEKdR=J8T-NUxsYQHB-yMh2vTyxJ+y+R38Og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 16+ messages in thread
From: Ulf Hansson @ 2012-10-03 14:28 UTC (permalink / raw)
To: Mark Brown
Cc: Vipul Kumar Samar, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
Hi Mark,
I will do a resend and include some explanation for the reverts in the
"cover-letter".
Kind regards
Ulf Hansson
On 3 October 2012 15:55, Mark Brown <broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> wrote:
> On Wed, Oct 03, 2012 at 03:43:16PM +0200, Ulf Hansson wrote:
>
>> Heard from Linus Walleij that you Mark has been helping out merging
>> spi patches, did not know that when sending out this series. Anyway,
>> do you guys see any issues merging this?
>
>> [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
>> [PATCH 2/3] Revert "spi/pl022: enable runtime PM"
>> [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm
>
> If someone could send the patches I'll take a look... some explanation
> as to why we're reverting things would be helpful.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
[not found] ` <CAPDyKFrQ9UhEc_jEKdR=J8T-NUxsYQHB-yMh2vTyxJ+y+R38Og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-10-03 14:29 ` Mark Brown
0 siblings, 0 replies; 16+ messages in thread
From: Mark Brown @ 2012-10-03 14:29 UTC (permalink / raw)
To: Ulf Hansson
Cc: Vipul Kumar Samar, Russell King, Viresh Kumar, Linus Walleij,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
On Wed, Oct 03, 2012 at 04:28:34PM +0200, Ulf Hansson wrote:
> I will do a resend and include some explanation for the reverts in the
> "cover-letter".
It'd be good if the explanation could be in the commit logs so that
people reading history can understand things.
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2012-10-03 14:29 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-28 11:21 [PATCH 0/3] Fixup use of runtime pm Ulf Hansson
[not found] ` <1348831266-16721-1-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:21 ` [PATCH 1/3] Revert "spi/pl022: fix spi-pl022 pm enable at probe" Ulf Hansson
[not found] ` <1348831266-16721-2-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:45 ` vipul kumar samar
2012-09-30 8:44 ` Linus Walleij
[not found] ` <CACRpkdb+bnCzYV2Dzqou5kGyc1hrh0VT-pYXZm1auu4uik2GNg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-09-30 10:14 ` Russell King - ARM Linux
[not found] ` <20120930101418.GF6933-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2012-09-30 21:43 ` Linus Walleij
2012-10-03 13:43 ` Ulf Hansson
[not found] ` <CAPDyKFo5-UeUe7PkxCBMnRziWh+eSC_ZjJ0pKhcBkHUkFdSH+w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-03 13:55 ` Mark Brown
[not found] ` <20121003135556.GE4360-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-10-03 14:28 ` Ulf Hansson
[not found] ` <CAPDyKFrQ9UhEc_jEKdR=J8T-NUxsYQHB-yMh2vTyxJ+y+R38Og-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-03 14:29 ` Mark Brown
2012-09-28 11:21 ` [PATCH 2/3] Revert "spi/pl022: enable runtime PM" Ulf Hansson
[not found] ` <1348831266-16721-3-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-28 11:50 ` vipul kumar samar
2012-09-30 21:46 ` Linus Walleij
2012-09-28 11:21 ` [PATCH 3/3] spi: spi-pl022: Minor simplification for runtime pm Ulf Hansson
[not found] ` <1348831266-16721-4-git-send-email-ulf.hansson-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-09-30 21:47 ` Linus Walleij
2012-09-28 11:25 ` [PATCH 0/3] Fixup use of " Ulf Hansson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).