Re: [PATCH] net: Add 405EX support to new EMAC driver

2007-11-05 Thread Stefan Roese
On Sunday 04 November 2007, Benjamin Herrenschmidt wrote: > > Isn't this the case where there should really be device tree properties > > instead? If you had an "ibm,emac-has-axon-stacr" property in the device > > node, then you don't have to modify the driver for every new board out > > there. Sam

[PATCH] cpm_load_patch() - declartion conflict

2007-11-05 Thread Kamalesh Babulal
Hi, The build fails with following error CC arch/powerpc/sysdev/micropatch.o arch/powerpc/sysdev/micropatch.c:625: error: conflicting types for ‘cpm_load_patch’ include/asm/commproc.h:94: error: previous declaration of ‘cpm_load_patch’ was here arch/powerpc/sysdev/micropatch.c: In functi

Re: [PATCH] net: Add 405EX support to new EMAC driver

2007-11-05 Thread Benjamin Herrenschmidt
On Mon, 2007-11-05 at 10:19 +0100, Stefan Roese wrote: > > > Somewhat yeah. There are subtle variations here or there we haven't > > totally indenfified... It might be a better option in our case here > to > > add "has-mdio" to the rgmii nodes indeed. > > So how exactly do you want me to handle

Re: [PATCH] net: Add 405EX support to new EMAC driver

2007-11-05 Thread Stefan Roese
On Monday 05 November 2007, Benjamin Herrenschmidt wrote: > > So how exactly do you want me to handle this (I'm still new to this > > device > > tree stuff, so please bear with me)? Like this? > > > > RGMII0: [EMAIL PROTECTED] { > > device_typ

Re: [PATCH] [POWERPC] pasemi: Broaden specific references to 1682M

2007-11-05 Thread Michael Buesch
On Monday 05 November 2007 04:28:02 Olof Johansson wrote: > [POWERPC] pasemi: Broaden specific references to 1682M > > There will be more product numbers in the future than just PA6T-1682M, > but they will share much of the features. Remove some of the explicit > references and compatibility c

2.6.24-rc1 on PPC64: machine check exception

2007-11-05 Thread Vaidyanathan Srinivasan
Hi, I got the following exception on a 128-way PPC64 machine while running ebizzy-0.2 benchmark. cpu 0x48: Vector: 200 (Machine Check) at [c06df1bb37c0] pc: c007a26c: .exit_robust_list+0x78/0x228 lr: c007a240: .exit_robust_list+0x4c/0x228 sp: c06df1bb3a40 ms

Re: [PATCH] ehea: add kexec support

2007-11-05 Thread Christoph Raisch
Michael Neuling <[EMAIL PROTECTED]> wrote on 03.11.2007 07:06:31: > > DD allocates HEA resources and gets firmware_handles for these resources. > > To free the resources DD needs to use exactly these handles. > > There's no generic firmware call "clean out all resources". > > Allocating the same

[PATCH (for 2.6.25?)] adb: replace sleep notifier with platform driver suspend/resume hooks

2007-11-05 Thread Johannes Berg
This patch replaces the pmu sleep notifier that adb had with suspend/resume hooks in a new platform driver/device. Signed-off-by: Johannes Berg <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Is it too early to be sending patches for 2.6.25? :) I submitted this way back but

[PATCH (for 2.6.25?)] via-pmu: kill sleep notifiers completely

2007-11-05 Thread Johannes Berg
This patch kills off the remnants of the ancient sleep notifiers that are no longer used by any code. Signed-off-by: Johannes Berg <[EMAIL PROTECTED]> Cc: Benjamin Herrenschmidt <[EMAIL PROTECTED]> --- Obviously depends on the ADB patch I just sent. drivers/macintosh/via-pmu.c | 71 --

Re: dtc: Don't include libfdt in global LDFLAGS

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > Remove the uneccessary LDFLAGS from the top-level makefile. It only > added libfdt/ to the link path. dtc doesn't need libfdt at all, and > the testcases which do, already link libfdt.a by explicit path. > > Signed-off-by: David Gibson <[EMAIL PROT

Re: dtc: Make -Idts -Odts preserve node/property labels

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch changes -Odts mode output so that labels on properties, > nodes and memreserve entries in input source are preserved in the > output. > > Preserving labels within property values is trickier - another patch > coming later. > > Signed-off-

