diff mbox

[2/2] Revert "spi/pl022: enable runtime PM"

Message ID 1349452272-4002-2-git-send-email-ulf.hansson@stericsson.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ulf Hansson Oct. 5, 2012, 3:51 p.m. UTC
From: Ulf Hansson <ulf.hansson@linaro.org>

This reverts commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99.

This patch introduced runtime PM issues and is not needed at all.
Thus we should revert it.

Conflicts:

	drivers/spi/spi-pl022.c

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/spi/spi-pl022.c |    4 ----
 1 file changed, 4 deletions(-)

Comments

Ulf Hansson Oct. 23, 2012, 10:31 a.m. UTC | #1
It seems like this patch did not get applied together with:
[PATCH 1/2] Revert "spi/pl022: fix spi-pl022 pm enable at probe"

The problem was likely my fault, since there were a lot of resends.
Anyway, it should still be possible to apply.

Kind regards
Ulf Hansson


On 5 October 2012 17:51, Ulf Hansson <ulf.hansson@stericsson.com> wrote:
> From: Ulf Hansson <ulf.hansson@linaro.org>
>
> This reverts commit 2fb30d1147c599f5657e8c62c862f9a0f58d9d99.
>
> This patch introduced runtime PM issues and is not needed at all.
> Thus we should revert it.
>
> Conflicts:
>
>         drivers/spi/spi-pl022.c
>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> Acked-by: Linus Walleij <linus.walleij@linaro.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 5cf0643..a1db91a 100644
> --- a/drivers/spi/spi-pl022.c
> +++ b/drivers/spi/spi-pl022.c
> @@ -2186,9 +2186,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 = devm_clk_get(&adev->dev, NULL);
>         if (IS_ERR(pl022->clk)) {
>                 status = PTR_ERR(pl022->clk);
> @@ -2293,7 +2290,6 @@ pl022_remove(struct amba_device *adev)
>
>         clk_disable(pl022->clk);
>         clk_unprepare(pl022->clk);
> -       pm_runtime_disable(&adev->dev);
>         amba_release_regions(adev);
>         tasklet_disable(&pl022->pump_transfers);
>         spi_unregister_master(pl022->master);
> --
> 1.7.10
>
Mark Brown Oct. 23, 2012, 11:10 a.m. UTC | #2
On Tue, Oct 23, 2012 at 12:31:06PM +0200, Ulf Hansson wrote:
> It seems like this patch did not get applied together with:
> [PATCH 1/2] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
> 
> The problem was likely my fault, since there were a lot of resends.
> Anyway, it should still be possible to apply.

I *really* should not need to remind you to:

 - Not top post
 - Send patches in a form which can be applied if you want them applying
Russell King - ARM Linux Oct. 23, 2012, 11:16 a.m. UTC | #3
On Tue, Oct 23, 2012 at 12:10:19PM +0100, Mark Brown wrote:
> On Tue, Oct 23, 2012 at 12:31:06PM +0200, Ulf Hansson wrote:
> > It seems like this patch did not get applied together with:
> > [PATCH 1/2] Revert "spi/pl022: fix spi-pl022 pm enable at probe"
> > 
> > The problem was likely my fault, since there were a lot of resends.
> > Anyway, it should still be possible to apply.
> 
> I *really* should not need to remind you to:
> 
>  - Not top post
>  - Send patches in a form which can be applied if you want them applying

How about actually applying the damned patch from the two-part patch set,
rather than only the first, both of which has been around for almost a
month now, and fixes what should never have gone into mainline in the
first place?
Mark Brown Oct. 23, 2012, 11:41 a.m. UTC | #4
On Tue, Oct 23, 2012 at 12:16:56PM +0100, Russell King - ARM Linux wrote:
> On Tue, Oct 23, 2012 at 12:10:19PM +0100, Mark Brown wrote:

> > I *really* should not need to remind you to:

> >  - Not top post
> >  - Send patches in a form which can be applied if you want them applying

> How about actually applying the damned patch from the two-part patch set,
> rather than only the first, both of which has been around for almost a
> month now, and fixes what should never have gone into mainline in the
> first place?

Well, the reason for the second point is that I don't have a copy of the
patch any more, I need a copy of it before I can do anything.  Half the
reason these contentless top posts are annoying is that even if there's
something to do it's not actionable.

I have to say I had been under the impression that Linus' series that I
applied the other day dealt with all the outstanding stuff here; the
issues with this have been the awful changelogs and the overalapping
sets of patches.
Russell King - ARM Linux Oct. 23, 2012, 11:47 a.m. UTC | #5
On Tue, Oct 23, 2012 at 12:41:31PM +0100, Mark Brown wrote:
> On Tue, Oct 23, 2012 at 12:16:56PM +0100, Russell King - ARM Linux wrote:
> > On Tue, Oct 23, 2012 at 12:10:19PM +0100, Mark Brown wrote:
> 
> > > I *really* should not need to remind you to:
> 
> > >  - Not top post
> > >  - Send patches in a form which can be applied if you want them applying
> 
> > How about actually applying the damned patch from the two-part patch set,
> > rather than only the first, both of which has been around for almost a
> > month now, and fixes what should never have gone into mainline in the
> > first place?
> 
> Well, the reason for the second point is that I don't have a copy of the
> patch any more, I need a copy of it before I can do anything.  Half the
> reason these contentless top posts are annoying is that even if there's
> something to do it's not actionable.
> 
> I have to say I had been under the impression that Linus' series that I
> applied the other day dealt with all the outstanding stuff here; the
> issues with this have been the awful changelogs and the overalapping
> sets of patches.

Given that Linus is the one who introduced the fuckups in the first place,
and afaics Linus' series has not been posted anywhere I can see, and I
have been through the issues and worked with Ulf to get them fixed, I find
that to be down right insulting by you.

You received *BOTH* of Ulf's patches on the 5th October.  Both needed
to be applied *TOGETHER* to reduce the window where things got worse
before they got better.  But for some goddamned unknown reason you decided
to only take the first but totally and utterly ignored the second.

Well done, you've probably crapped this driver up again.  Way to go Mark.
Now, tell us _exactly_ what patches you've applied to this driver.  Post
them to this mailing list so we can see them, and see what state this
driver is now in.

IMHO, you're being a terrible "maintainer" here - and this is being shown
by the need to get you to post all the patches you've currently queued up
for this.
Russell King - ARM Linux Oct. 23, 2012, 11:48 a.m. UTC | #6
On Tue, Oct 23, 2012 at 12:47:23PM +0100, Russell King - ARM Linux wrote:
> On Tue, Oct 23, 2012 at 12:41:31PM +0100, Mark Brown wrote:
> > On Tue, Oct 23, 2012 at 12:16:56PM +0100, Russell King - ARM Linux wrote:
> > > On Tue, Oct 23, 2012 at 12:10:19PM +0100, Mark Brown wrote:
> > 
> > > > I *really* should not need to remind you to:
> > 
> > > >  - Not top post
> > > >  - Send patches in a form which can be applied if you want them applying
> > 
> > > How about actually applying the damned patch from the two-part patch set,
> > > rather than only the first, both of which has been around for almost a
> > > month now, and fixes what should never have gone into mainline in the
> > > first place?
> > 
> > Well, the reason for the second point is that I don't have a copy of the
> > patch any more, I need a copy of it before I can do anything.  Half the
> > reason these contentless top posts are annoying is that even if there's
> > something to do it's not actionable.
> > 
> > I have to say I had been under the impression that Linus' series that I
> > applied the other day dealt with all the outstanding stuff here; the
> > issues with this have been the awful changelogs and the overalapping
> > sets of patches.
> 
> Given that Linus is the one who introduced the fuckups in the first place,
> and afaics Linus' series has not been posted anywhere I can see, and I
> have been through the issues and worked with Ulf to get them fixed, I find
> that to be down right insulting by you.
> 
> You received *BOTH* of Ulf's patches on the 5th October.  Both needed
> to be applied *TOGETHER* to reduce the window where things got worse
> before they got better.  But for some goddamned unknown reason you decided
> to only take the first but totally and utterly ignored the second.
> 
> Well done, you've probably crapped this driver up again.  Way to go Mark.
> Now, tell us _exactly_ what patches you've applied to this driver.  Post
> them to this mailing list so we can see them, and see what state this
> driver is now in.
> 
> IMHO, you're being a terrible "maintainer" here - and this is being shown
> by the need to get you to post all the patches you've currently queued up
> for this.

Oh, and if you're unwilling to do that, then I'm taking both of Ulf's
patches, committing them to my fixes branch, and sending them off to
Linus tonight - because they are _NEEDED_ for the -rc series to fix
this driver.
Mark Brown Oct. 23, 2012, 12:29 p.m. UTC | #7
On Tue, Oct 23, 2012 at 12:47:23PM +0100, Russell King - ARM Linux wrote:
> On Tue, Oct 23, 2012 at 12:41:31PM +0100, Mark Brown wrote:

> > I have to say I had been under the impression that Linus' series that I
> > applied the other day dealt with all the outstanding stuff here; the
> > issues with this have been the awful changelogs and the overalapping
> > sets of patches.

> Given that Linus is the one who introduced the fuckups in the first place,
> and afaics Linus' series has not been posted anywhere I can see, and I
> have been through the issues and worked with Ulf to get them fixed, I find
> that to be down right insulting by you.

Linus' patches were all posted to spi-devel-general.  I can understand
why you wouldn't subscribe to it given that it's a sourceforge list and
hence full of spam but it is the list of record for SPI unfortunately.

> You received *BOTH* of Ulf's patches on the 5th October.  Both needed
> to be applied *TOGETHER* to reduce the window where things got worse
> before they got better.  But for some goddamned unknown reason you decided
> to only take the first but totally and utterly ignored the second.

Unfortunately Ulf's original posting of the patches didn't include any
analysis of the problems or explanation as to why the reverts were
needed.  Since I had no idea what the patches were supposed to do having
not been involved in whatever discussion of the bugs were I didn't apply
them then.

Ulf did repost with a slightly clarified changelog and I *suspect* that
the second patch just got fat fingered due to the multiple different
revisions of the series that were floating around.

> Well done, you've probably crapped this driver up again.  Way to go Mark.
> Now, tell us _exactly_ what patches you've applied to this driver.  Post
> them to this mailing list so we can see them, and see what state this
> driver is now in.

> IMHO, you're being a terrible "maintainer" here - and this is being shown
> by the need to get you to post all the patches you've currently queued up
> for this.

As one would expect all the patches that are currently sitting there for
the driver are in -next already; one of the nice things about -next is
that it does tend to help remove doubt about things like this.

You just pointed me at the discussion of the original issue that
happened prior to Ulf's revert posting; I now see what's going on, your
analysis is crystal clear [1].  I'm just generating the extra revert of
2fb30d (spi/pl022: enable runtime PM) which I'll squash down into the
existing revert and send to Linus tomorrow.

[1] http://lists.arm.linux.org.uk/lurker/message/20120927.152412.d281a899.en.html
Linus Walleij Oct. 23, 2012, 12:42 p.m. UTC | #8
On Tue, Oct 23, 2012 at 1:41 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:

> I have to say I had been under the impression that Linus' series that I
> applied the other day dealt with all the outstanding stuff here; the
> issues with this have been the awful changelogs and the overalapping
> sets of patches.

It did I think it was patch [1/4] (same subject as this thread),
http://sourceforge.net/mailarchive/forum.php?thread_name=1350476818-13056-1-git-send-email-linus.walleij%40stericsson.com&forum_name=spi-devel-general
to which you replied:

> This was already applied, applied the rest thanks.

So it probably wasn't and it's just some mishap so
that 2,3,4 /4 were applied while 1/4 was actually needed
to.

Yours,
Linus Walleij
Mark Brown Oct. 23, 2012, 1:01 p.m. UTC | #9
On Tue, Oct 23, 2012 at 12:48:42PM +0100, Russell King - ARM Linux wrote:

> Oh, and if you're unwilling to do that, then I'm taking both of Ulf's
> patches, committing them to my fixes branch, and sending them off to
> Linus tonight - because they are _NEEDED_ for the -rc series to fix
> this driver.

As I said in my previous e-mail I've now done the revert myself; I'll
send the fixes to Linus.  If you wish to check the other patches that
are queued they're in -next like I said; I'd appreciate someone who's
actively using the driver taking a look at them.
diff mbox

Patch

diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 5cf0643..a1db91a 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2186,9 +2186,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 = devm_clk_get(&adev->dev, NULL);
 	if (IS_ERR(pl022->clk)) {
 		status = PTR_ERR(pl022->clk);
@@ -2293,7 +2290,6 @@  pl022_remove(struct amba_device *adev)
 
 	clk_disable(pl022->clk);
 	clk_unprepare(pl022->clk);
-	pm_runtime_disable(&adev->dev);
 	amba_release_regions(adev);
 	tasklet_disable(&pl022->pump_transfers);
 	spi_unregister_master(pl022->master);