Re: [PATCH 4/4] powerpc: Remove printk-only progress implementations

2009-01-14 Thread Grant Likely
On Wed, Jan 14, 2009 at 11:43 PM, Michael Ellerman wrote: > Several platforms implement ppc_md.progress as a simple printk. Now that > we have the ppc_progress() wrapper which falls back to printk if no > routine is specified, we can remove all the printk-only progress > implementations. > > This

Re: [PATCH 3/4] powerpc: Replace ppc_md.progress() uses with ppc_progress()

2009-01-14 Thread Grant Likely
On Wed, Jan 14, 2009 at 11:43 PM, Michael Ellerman wrote: > Signed-off-by: Michael Ellerman Acked-by: Grant Likely > --- > arch/powerpc/kernel/setup_32.c| 11 +-- > arch/powerpc/mm/init_32.c | 15 +-- > arch/powerpc/mm/ppc_mm

Re: [PATCH 2/4] powerpc: Add ppc_progress() wrapper

2009-01-14 Thread Grant Likely
On Wed, Jan 14, 2009 at 11:43 PM, Michael Ellerman wrote: > There's quite a lot of code that does: > > if (ppc_md.progress) >ppc_md.progress(...) > > So move that idiom into a wrapper. Having a wrapper also allows us > to have a fallback to printk if no progress routine is specified. > > S

RE: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Liu Dave
> I'm afraid I haven't seen any readily available sources for their > driver. If you meant Ben's version, you can find the latest revision > here: > > http://marc.info/?t=12282326615 > > Unfortunately marc.info didn't sort out the threading, but you should > be able to find all the patches th

Re: [PATCH 2/2] lmb: Rework lmb_dump_all() output

2009-01-14 Thread David Miller
From: Michael Ellerman Date: Thu, 15 Jan 2009 17:46:02 +1100 (EST) > The lmb_dump_all() output didn't include the RMO size, which is > interesting on powerpc. The output was also a bit spacey and not well > aligned, and didn't show you the end addresses. > > Signed-off-by: Michael Ellerman Ack

