linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] of: Fix address decoding on Bimini and js2x machines
@ 2013-07-03  6:01 Benjamin Herrenschmidt
  2013-07-03 14:10 ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2013-07-03  6:01 UTC (permalink / raw)
  To: linuxppc-dev, devicetree-discuss
  Cc: Thierry Reding, Rob Herring, Arnd Bergmann

 Commit:
    
  e38c0a1fbc5803cbacdaac0557c70ac8ca5152e7
  of/address: Handle #address-cells > 2 specially
    
broke real time clock access on Bimini, js2x, and similar powerpc
machines using the "maple" platform. That code was indirectly relying
on the old (broken) behaviour of the translation for the hypertransport
to ISA bridge.
    
This fixes it by treating hypertransport as a PCI bus
    
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org> [v3.6+]
---

Rob, if you have no objection I will put that in powerpc -next

diff --git a/drivers/of/address.c b/drivers/of/address.c
index 04da786..7c8221d 100644
--- a/drivers/of/address.c
+++ b/drivers/of/address.c
@@ -106,8 +106,12 @@ static unsigned int of_bus_default_get_flags(const __be32 *
 
 static int of_bus_pci_match(struct device_node *np)
 {
-       /* "vci" is for the /chaos bridge on 1st-gen PCI powermacs */
-       return !strcmp(np->type, "pci") || !strcmp(np->type, "vci");
+       /*
+        * "vci" is for the /chaos bridge on 1st-gen PCI powermacs
+        * "ht" is hypertransport
+        */
+       return !strcmp(np->type, "pci") || !strcmp(np->type, "vci") ||
+               !strcmp(np->type, "ht");
 }
 
 static void of_bus_pci_count_cells(struct device_node *np,

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Fix address decoding on Bimini and js2x machines
  2013-07-03  6:01 [PATCH] of: Fix address decoding on Bimini and js2x machines Benjamin Herrenschmidt
@ 2013-07-03 14:10 ` Rob Herring
  2013-07-03 14:37   ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2013-07-03 14:10 UTC (permalink / raw)
  To: Benjamin Herrenschmidt
  Cc: Grant Likely, devicetree-discuss, Thierry Reding, linuxppc-dev,
	Arnd Bergmann

On 07/03/2013 01:01 AM, Benjamin Herrenschmidt wrote:
>  Commit:
>     
>   e38c0a1fbc5803cbacdaac0557c70ac8ca5152e7
>   of/address: Handle #address-cells > 2 specially
>     
> broke real time clock access on Bimini, js2x, and similar powerpc
> machines using the "maple" platform. That code was indirectly relying
> on the old (broken) behaviour of the translation for the hypertransport
> to ISA bridge.
>     
> This fixes it by treating hypertransport as a PCI bus
>     
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> CC: <stable@vger.kernel.org> [v3.6+]
> ---
> 
> Rob, if you have no objection I will put that in powerpc -next

NP.

Acked-by: Rob Herring <rob.herring@calxeda.com>

Rob

> 
> diff --git a/drivers/of/address.c b/drivers/of/address.c
> index 04da786..7c8221d 100644
> --- a/drivers/of/address.c
> +++ b/drivers/of/address.c
> @@ -106,8 +106,12 @@ static unsigned int of_bus_default_get_flags(const __be32 *
>  
>  static int of_bus_pci_match(struct device_node *np)
>  {
> -       /* "vci" is for the /chaos bridge on 1st-gen PCI powermacs */
> -       return !strcmp(np->type, "pci") || !strcmp(np->type, "vci");
> +       /*
> +        * "vci" is for the /chaos bridge on 1st-gen PCI powermacs
> +        * "ht" is hypertransport
> +        */
> +       return !strcmp(np->type, "pci") || !strcmp(np->type, "vci") ||
> +               !strcmp(np->type, "ht");
>  }
>  
>  static void of_bus_pci_count_cells(struct device_node *np,
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Fix address decoding on Bimini and js2x machines
  2013-07-03 14:10 ` Rob Herring
@ 2013-07-03 14:37   ` Grant Likely
  2013-07-04 16:18     ` Grant Likely
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Likely @ 2013-07-03 14:37 UTC (permalink / raw)
  To: Rob Herring
  Cc: devicetree-discuss, Thierry Reding, linuxppc-dev, Arnd Bergmann

On Wed, Jul 3, 2013 at 3:10 PM, Rob Herring <robherring2@gmail.com> wrote:
> On 07/03/2013 01:01 AM, Benjamin Herrenschmidt wrote:
>>  Commit:
>>
>>   e38c0a1fbc5803cbacdaac0557c70ac8ca5152e7
>>   of/address: Handle #address-cells > 2 specially
>>
>> broke real time clock access on Bimini, js2x, and similar powerpc
>> machines using the "maple" platform. That code was indirectly relying
>> on the old (broken) behaviour of the translation for the hypertransport
>> to ISA bridge.
>>
>> This fixes it by treating hypertransport as a PCI bus
>>
>> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
>> CC: <stable@vger.kernel.org> [v3.6+]
>> ---
>>
>> Rob, if you have no objection I will put that in powerpc -next
>
> NP.
>
> Acked-by: Rob Herring <rob.herring@calxeda.com>

I'll include this in my 3.11 pull request for Linus

g.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Fix address decoding on Bimini and js2x machines
  2013-07-03 14:37   ` Grant Likely
@ 2013-07-04 16:18     ` Grant Likely
  2013-07-04 21:55       ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 5+ messages in thread
From: Grant Likely @ 2013-07-04 16:18 UTC (permalink / raw)
  To: Rob Herring
  Cc: devicetree-discuss, Thierry Reding, linuxppc-dev, Arnd Bergmann

On Wed, 3 Jul 2013 15:37:56 +0100, Grant Likely <grant.likely@linaro.org> wrote:
> On Wed, Jul 3, 2013 at 3:10 PM, Rob Herring <robherring2@gmail.com> wrote:
> > On 07/03/2013 01:01 AM, Benjamin Herrenschmidt wrote:
> >>  Commit:
> >>
> >>   e38c0a1fbc5803cbacdaac0557c70ac8ca5152e7
> >>   of/address: Handle #address-cells > 2 specially
> >>
> >> broke real time clock access on Bimini, js2x, and similar powerpc
> >> machines using the "maple" platform. That code was indirectly relying
> >> on the old (broken) behaviour of the translation for the hypertransport
> >> to ISA bridge.
> >>
> >> This fixes it by treating hypertransport as a PCI bus
> >>
> >> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> >> CC: <stable@vger.kernel.org> [v3.6+]
> >> ---
> >>
> >> Rob, if you have no objection I will put that in powerpc -next
> >
> > NP.
> >
> > Acked-by: Rob Herring <rob.herring@calxeda.com>
> 
> I'll include this in my 3.11 pull request for Linus

Oops. Ben, I misread what you wrote. It would have been just fine to
include it in your powerpc -next branch. Sorry for the confusion.

Anyway, I saw your powerpc pull req and that this patch wasn't in it, so
I've picked it up and will send it to Linus as soon as the test build
completes.

g.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] of: Fix address decoding on Bimini and js2x machines
  2013-07-04 16:18     ` Grant Likely
@ 2013-07-04 21:55       ` Benjamin Herrenschmidt
  0 siblings, 0 replies; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2013-07-04 21:55 UTC (permalink / raw)
  To: Grant Likely
  Cc: linuxppc-dev, devicetree-discuss, Thierry Reding, Rob Herring,
	Arnd Bergmann

On Thu, 2013-07-04 at 17:18 +0100, Grant Likely wrote:
> > I'll include this in my 3.11 pull request for Linus
> 
> Oops. Ben, I misread what you wrote. It would have been just fine to
> include it in your powerpc -next branch. Sorry for the confusion.
> 
> Anyway, I saw your powerpc pull req and that this patch wasn't in it, so
> I've picked it up and will send it to Linus as soon as the test build
> completes.

Yeah, I was about to add it to a subsequent "fixes" branch but since you
picked it up I'll just leave it.

Thanks !

Cheers,
Ben.
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-04 21:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-03  6:01 [PATCH] of: Fix address decoding on Bimini and js2x machines Benjamin Herrenschmidt
2013-07-03 14:10 ` Rob Herring
2013-07-03 14:37   ` Grant Likely
2013-07-04 16:18     ` Grant Likely
2013-07-04 21:55       ` Benjamin Herrenschmidt

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).