The patch titled
     cell: allow linux to map Cell regs on legacy SLOF tree.
has been added to the -mm tree.  Its filename is
     cell-allow-linux-to-map-cell-regs-on-legacy-slof-tree.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: cell: allow linux to map Cell regs on legacy SLOF tree.
From: Jean-Christophe DUBOIS <[EMAIL PROTECTED]>

The platforms missing the "cpus" property in the "be" node are mono-Cell
platforms such as CAB or Getaway.

Therefore it is possible to assume that if there is no "cpus" properties under
the "be" node then we can safely return the "device node" without more
checking.  This is a bit hacky but ...  it allows it to work on these
platforms.

Signed-off-by: Jean-Christophe DUBOIS <[EMAIL PROTECTED]>
Acked-by: Christian Krafft <[EMAIL PROTECTED]>
Signed-off-by: Arnd Bergmann <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 arch/powerpc/platforms/cell/cbe_regs.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)

diff -puN 
arch/powerpc/platforms/cell/cbe_regs.c~cell-allow-linux-to-map-cell-regs-on-legacy-slof-tree
 arch/powerpc/platforms/cell/cbe_regs.c
--- 
a/arch/powerpc/platforms/cell/cbe_regs.c~cell-allow-linux-to-map-cell-regs-on-legacy-slof-tree
+++ a/arch/powerpc/platforms/cell/cbe_regs.c
@@ -174,9 +174,13 @@ static struct device_node *cbe_get_be_no
 
                cpu_handle = of_get_property(np, "cpus", &len);
 
+               /*
+                * the CAB SLOF tree is non compliant, so we just assume
+                * there is only one node
+                */
                if (!cpu_handle) {
                        WARN_ON_ONCE(!cpu_handle);
-                       continue;
+                       return np;
                }
 
                for (i=0; i<len; i++)
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

cell-fix-cbe_cpufreq-for-legacy-slof-tree.patch
cell-fix-cbe_regc-for-legacy-slof-tree.patch
cell-fix-cbe_thermal-for-legacy-slof-tree.patch
cell-allow-linux-to-map-cell-regs-on-legacy-slof-tree.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to