Re: [PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug

2009-01-14 Thread David Miller
From: Michael Ellerman Date: Thu, 15 Jan 2009 17:46:01 +1100 (EST) > The lmb debugging can be turned on at boottime with lmb=debug on the > command line. However on powerpc that doesn't work, because we don't > necessarily call lmb_dump_all(). > > So always call lmb_dump_all() after lmb_analyze(

[PATCH 2/2] lmb: Rework lmb_dump_all() output

2009-01-14 Thread Michael Ellerman
The lmb_dump_all() output didn't include the RMO size, which is interesting on powerpc. The output was also a bit spacey and not well aligned, and didn't show you the end addresses. Signed-off-by: Michael Ellerman --- lib/lmb.c | 42 +- 1 files changed,

[PATCH 1/2] powerpc: Allow debugging of LMBs with lmb=debug

2009-01-14 Thread Michael Ellerman
The lmb debugging can be turned on at boottime with lmb=debug on the command line. However on powerpc that doesn't work, because we don't necessarily call lmb_dump_all(). So always call lmb_dump_all() after lmb_analyze(), no output is generated unless lmb=debug is found on the command line. Signe

[PATCH 4/4] powerpc: Remove printk-only progress implementations

2009-01-14 Thread Michael Ellerman
Several platforms implement ppc_md.progress as a simple printk. Now that we have the ppc_progress() wrapper which falls back to printk if no routine is specified, we can remove all the printk-only progress implementations. This leaves us with iSeries_progress(), rtas_progress() and udbg_progress()

[PATCH 3/4] powerpc: Replace ppc_md.progress() uses with ppc_progress()

2009-01-14 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/setup_32.c| 11 +-- arch/powerpc/mm/init_32.c | 15 +-- arch/powerpc/mm/ppc_mmu_32.c |8 arch/powerpc/platforms/52xx/efika.c

[PATCH 2/4] powerpc: Add ppc_progress() wrapper

2009-01-14 Thread Michael Ellerman
There's quite a lot of code that does: if (ppc_md.progress) ppc_md.progress(...) So move that idiom into a wrapper. Having a wrapper also allows us to have a fallback to printk if no progress routine is specified. Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/machdep.h |

[PATCH 1/4] powerpc: Remove unused ppc64_terminate_msg()

2009-01-14 Thread Michael Ellerman
Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/machdep.h |2 -- arch/powerpc/kernel/setup_64.c |7 --- 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/include/asm/machdep.h b/arch/powerpc/include/asm/machdep.h index 2740c44..6c34a0d 10064

Re: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Pierre Ossman
On Thu, 15 Jan 2009 14:11:09 +0800 "Liu Dave" wrote: > > Probably because it was quicker. Samsung did the same thing, but now > > Ben Dooks has patches to properly support it via sdhci. > > Pierre, > What samsung driver are you talking? Could you point it to me? > I'm afraid I haven't seen any

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Dan Williams
Timur Tabi wrote: Peter Korsgaard wrote: The only minor issues we have is the cosmetic problem of the driver printing NO_IRQ (E.G. this patch), and the driver calling free_irq(NO_IRQ) (E.G. the other patch I sent today) in the release path. Ok, I understand. ACK on the patches. Ok, Li Yan

RE: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Liu Dave
> Probably because it was quicker. Samsung did the same thing, but now > Ben Dooks has patches to properly support it via sdhci. Pierre, What samsung driver are you talking? Could you point it to me? Thanks, Dave ___ Linuxppc-dev mailing list Linuxppc-d

Re: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Pierre Ossman
On Thu, 15 Jan 2009 02:56:05 +0300 Anton Vorontsov wrote: > > Ah. I wonder why Freescale just didn't write some patches for sdhci, > but copied the code instead... > Probably because it was quicker. Samsung did the same thing, but now Ben Dooks has patches to properly support it via sdhci. Rg

Re: interrupt number assignment dts file help

2009-01-14 Thread Kumar Gala
On Jan 14, 2009, at 11:15 PM, Ken Williams wrote: I am trying to configure a dts file for the pci subsystem of a MPC8540 based system. I am expecting (hoping) that the value specified in the interrupts property (98 in this example) will be used as the virtual interrupt number and that I ca

interrupt number assignment dts file help

2009-01-14 Thread Ken Williams
I am trying to configure a dts file for the pci subsystem of a MPC8540 based system. I am expecting (hoping) that the value specified in the interrupts property (98 in this example) will be used as the virtual interrupt number and that I can later do a request_irq using that number. kernel: 2.6.2

Re: [PATCH] Add init_dummy_netdev() and fix EMAC driver using it

2009-01-14 Thread David Miller
From: Geert Uytterhoeven Date: Wed, 14 Jan 2009 11:00:05 +0100 (CET) > On Wed, 14 Jan 2009, Benjamin Herrenschmidt wrote: > > This adds an init_dummy_netdev() function that gets a network device > > structure (allocation and lifetime entirely under caller's control) and > > initialize the minimum

Re: [PATCH v2] powerpc/fs_enet: Add missing irq free in error path.

2009-01-14 Thread David Miller
From: Kumar Gala Date: Tue, 13 Jan 2009 10:28:15 -0600 > > On Oct 27, 2008, at 4:46 PM, Mike Ditto wrote: > > > If something goes wrong attaching to phy driver, we weren't freeing > > the IRQ. > > > > Signed-off-by: Mike Ditto ... > This seems to have gotten lost in the shuffle. Can you plea

Re: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Kumar Gala
On Jan 14, 2009, at 1:46 PM, Anton Vorontsov wrote: From: Xie Xiaobo This patch adds support for the Freescale Enhanced Secure Digital Host Controller Interface as found in some Freescale PowerPC microprocessors (e.g. MPC837x SOCs). Signed-off-by: Xie Xiaobo Signed-off-by: Konjin Lai Signe

Re: [PATCH 11/11][v2] ppc440spe-adma: ADMA driver for PPC440SP(e) systems

2009-01-14 Thread Anton Vorontsov
Hello Yuri, On Tue, Jan 13, 2009 at 03:43:55AM +0300, Yuri Tikhonov wrote: > Adds the platform device definitions and the architecture specific support > routines for the ppc440spe adma driver. > > Any board equipped with PPC440SP(e) controller may utilize this driver. > > Signed-off-by: Yuri Ti

Re: [PATCH] powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

2009-01-14 Thread Benjamin Herrenschmidt
On Wed, 2009-01-14 at 13:09 -0600, Dave Kleikamp wrote: > powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices > > The subpage_prot syscall fails on second and subsequent calls for a given > region, because is_hugepage_only_range() is mis-identifying the 4 kB > slices when t

Re: ADS5121 how to use /dev/ttyPSC

2009-01-14 Thread Matt Sealey
Stefan Strobl wrote: Hi I'm new to Kernel 2.6 and OF. I'm using a ADS5121 board with kernel from denx (ads5121 branch from linux-2.6-denx). According to my dts file both PSC3 and PSC4 should be accessible through /dev/ttyPSC0 and /dev/ttyPSC1 respectively. When I simply try to run: "$ echo "He

Re: [PATCH 03/11][v3] async_tx: add support for asynchronous RAID6 recovery operations

2009-01-14 Thread Dan Williams
On Mon, Jan 12, 2009 at 5:43 PM, Yuri Tikhonov wrote: > + /* (2) Calculate Q+Qxy */ > + lptrs[0] = ptrs[failb]; > + lptrs[1] = ptrs[disks-1]; > + lptrs[2] = NULL; > + tx = async_pq(lptrs, NULL, 0, 1, bytes, ASYNC_TX_DEP_ACK, > + tx, NULL, NULL); >

Re: [PATCH 02/11][v3] async_tx: add support for asynchronous GF multiplication

2009-01-14 Thread Dan Williams
On Mon, Jan 12, 2009 at 5:43 PM, Yuri Tikhonov wrote: > This adds support for doing asynchronous GF multiplication by adding > four additional functions to async_tx API: > > async_pq() does simultaneous XOR of sources and XOR of sources > GF-multiplied by given coefficients. > > async_pq_zero_s

Re: [PATCH RFC v5] net: add PCINet driver

2009-01-14 Thread Ira Snyder
On Tue, Jan 13, 2009 at 06:42:53PM +0100, Arnd Bergmann wrote: > On Tuesday 13 January 2009, Ira Snyder wrote: > > So do you program one channel of the DMA engine from the host side and > > another channel from the guest side? > > Yes. > > > I tried to avoid having the host program the DMA contro

Re: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Anton Vorontsov
On Thu, Jan 15, 2009 at 07:37:00AM +0800, Liu Dave wrote: > > This patch adds support for the Freescale Enhanced Secure Digital > > Host Controller Interface as found in some Freescale PowerPC > > microprocessors (e.g. MPC837x SOCs). > > The Freescale ESDHC controller is basically compatible with

[PATCH] powerpc: get the number of SLBs from "slb-size" property

2009-01-14 Thread Michael Neuling
The PAPR says that the property for specifying the number of SLBs should be called "slb-size". We currently only look for "ibm,slb-size" because this is what firmware actually presents. This patch makes us look for the "slb-size" property as well and in preference to the "ibm,slb-size". This sho

RE: [PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Liu Dave
> This patch adds support for the Freescale Enhanced Secure Digital > Host Controller Interface as found in some Freescale PowerPC > microprocessors (e.g. MPC837x SOCs). The Freescale ESDHC controller is basically compatible with the standard SDHC controller. but the eshdc expand some bits. The e

Re: [PATCH 10/13] powerpc/ps3: printing fixups for l64 to ll64 convserion: drivers/net

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > drivers/net/ps3_gelic_wireless.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Acked-by: Geoff Levand ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://o

Re: [PATCH 07/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/block

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > drivers/block/ps3disk.c | 18 +- > 1 files changed, 9 insertions(+), 9 deletions(-) Acked-by: Geoff Levand ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org ht

Re: [PATCH 11/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/ps3

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Also some min -> mint_t conversion. > > Signed-off-by: Stephen Rothwell > --- > drivers/ps3/ps3-lpm.c | 16 > drivers/ps3/ps3-vuart.c |8 > drivers/ps3/ps3stor_lib.c | 14 +++--- > 3 files changed, 19 insertions(+), 19 del

Re: [PATCH 08/13] powerpc/ps3: printing fixups for l64 to ll64 convserion: drivers/char

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Also a couple of min -> min_t changes. > > Signed-off-by: Stephen Rothwell > --- > drivers/char/ps3flash.c | 18 +- > 1 files changed, 9 insertions(+), 9 deletions(-) Acked-by: Geoff Levand ___ Linuxppc

Re: [PATCH 12/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/scsi

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > drivers/scsi/ps3rom.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) Acked-by: Geoff Levand ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.o

Re: [PATCH 13/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: drivers/video

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > drivers/video/ps3fb.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Acked-by: Geoff Levand ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org

Re: [PATCH 09/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: sound/ppc

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > sound/ppc/snd_ps3.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Acked-by: Geoff Levand ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/m

Re: [PATCH 06/13] powerpc/ps3: printing fixups for l64 to ll64 conversion: arch/powerpc

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell > --- > arch/powerpc/platforms/ps3/device-init.c | 26 +- > arch/powerpc/platforms/ps3/htab.c|2 +- > arch/powerpc/platforms/ps3/interrupt.c | 16 > arch/powerpc/platforms/ps3/mm.c

Re: [PATCH 03/13] powerpc/ps3: the lv1_ routines have u64 parameters

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > We just fix up the reference parameters as the others are dealt with by > arithmetic promotion rules and don't cause warnings. > > This removes warnings like this: > > arch/powerpc/platforms/ps3/interrupt.c:327: warning: passing argument 1 of > 'lv1_construct_event_rece

Re: [PATCH 05/13] powerpc/ps3: ps3_repository_read_mm_info takes u64 * arguments

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Fixes compiler warnings: > > arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 2 of > 'ps3_repository_read_mm_info' from incompatible pointer type > arch/powerpc/platforms/ps3/mm.c:1205: warning: passing argument 3 of > 'ps3_repository_read_mm_info' from i

Re: [PATCH 04/13] powerpc/ps3: clear_bit/set_bit operate on unsigned longs

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > This fixes these compiler warning: > > arch/powerpc/platforms/ps3/interrupt.c:109: warning: passing argument 2 of > 'clear_bit' from incompatible pointer type > arch/powerpc/platforms/ps3/interrupt.c:130: warning: passing argument 2 of > 'set_bit' from incompatible poin

Re: [PATCH 02/13] powerpc/ps3: use dma_addr_t down through the stack

2009-01-14 Thread Geoff Levand
Stephen Rothwell wrote: > Push the dma_addr_t type usage all the way down to where the actual > values are manipulated. > > Now that u64 is "unsigned long long", this removes warnings like: > > arch/powerpc/platforms/ps3/system-bus.c:532: warning: passing argument 4 of > 'ps3_dma_map' from incom

Re: [PATCH 01/13] powerpc/ps3: set_dabr takes an unsigned long

2009-01-14 Thread Geoff Levand
Hi Stephen, Thanks for working through it and making these fixups. I tested the set applied onto Ben's powerpc tree and they seem to work OK (with ps3_defconfig). Stephen Rothwell wrote: > Also silences this warning: > > arch/powerpc/platforms/ps3/setup.c:275: warning: initialization from > in

Re: [PATCH] phylib: Fix Freescale TBI PHY detection

2009-01-14 Thread David Miller
From: Andy Fleming Date: Wed, 14 Jan 2009 12:20:35 -0600 > On Jan 14, 2009, at 9:03 AM, Anton Vorontsov wrote: > >> > >> There is one thing I don't actually understand though... > >> > >> Andy, were you testing the TBI support on a hardware where PHY ID > >> != 0x0 or maybe your TBI PHY support p

Re: [PATCH] Restore PCI IO space behind Freescale pseudo-bridge

2009-01-14 Thread Benjamin Herrenschmidt
On Wed, 2009-01-14 at 11:48 -0800, Andrew Klossner wrote: > When I moved from 2.6.27 to 2.6.28, one of my devices didn't work > until I devised the attached patch. The kernel disallowed PCI I/O > space resources behind the pseudo-bridge in the Freescale MPC8545 > because that bridge's config-space

[PATCH] Restore PCI IO space behind Freescale pseudo-bridge

2009-01-14 Thread Andrew Klossner
When I moved from 2.6.27 to 2.6.28, one of my devices didn't work until I devised the attached patch. The kernel disallowed PCI I/O space resources behind the pseudo-bridge in the Freescale MPC8545 because that bridge's config-space registers incorrectly report that it doesn't forward I/O space tr

Re: [PATCH v3] powerpc: Unify opcode definitions and support

2009-01-14 Thread Hollis Blanchard
On Tue, Jan 13, 2009 at 4:14 PM, Kumar Gala wrote: > Create a new header that becomes a single location for defining PowerPC > opcodes used by code that is either generationg instructions > at runtime (fixups, debug, etc.), emulating instructions, or just > compiling instructions old assemblers do

[PATCH] mmc: Add driver for Freescale eSDHC controllers

2009-01-14 Thread Anton Vorontsov
From: Xie Xiaobo This patch adds support for the Freescale Enhanced Secure Digital Host Controller Interface as found in some Freescale PowerPC microprocessors (e.g. MPC837x SOCs). Signed-off-by: Xie Xiaobo Signed-off-by: Konjin Lai Signed-off-by: Joe D'Abbraccio Signed-off-by: Anton Vorontso

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Timur Tabi
Peter Korsgaard wrote: > The only minor issues we have is the cosmetic problem of the driver > printing NO_IRQ (E.G. this patch), and the driver calling > free_irq(NO_IRQ) (E.G. the other patch I sent today) in the release > path. Ok, I understand. ACK on the patches. -- Timur Tabi Linux kerne

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Peter Korsgaard
> "Timur" == Timur Tabi writes: Timur> Peter Korsgaard wrote: >> Documentation/powerpc/dts-bindings/fsl/dma.txt and >> The NO_IRQ check in fsldma.c:fsl_dma_chan_probe() >> >> And it makes sense, there's no per-channel DMAC interrupts on mpc83xx. Timur> But the device trees do have IRQ

[PATCH] powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices

2009-01-14 Thread Dave Kleikamp
powerpc: is_hugepage_only_range() must account for both 4kB and 64kB slices The subpage_prot syscall fails on second and subsequent calls for a given region, because is_hugepage_only_range() is mis-identifying the 4 kB slices when the process has a 64 kB page size. Signed-off-by: Dave Kleikamp C

Re: [RFC PATCH 00/11][v3] md: support for asynchronous execution of RAID6 operations

2009-01-14 Thread Dan Williams
On Mon, Jan 12, 2009 at 5:42 PM, Yuri Tikhonov wrote: > Hello, > > This is the next attempt on asynchronous RAID-6 support. This patch-set > has the Dan Williams' comments (Dec, 17) addressed with the following > exception: > > - I still think that using 'enum dma_ctrl_flags' for PQ-specific > o

Re: [PATCH] phylib: Fix Freescale TBI PHY detection

2009-01-14 Thread Andy Fleming
On Jan 14, 2009, at 9:03 AM, Anton Vorontsov wrote: There is one thing I don't actually understand though... Andy, were you testing the TBI support on a hardware where PHY ID != 0x0 or maybe your TBI PHY support patch (commit b31a1d8b41513b, dated Tue Dec 16 15:29:15 2008) was based on a bit o

ADS5121 how to use /dev/ttyPSC

2009-01-14 Thread Stefan Strobl
Hi I'm new to Kernel 2.6 and OF. I'm using a ADS5121 board with kernel from denx (ads5121 branch from linux-2.6-denx). According to my dts file both PSC3 and PSC4 should be accessible through /dev/ttyPSC0 and /dev/ttyPSC1 respectively. When I simply try to run: "$ echo "Hello" > /dev/ttyPSC*" I

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Timur Tabi
Peter Korsgaard wrote: > Documentation/powerpc/dts-bindings/fsl/dma.txt and > The NO_IRQ check in fsldma.c:fsl_dma_chan_probe() > > And it makes sense, there's no per-channel DMAC interrupts on mpc83xx. But the device trees do have IRQs in the channels: arch/powerpc/boot/dts/mpc836x_mds.dts: d

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Peter Korsgaard
> "Timur" == Timur Tabi writes: Timur> Peter Korsgaard wrote: >> Why? Does it buy us anything to request_irq again for each channel? >> >> Now we're at it, it seems like there's a check for != NO_IRQ missing >> in fsl_dma_chan_remove(). Timur> If the device tree doesn't specify an int

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Timur Tabi
Peter Korsgaard wrote: > Why? Does it buy us anything to request_irq again for each channel? > > Now we're at it, it seems like there's a check for != NO_IRQ missing > in fsl_dma_chan_remove(). If the device tree doesn't specify an interrupts property in the device channel, then I think that's a

[PATCH] fsldma: check for NO_IRQ in fsl_dma_chan_remove()

2009-01-14 Thread Peter Korsgaard
There's no per-channel IRQ on mpc83xx, so only call free_irq if we have one. Signed-off-by: Peter Korsgaard --- drivers/dma/fsldma.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index ca70a21..f48c0e6 100644 --- a/drivers/

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Peter Korsgaard
> "Timur" == Timur Tabi writes: Timur> Peter Korsgaard wrote: >> @@ -875,7 +875,8 @@ static int __devinit fsl_dma_chan_probe(struct >> fsl_dma_device *fdev, >> } >> >> dev_info(fdev->dev, "#%d (%s), irq %d\n", new_fsl_chan->id, >> - compatible, new_fsl_chan-

Re: [PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Timur Tabi
Peter Korsgaard wrote: > @@ -875,7 +875,8 @@ static int __devinit fsl_dma_chan_probe(struct > fsl_dma_device *fdev, > } > > dev_info(fdev->dev, "#%d (%s), irq %d\n", new_fsl_chan->id, > - compatible, new_fsl_chan->irq); > + compatible, > +

Re: When do i need to allocate DMA buffer

2009-01-14 Thread Misbahullah Khan
 Hi Showair , >> Note that my target is to transfer data from memory location to another >>memory location & it will be an overhead if i copy the data from the >>src to >>the DMA buffer then from the DMA buffer to the Destination. >>isn't there any other way to avoid using that DMA buffer & to co

Re: [PATCH] powerpc: Add support to access the flash on SLOF based systems

2009-01-14 Thread Adrian Reber
On Mon, Jan 12, 2009 at 09:51:23AM -0600, Milton Miller wrote: > Is SLOF just exposing the user image part of the flash device? Or is it > the raw flash device? SLOF is exposing the raw flash device. > I need to keep this quick, but am intrested in a few more details. My > first reaction is

Re: [PATCH] phylib: Fix Freescale TBI PHY detection

2009-01-14 Thread Anton Vorontsov
On Tue, Jan 13, 2009 at 07:05:13PM +0300, Anton Vorontsov wrote: > Freescale on-chip TBI PHYs reports PHY ID as 0x0, but as of > > commit 3ee82383f0098a2e13acc8cf1be8e47512f41e5a > Author: Giulio Benetti > Date: Thu Nov 13 21:53:13 2008 + > > phy: fix phy address bug > > PHYID ret

[PATCH] dts-bindings/fsl/dma.txt: convert to dts-v1 syntax

2009-01-14 Thread Peter Korsgaard
Signed-off-by: Peter Korsgaard --- Documentation/powerpc/dts-bindings/fsl/dma.txt | 34 1 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Documentation/powerpc/dts-bindings/fsl/dma.txt b/Documentation/powerpc/dts-bindings/fsl/dma.txt index cc45311..0732

Re: [PATCH] dts-bindings/fsl/dma.txt: fix IRQ number in mpc83xx dma example

2009-01-14 Thread Peter Korsgaard
> "Anton" == Anton Vorontsov writes: Hi, >> interrupt-parent = <&ipic>; >> - interrupts = <47 8>; >> + interrupts = <71 8>; Anton> 0x47 = 71 ;-) The example is in the dts-v0 format, all the numbers Anton> are hexadecimal. Ahh ;) -- Bye, Peter Korsgaard __

[PATCH] fsldma: print correct IRQ on mpc83xx

2009-01-14 Thread Peter Korsgaard
The mpc83xx variant uses a shared IRQ for all channels, so the individual channel nodes don't have an interrupt property. Fix the code to print the controller IRQ instead if there isn't any for the channel. Signed-off-by: Peter Korsgaard --- drivers/dma/fsldma.c |3 ++- 1 files changed, 2 in

Re: [PATCH] dts-bindings/fsl/dma.txt: fix IRQ number in mpc83xx dma example

2009-01-14 Thread Kumar Gala
On Jan 14, 2009, at 8:21 AM, Anton Vorontsov wrote: Hi Peter, On Wed, Jan 14, 2009 at 03:14:13PM +0100, Peter Korsgaard wrote: The DMAC IRQ number of the mpc8349 is 71 and not 47, according to http://www.freescale.com/files/32bit/doc/ref_manual/MPC8349EARMAD.pdf Signed-off-by: Peter Korsgaar

Re: [PATCH] dts-bindings/fsl/dma.txt: fix IRQ number in mpc83xx dma example

2009-01-14 Thread Anton Vorontsov
Hi Peter, On Wed, Jan 14, 2009 at 03:14:13PM +0100, Peter Korsgaard wrote: > The DMAC IRQ number of the mpc8349 is 71 and not 47, according to > http://www.freescale.com/files/32bit/doc/ref_manual/MPC8349EARMAD.pdf > > Signed-off-by: Peter Korsgaard > --- > Documentation/powerpc/dts-bindings/fs

[PATCH] dts-bindings/fsl/dma.txt: fix IRQ number in mpc83xx dma example

2009-01-14 Thread Peter Korsgaard
The DMAC IRQ number of the mpc8349 is 71 and not 47, according to http://www.freescale.com/files/32bit/doc/ref_manual/MPC8349EARMAD.pdf Signed-off-by: Peter Korsgaard --- Documentation/powerpc/dts-bindings/fsl/dma.txt |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Docu

Re: [PATCH] Add init_dummy_netdev() and fix EMAC driver using it

2009-01-14 Thread Geert Uytterhoeven
On Wed, 14 Jan 2009, Benjamin Herrenschmidt wrote: > This adds an init_dummy_netdev() function that gets a network device > structure (allocation and lifetime entirely under caller's control) and > initialize the minimum amount of fields so it can be used to schedule > NAPI polls without registerin

Re: mpc5200b configure nand driver via dts

2009-01-14 Thread Wolfgang Grandegger
florian.bel...@freenet.de wrote: >>> On Mon, Jan 12, 2009 at 2:07 AM, >> wrote: hello, I have some problems with an mpc5200b based board. It's nearly >> compatible to the lite5200b board. I connected an samsung k9k8g08u0a nand flash via the lpb bus. This >> works fin

RE: Re: mpc5200b configure nand driver via dts

2009-01-14 Thread Florian Belser
> On Mon, Jan 12, 2009 at 2:07 AM, wrote: > > hello, > > > > I have some problems with an mpc5200b based board. It's nearly compatible to > > the lite5200b board. > > I connected an samsung k9k8g08u0a nand flash via the lpb bus. This works > > fine with an self written nand driver. > > Now I