Re: dtc: Don't force alignment of cell list data

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > At present, defining a property as, say: > foo = [abcd], ; > > Will cause dtc to insert 2 bytes of zeros between the abcd and the > , to align the cell form data. > > Doing so seemed like a good idea at the time, but I don't believe >

Re: [PATCH] dtc: Fix the install target

2007-11-05 Thread Jon Loeliger
So, like, the other day Emil Medve mumbled: > /usr/bin/install: cannot stat `fdt.h': No such file or directory > /usr/bin/install: cannot stat `libfdt.h': No such file or directory > > Signed-off-by: Emil Medve <[EMAIL PROTECTED]> Applied. jdl ___ Linu

Re: libfdt: Add more documentation (patch the third)

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > libfdt: Add more documentation (patch the third) > > This patch adds documentation in libfdt.h for a few more libfdt > functions. It also makes a slight update to the documentation of > fdt_get_name(). > > Signed-off-by: David Gibson <[EMAIL PROTEC

Re: libfdt: Add more documentation (patch the fourth)

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > This patch documents a few more functions in libfdt.h. It also makes > a slight update to the description of the FDT_ERR_INTERNAL error code. > > Signed-off-by: David Gibson <[EMAIL PROTECTED]> Applied. jdl

Re: libfdt: Fix sw_tree1 testcase

2007-11-05 Thread Jon Loeliger
So, like, the other day David Gibson mumbled: > There is a bug in the sw_tree1 testcase / utility which puts two > "compatible" properties in one node in the output tree. This patch > fixes the bug, and also adds a new test checking that the sw_tree1 > output is equal to test_tree1.dtb as its supp

[RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
This is my first pass at reworking the Freescale i2c driver. It switches the driver from being a platform driver to an open firmware one. I've checked it out on my hardware and it is working. You can specific i2c devices on a bus by adding child nodes for them in the device tree. It does not know

Re: 2.6.24-rc1 on PPC64: machine check exception

2007-11-05 Thread Anton Blanchard
Hi > I got the following exception on a 128-way PPC64 machine while running > ebizzy-0.2 benchmark. Is it a 64bit application? Im guessing its fixed by this: http://patchwork.ozlabs.org/linuxppc/patch?id=14475 Anton > cpu 0x48: Vector: 200 (Machine Check) at [c06df1bb37c0] > pc: c0

Re: 2.6.24-rc1 on PPC64: machine check exception

2007-11-05 Thread Vaidyanathan Srinivasan
Anton Blanchard wrote: > Hi > >> I got the following exception on a 128-way PPC64 machine while running >> ebizzy-0.2 benchmark. > > Is it a 64bit application? Im guessing its fixed by this: Hi Anton, The ebizzy application I tried is 64-bit. > http://patchwork.ozlabs.org/linuxppc/patch?id=144

[PATCH 0/5] fixups for mpc8360 rev. 2.1 erratum #2 (RGMII Timing)

2007-11-05 Thread Kim Phillips
Hello all, the following patches fix RGMII timing for rev. 2.1 of the mpc8360, according to erratum #2 (erratum text included below). Basically the most intrusive part is the addition of two new RGMII Internal Delay modes; one for TX delay only, and the other for RX delay only (i.e, not both at t

[PATCH 1/5] powerpc: document rgmii-rxid and rgmii-txid phy-connection-types

2007-11-05 Thread Kim Phillips
A h/w bug requires we program the PHY in RGMII mode for internal delay on the receive or transmit side only; document the new property values. Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt |5 +++-- 1 files changed, 3 insertions(+), 2 deletio

[PATCH 2/5] phylib: add PHY interface modes for internal delay for tx and rx only

2007-11-05 Thread Kim Phillips
Allow phylib specification of cases where hardware needs to configure PHYs for Internal Delay only on either RX or TX (not both). Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- include/linux/phy.h |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/linux/phy.h b

[PATCH 3/5] phylib: marvell: add support for TX-only and RX-only Internal Delay

2007-11-05 Thread Kim Phillips
Previously, Internal Delay specification implied the delay be applied to both TX and RX. This patch allows for separate TX/RX-only internal delay specification. Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- drivers/net/phy/marvell.c | 26 +- 1 files changed, 17 in

[PATCH 4/5] ucc_geth: handle passing of RX-only and TX-only internal delay PHY connection type parameters

2007-11-05 Thread Kim Phillips
Extend the RGMII-Internal Delay specification case to include TX-only and RX-only variants. Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- drivers/net/ucc_geth.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c

[PATCH 5/5] powerpc: handle mpc8360 rev. 2.1 RGMII timing erratum

2007-11-05 Thread Kim Phillips
if on a rev. 2.1, adjust UCC clock and data timing characteristics as specified in the rev.2.1 erratum #2. Signed-off-by: Kim Phillips <[EMAIL PROTECTED]> --- arch/powerpc/platforms/83xx/mpc836x_mds.c | 31 ++-- 1 files changed, 28 insertions(+), 3 deletions(-) diff --g

Re: [PATCH] [POWERPC] pasemi: Broaden specific references to 1682M

2007-11-05 Thread Doug Thompson
I assume then that this patch will move upstream via the POWERPC path, is that right? Signed-off-by: Doug Thompson <[EMAIL PROTECTED]> --- Olof Johansson <[EMAIL PROTECTED]> wrote: > [POWERPC] pasemi: Broaden specific references to 1682M > > There will be more product numbers in the fut

Re: [PATCH] [POWERPC] pasemi: Broaden specific references to 1682M

2007-11-05 Thread Olof Johansson
On Mon, Nov 05, 2007 at 10:57:24AM -0800, Doug Thompson wrote: > > I assume then that this patch will move upstream via the POWERPC path, is > that right? Yes, I'll take care of feeding it upstream through that path. -Olof ___ Linuxppc-dev mailing li

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Matt Sealey
Jon Smirl wrote: > [EMAIL PROTECTED] { > device_type = "i2c"; > compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c"; > cell-index = <1>; > reg = <3d40 40>; > interrupts = <2 10 0>; > interrupt-parent = <&mpc5200_pic>; > fsl5200-clocking; > > [EMAIL PR

Re: [PATCH 11/16] Use of_get_next_child() in eeh_restore_bars()

2007-11-05 Thread Linas Vepstas
On Mon, Oct 29, 2007 at 02:46:13PM +1100, Michael Ellerman wrote: > > On Fri, 2007-10-26 at 17:29 +1000, Stephen Rothwell wrote: > > On Fri, 26 Oct 2007 16:54:43 +1000 (EST) Michael Ellerman <[EMAIL > > PROTECTED]> wrote: > > > > > > - dn = pdn->node->child; > > > - while (dn) { > > > + for (dn =

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Scott Wood
Jon Smirl wrote: > This is my first pass at reworking the Freescale i2c driver. It > switches the driver from being a platform driver to an open firmware > one. I've checked it out on my hardware and it is working. We may want to hold off on this until arch/ppc goes away (or at least all users of

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Matt Sealey <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > > [EMAIL PROTECTED] { > > device_type = "i2c"; > > compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c"; > > cell-index = <1>; > > reg = <3d40 40>; > > interrupts = <2 10 0>; > > interrupt-par

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Scott Wood
Jon Smirl wrote: > I can change it to remove fsl5200-clocking if someone can tell me if > this is only needed on the mpc5200b. Well, it appears to be needed on the mpc5200 (no 'b')... > This driver also supports the > MPC107/Tsi107/MPC8240/MPC8245 and MPC85xx/MPC8641. You forgot mpc83x

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Grant Likely
On 11/5/07, Jon Smirl <[EMAIL PROTECTED]> wrote: > This is my first pass at reworking the Freescale i2c driver. It > switches the driver from being a platform driver to an open firmware > one. I've checked it out on my hardware and it is working. Isn't this device core also used in the fsl coldfir

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > I can change it to remove fsl5200-clocking if someone can tell me if > > this is only needed on the mpc5200b. > > Well, it appears to be needed on the mpc5200 (no 'b')... What is the recommend way to check for a mpc5200 or m

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Grant Likely
On 11/5/07, Matt Sealey <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > > [EMAIL PROTECTED] { > > device_type = "i2c"; > > compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c"; > > cell-index = <1>; > > reg = <3d40 40>; > > interrupts = <2 10 0>; > > interrupt-par

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Scott Wood
Jon Smirl wrote: > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: >> Jon Smirl wrote: >>> I can change it to remove fsl5200-clocking if someone can tell me if >>> this is only needed on the mpc5200b. >> Well, it appears to be needed on the mpc5200 (no 'b')... > > What is the recommend way to ch

[PATCH 07/12] arch/ppc: Remove duplicate includes.

2007-11-05 Thread Lucas Woods
Signed-off-by: Lucas Woods <[EMAIL PROTECTED]> --- arch/ppc/kernel/setup.c |1 - arch/ppc/platforms/85xx/stx_gp3.c |1 - arch/ppc/syslib/gt64260_pic.c |1 - arch/ppc/syslib/mpc52xx_pic.c |1 - arch/ppc/syslib/mv64360_pic.c |1 - arch/ppc/syslib/ppc83xx_se

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > This is my first pass at reworking the Freescale i2c driver. It > > switches the driver from being a platform driver to an open firmware > > one. I've checked it out on my hardware and it is working. > > We may want to hold of

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Jon Smirl <[EMAIL PROTECTED]> wrote: > This is my first pass at reworking the Freescale i2c driver. It > switches the driver from being a platform driver to an open firmware > one. I've checked it out on my hardware and it is working. Is there any way to have the i2c chip modules match

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Scott Wood
Jon Smirl wrote: > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: >> Jon Smirl wrote: >>> This is my first pass at reworking the Freescale i2c driver. It >>> switches the driver from being a platform driver to an open firmware >>> one. I've checked it out on my hardware and it is working. >> We

mmap question on ppc440

2007-11-05 Thread Steven A. Falco
I am attempting to access the CPLD on the AMCC Sequoia board from user-land. I open /dev/mem, and mmap it, then try to access the resulting pointer. That works fine when accessing physical addresses that correspond to RAM, but as soon as I try to access the CPLD at physical address 0xc000

[PATCH] Replace some #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Jon Loeliger
From: Jon Loeliger <[EMAIL PROTECTED]> Signed-off-by: Jon Loeliger <[EMAIL PROTECTED]> --- Chip away at some janitor work. arch/powerpc/platforms/82xx/pq2fads.c |2 +- arch/powerpc/platforms/83xx/mpc832x_mds.c |2 +- arch/powerpc/platforms/83xx/mpc832x_rdb.c |2 +- arch/powerpc/p

Re: mmap question on ppc440

2007-11-05 Thread Josh Boyer
On Mon, 05 Nov 2007 16:02:59 -0500 "Steven A. Falco" <[EMAIL PROTECTED]> wrote: > I am attempting to access the CPLD on the AMCC Sequoia board from > user-land. I open /dev/mem, and mmap it, then try to access the > resulting pointer. That works fine when accessing physical addresses > that c

[PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Jon Loeliger
From: Jon Loeliger <[EMAIL PROTECTED]> Signed-off-by: Jon Loeliger <[EMAIL PROTECTED]> --- Chip away at some janitor work. arch/powerpc/platforms/40x/walnut.c |3 ++- arch/powerpc/platforms/44x/bamboo.c |3 ++- arch/powerpc/platforms/44x/ebony.c |3 ++- arch/powerpc/platforms/44x

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Matt Sealey
Scott Wood wrote: > Jon Smirl wrote: cell-index = <1>; >>> What is cell-index for? >> I was using it to control the bus number, is that the wrong attribute? > > It shouldn't be specified at all -- the hardware has no concept of a > device number. Well, all i2c devices have a chip id

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Scott Wood
Matt Sealey wrote: > Scott Wood wrote: >> Jon Smirl wrote: > > cell-index = <1>; What is cell-index for? >>> I was using it to control the bus number, is that the wrong >>> attribute? >> >> It shouldn't be specified at all -- the hardware has no concept of >> a device number. > > Well,

Re: [PATCH] Replace some #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Stephen Rothwell
Hi Jon, Thanks for starting this. On Mon, 05 Nov 2007 15:05:06 -0600 Jon Loeliger <[EMAIL PROTECTED]> wrote: > > From: Jon Loeliger <[EMAIL PROTECTED]> > > Signed-off-by: Jon Loeliger <[EMAIL PROTECTED]> Acked-by: Stephen Rothwell <[EMAIL PROTECTED]> > #include asm/of_device.h -> linux/of_d

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Stephen Rothwell
On Mon, 05 Nov 2007 15:43:43 -0600 Jon Loeliger <[EMAIL PROTECTED]> wrote: > > From: Jon Loeliger <[EMAIL PROTECTED]> > > Signed-off-by: Jon Loeliger <[EMAIL PROTECTED]> Acked-by: Stephen Rothwell <[EMAIL PROTECTED]> -- Cheers, Stephen Rothwell[EMAIL PROTECTED] http://www.ca

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Grant Likely
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > Jon Smirl wrote: > > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > >> Jon Smirl wrote: > >>> This is my first pass at reworking the Freescale i2c driver. It > >>> switches the driver from being a platform driver to an open firmware > >>> one

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Grant Likely
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > Matt Sealey wrote: > > Scott Wood wrote: > >> Jon Smirl wrote: > > > > cell-index = <1>; > What is cell-index for? > >>> I was using it to control the bus number, is that the wrong > >>> attribute? > >> > >> It shouldn't be specified at a

Re: libfdt: Fix sw_tree1 testcase

2007-11-05 Thread David Gibson
On Mon, Nov 05, 2007 at 09:11:25AM -0600, Jon Loeliger wrote: > So, like, the other day David Gibson mumbled: > > There is a bug in the sw_tree1 testcase / utility which puts two > > "compatible" properties in one node in the output tree. This patch > > fixes the bug, and also adds a new test chec

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Josh Boyer
On Tue, 6 Nov 2007 09:40:14 +1100 Stephen Rothwell <[EMAIL PROTECTED]> wrote: > On Mon, 05 Nov 2007 15:43:43 -0600 Jon Loeliger <[EMAIL PROTECTED]> wrote: > > > > From: Jon Loeliger <[EMAIL PROTECTED]> > > > > Signed-off-by: Jon Loeliger <[EMAIL PROTECTED]> > > Acked-by: Stephen Rothwell <[EMAIL

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Grant Likely <[EMAIL PROTECTED]> wrote: > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > > Jon Smirl wrote: > > > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > > >> Jon Smirl wrote: > > >>> This is my first pass at reworking the Freescale i2c driver. It > > >>> switches the d

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > >>> One side effect is that legacy style i2c drivers won't work anymore. > >> If you mean legacy-style client drivers, why not? > > > > i2c_new_device() doesn't work with legacy-style client drivers. > > No, but they should still work the old way.

Re: [PATCH] 4xx; Replace #includes of asm/of_platform.h with linux/of_platform.h.

2007-11-05 Thread Stephen Rothwell
On Mon, 5 Nov 2007 17:53:41 -0600 Josh Boyer <[EMAIL PROTECTED]> wrote: > > Yeah, this is fine with me too. But why haven't we put a #warning in > asm/of_platform.h and asm/prom.h? Because thee are way to many places to be fixed yet. And asm/prom.h needs to be explicitly included if you want to

[PATCH] powerpc: prpmc2800 - Don't trust documented memory size

2007-11-05 Thread Mark A. Greer
It turns out that the firmware on some PrPMC2800 processor modules initializes the memory controller for 512 MB even when there is more memory. As a simple work around, set the amount of memory in the device tree passed to the kernel to the lesser of what the memory controller is set up for and th

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > > +static struct of_platform_driver mpc_i2c_driver = { > > + .owner = THIS_MODULE, > > + .name = DRV_NAME, > > + .match_table= mpc_i2c_of_match, > > + .probe = mpc_i2c_probe, > > + .remove

Re: [PATCH] [POWERPC] pasemi: Broaden specific references to 1682M

2007-11-05 Thread Segher Boessenkool
Hi Olof, Nice cleanup! One minor thing... > static struct of_device_id pasemi_bus_ids[] = { > + /* Unfortunately needed for legacy firmwares */ > { .type = "localbus", }, > { .type = "sdc", }, > + { .compatible = "pasemi,localbus", }, > + { .compatible = "pasemi,sdc", },

Re: [PATCH] [POWERPC] pasemi: Broaden specific references to 1682M

2007-11-05 Thread Olof Johansson
On Tue, Nov 06, 2007 at 02:42:08AM +0100, Segher Boessenkool wrote: > Hi Olof, > > Nice cleanup! One minor thing... > >> static struct of_device_id pasemi_bus_ids[] = { >> +/* Unfortunately needed for legacy firmwares */ >> { .type = "localbus", }, >> { .type = "sdc", }, >> +{ .

Re: [PATCH] powerpc: prpmc2800 - Don't trust documented memory size

2007-11-05 Thread Mark A. Greer
On Mon, Nov 05, 2007 at 06:28:05PM -0700, Mark A. Greer wrote: > It turns out that the firmware on some PrPMC2800 processor modules > initializes the memory controller for 512 MB even when there is more > memory. As a simple work around, set the amount of memory in the > device tree passed to the

[PATCH] [POWERPC] pasemi: Don't reset mpic at boot

2007-11-05 Thread Olof Johansson
[POWERPC] pasemi: Don't reset mpic at boot Due to an erratum, we don't want to reset the mpic at boot time. It can sometimes cause problems with lost interrupts later on while running. Signed-off-by: Olof Johansson <[EMAIL PROTECTED]> diff --git a/arch/powerpc/platforms/pasemi/setup.c b

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Stephen Rothwell
On Mon, 5 Nov 2007 20:34:51 -0500 "Jon Smirl" <[EMAIL PROTECTED]> wrote: > > On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > > > +static struct of_platform_driver mpc_i2c_driver = { > > > + .owner = THIS_MODULE, > > > + .name = DRV_NAME, > > > + .match_table=

[RFC/PATCH] reduce load time for modules with lots of relocs

2007-11-05 Thread Nathan Lynch
Nathan Lynch wrote: > Medve Emilian-EMMEDVE1 wrote: > > > > I have module with 36K relocation entries (I know, I know, how could > > that be...) and the count_relocs() function takes ~17 seconds to crunch > > through the relocation table from the .rela.text section. I don't think > > I can reduce

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Jon Smirl
On 11/5/07, Scott Wood <[EMAIL PROTECTED]> wrote: > >>> Or push these strings into the chip drivers and modify > >>> i2c-core to also match on the device tree style names. > >> That would be ideal; it just hasn't been done yet. > > > > This is not hard to do but the i2c people will have to agree. I

Re: [RFC/PATCH] reduce load time for modules with lots of relocs

2007-11-05 Thread Stephen Rothwell
On Mon, 5 Nov 2007 20:33:55 -0600 Nathan Lynch <[EMAIL PROTECTED]> wrote: > > static unsigned int count_relocs(const Elf32_Rela *rela, unsigned int num) > { > - unsigned int i, j, ret = 0; > + unsigned int i, sorted_count = 0; > + Elf32_Word last_info; > + Elf32_Sword last_addend;

[RFC/PATCH] Fix rtas_ibm_suspend_me bugs

2007-11-05 Thread Nathan Lynch
(very rfc for now, no sign-off, needs more testing) There are a couple of bugs in the rtas_ibm_suspend_me() and rtas_percpu_suspend_me() functions: 1. rtas_ibm_suspend_me() uses on_each_cpu() to invoke rtas_percpu_suspend_me() via IPI: if (on_each_cpu(rtas_percpu_suspend_me, &data, 1, 0)) ...

Re: [RFC] Rework of i2c-mpc.c - Freescale i2c driver

2007-11-05 Thread Stephen Rothwell
Hi Jon, On Mon, 5 Nov 2007 23:25:35 -0500 "Jon Smirl" <[EMAIL PROTECTED]> wrote: > > + compatible = of_get_property(node, "compatible", &len); > + strlcpy(info.driver_name, compatible, len); Of course, you will check len against sizeof(info.driver_name), right? > -/* With

[PATCH] [POWERPC] iSeries: fix ref counting in vio setup.

2007-11-05 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- arch/powerpc/platforms/iseries/vio.c | 10 ++ 1 files changed, 6 insertions(+), 4 deletions(-) -- Cheers, Stephen Rothwell[EMAIL PROTECTED] diff --git a/arch/powerpc/platforms/iseries/vio.c b/arch/powerpc/pl

Re: mmap question on ppc440

2007-11-05 Thread Stefan Roese
On Monday 05 November 2007, Josh Boyer wrote: > > I am attempting to access the CPLD on the AMCC Sequoia board from > > user-land. I open /dev/mem, and mmap it, then try to access the > > resulting pointer. That works fine when accessing physical addresses > > that correspond to RAM, but as soon