[PATCH 12/12] mpc5200_wdt: use linux/of_platform.h instead of asm

2008-05-23 Thread Stephen Rothwell
Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- drivers/watchdog/mpc5200_wdt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/watchdog/mpc5200_wdt.c b/drivers/watchdog/mpc5200_wdt.c index 80a91d4..77c1c2a 100644 --- a/drivers/watchdog/mpc5200_wdt.c +++ b

Re: [PATCH] [POWERPC] iSeries: remove unused mail address

2008-05-23 Thread Jens Axboe
On Fri, May 23 2008, Stephen Rothwell wrote: > I don't use my IBM email address normally and people can find me in > CREDITS. > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> > --- > drivers/block/viodasd.c |2 +- > drivers/cdrom/viocd.c |2 +- > drivers/char/viocons.c |2 +-

Re: [PATCH 06/12] net: use linux/of_{device, platform}.h instead of asm

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 1:28 AM, Stephen Rothwell wrote: Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> --- drivers/net/fs_enet/fs_enet-main.c |2 +- drivers/net/fs_enet/mac-scc.c |2 +- drivers/net/fs_enet/mii-fec.c |2 +- drivers/net/ibm_newemac/core.h |2 +- drive

Re: [RFC] POWERPC: Merge 32 and 64-bit dma code

2008-05-23 Thread Mark Nelson
On Thu, 1 May 2008 09:36:43 am Becky Bruce wrote: > > I essentially adopt the 64-bit dma code, with some changes to support > 32-bit systems, including HIGHMEM. dma functions on 32-bit are now > invoked via accessor functions which call the correct op for a device based > on archdata dma_ops. Cu

RE: [PATCH v2] [POWERPC] mpic: deal with bogus NIRQ in FeatureReporting Register

2008-05-23 Thread Jin Zhengxiong
> On May 22, 2008, at 9:15 PM, Jin Zhengxiong wrote: > > > Hi, Kumar, > > > > So I should change the MSI hwirq num according to this change, The > > patches will be send after this changes updated to your tree. How > > about applying the MSI driver firstly? > > I've asked Paul to pick up thi

[PATCH 1/4 V5] booting-without-of for Freescale MSI

2008-05-23 Thread Jason Jin
Binding document adding for Freescale MSI support. Signed-off-by: Jason Jin <[EMAIL PROTECTED]> --- In this version: The example node changed due to the hwirq num change of MSI. Documentation/powerpc/booting-without-of.txt | 43 +- 1 files changed, 42 insertions(+), 1 d

[PATCH 3/4 V5] Enable MSI support for MPC8610HPCD board

2008-05-23 Thread Jason Jin
This patch enable the MSI on 8610hpcd board. Through the msi-available-ranges property, All the 256 msi interrupts can be tested on this board. Signed-off-by: Jason Jin <[EMAIL PROTECTED]> --- In this version: Add a flag MPIC_BROKEN_FRR_NIRQS in mpic_alloc making the mpic use irq_count instead of

[PATCH 2/4 V6] MSI support on 83xx/85xx/86xx board

2008-05-23 Thread Jason Jin
This MSI driver can be used on 83xx/85xx/86xx board. In this driver, virtual interrupt host and chip were setup. There are 256 MSI interrupts in this host, Every 32 MSI interrupts cascaded to one IPIC/MPIC interrupt. The chip was treated as edge sensitive and some necessary functions were setup for

[PATCH 4/4 V5] Enable MSI support for 85xxds board

2008-05-23 Thread Jason Jin
This patch enabled MSI on 8544ds and 8572ds board. So far only one MSI interrupt can generate on 8544 board. Signed-off-by: Jason Jin <[EMAIL PROTECTED]> --- In this version: Add a flag MPIC_BROKEN_FRR_NIRQS in mpic_alloc making the mpic use irq_count instead of FRR[NIRQ] to initialize the interru

RE: [PATCH] Add port multiplier (PMP) support in sata_fsl driver

2008-05-23 Thread Kalra Ashish
Hello Tejun, Thanks for your review comments. Please find my answers below : >> Broke the sata_fsl.c driver in 2.6.26. I know the following patch >> fixes the issue, it clearly also adds port multipler support. I'm not >> sure if you are willing to take that as part of 2.6.26 or not, but the

Re: [PATCH 08/12] of_serial: use linux/of_platform.h instead of asm

2008-05-23 Thread Arnd Bergmann
On Friday 23 May 2008, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Arnd Bergmann <[EMAIL PROTECTED]> ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

Re: [RFC] POWERPC: Merge 32 and 64-bit dma code

2008-05-23 Thread Christoph Hellwig
On Wed, Apr 30, 2008 at 06:36:43PM -0500, Becky Bruce wrote: > In addition, the dma_map/unmap_page functions are added to dma_ops on > HIGHMEM-enabled configs because we can't just fall back on map/unmap_single > when HIGHMEM is enabled. Adding these to dma_ops makes it cleaner to > substitute dif

[git pull] Please pull powerpc.git merge branch

2008-05-23 Thread Paul Mackerras
Linus, Please pull from the 'merge' branch of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc.git merge to get some more small bug and warning fixes for powerpc (and one commit that just updates some comments). Thanks, Paul. arch/powerpc/kernel/prom_init_check.sh |2 +- arch/

New commits in powerpc.git powerpc-next branch

2008-05-23 Thread Paul Mackerras
I have pushed the following commits to the powerpc-next and master branches of the powerpc.git repository. I have also pulled in Linus' tree plus the 5 commits that I have put on the merge branch and asked Linus to pull. Paul. Anton Vorontsov (1): [POWERPC] of/gpio: Use dynamic base alloca

[PATCH] [POWERPC] booting-without-of: fix GPIO section mis-numbering

2008-05-23 Thread Anton Vorontsov
"Specifying GPIO information for devices" should be IX-th section, not VIII-th. Thanks to David Brownell for noticing. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a

Re: [PATCH 05/12] macintosh: use linux/of_{device,platform}.h instead of asm

2008-05-23 Thread Benjamin Herrenschmidt
On Fri, 2008-05-23 at 16:27 +1000, Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > drivers/macintosh/smu.c |4 ++-- > drivers/macintosh/therm_adt746x.c|2 +- > drivers/macintosh/

Re: [PATCH 11/12] platinumfb: use linux/of_{device,platform}.h instead of asm

2008-05-23 Thread Benjamin Herrenschmidt
On Fri, 2008-05-23 at 16:39 +1000, Stephen Rothwell wrote: > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Benjamin Herrenschmidt <[EMAIL PROTECTED]> > --- > drivers/video/platinumfb.c |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/vide

MMIO and gcc re-ordering (Was: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code)

2008-05-23 Thread Benjamin Herrenschmidt
> > IE. Take an x86 version of that test, writing to memory, doing a writel > > to some MMIO, then another memory write, can those be re-ordered with > > the current x86 version of writel ? > > Yes, the same thing can happen on x86. As far as I could tell, this is > something that all other arch

Re: MMIO and gcc re-ordering (Was: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code)

2008-05-23 Thread Benjamin Herrenschmidt
On Fri, 2008-05-23 at 08:36 -0400, Benjamin Herrenschmidt wrote: > > - mandate some kind of dma_sync_for_device/cpu on consistent memory. > Almost no driver do that currently tho. They only do that for non > consistent memory mapped with dma_map_*. > > - mandate the use of wmb,rm

Re: New commits in powerpc.git powerpc-next branch

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 4:54 AM, Paul Mackerras wrote: I have pushed the following commits to the powerpc-next and master branches of the powerpc.git repository. I have also pulled in Linus' tree plus the 5 commits that I have put on the merge branch and asked Linus to pull. Paul. Anton Vorontso

Re: [PATCH 2/4 V6] MSI support on 83xx/85xx/86xx board

2008-05-23 Thread Anton Vorontsov
On Fri, May 23, 2008 at 04:32:46PM +0800, Jason Jin wrote: > This MSI driver can be used on 83xx/85xx/86xx board. > In this driver, virtual interrupt host and chip were > setup. There are 256 MSI interrupts in this host, Every 32 > MSI interrupts cascaded to one IPIC/MPIC interrupt. > The chip was

RE: [PATCH] [POWERPC] Add the PC speaker only when requested so

2008-05-23 Thread Medve Emilian
Hello Grant, You can reproduce this by adding initcall_debug to your kernel parameters. I'm encountering this situation on an MPC85xx board, but from looking at the code that seems irrelevant as add_pcspkr() will get executed anyway. True, "pnpPNP,100" is looked after before the platform code run

Re: [PATCH 2/4 V6] MSI support on 83xx/85xx/86xx board

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 7:59 AM, Anton Vorontsov wrote: On Fri, May 23, 2008 at 04:32:46PM +0800, Jason Jin wrote: This MSI driver can be used on 83xx/85xx/86xx board. In this driver, virtual interrupt host and chip were setup. There are 256 MSI interrupts in this host, Every 32 MSI interrupts cas

Re: [PATCH 1/4 V5] booting-without-of for Freescale MSI

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 3:32 AM, Jason Jin wrote: Binding document adding for Freescale MSI support. Signed-off-by: Jason Jin <[EMAIL PROTECTED]> applied. - k ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/li

Re: [PATCH 3/4 V5] Enable MSI support for MPC8610HPCD board

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 3:32 AM, Jason Jin wrote: This patch enable the MSI on 8610hpcd board. Through the msi-available-ranges property, All the 256 msi interrupts can be tested on this board. Signed-off-by: Jason Jin <[EMAIL PROTECTED]> applied. - k __

Re: [PATCH 4/4 V5] Enable MSI support for 85xxds board

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 3:32 AM, Jason Jin wrote: This patch enabled MSI on 8544ds and 8572ds board. So far only one MSI interrupt can generate on 8544 board. What is the issue on 8544? Signed-off-by: Jason Jin <[EMAIL PROTECTED]> applied. - k ___

Re: [PATCH 2/4 V6] MSI support on 83xx/85xx/86xx board

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 3:32 AM, Jason Jin wrote: This MSI driver can be used on 83xx/85xx/86xx board. In this driver, virtual interrupt host and chip were setup. There are 256 MSI interrupts in this host, Every 32 MSI interrupts cascaded to one IPIC/MPIC interrupt. The chip was treated as edge sen

[PATCH] [POWERPC] 4xx: Fix 460GT support to (re-)enable the FPU

2008-05-23 Thread Stefan Roese
Since AMCC now reports that the 460GT *has* an FPU, we should enable it (again). This patch basically reverts my patch acb0142bf01c0ebe18f09e37814451ee6a873e27 ([POWERPC] 4xx: Fix 460GT support to not enable FPU), which disabled the FPU upon AMCC request. Sorry about the confusion here. Signed-of

Re: [PATCH 07/12] pcmcia: use linux/of_{device,platform}.h instead of asm

2008-05-23 Thread Vitaly Bordug
В Fri, 23 May 2008 16:31:08 +1000 Stephen Rothwell <[EMAIL PROTECTED]> пишет: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Vitaly Bordug <[EMAIL PROTECTED]> > --- > drivers/pcmcia/electra_cf.c |2 +- > drivers/pcmcia/m8xx_pcmcia.c |4 ++-- > 2 files changed, 3 inser

[PATCH] [POWERPC] fsl_msi: few (mostly cosmetic) fixes

2008-05-23 Thread Anton Vorontsov
This patch fixes few cosmetic issues, also removes unused function, makes some functions static and reduces #ifdef count. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- On Fri, May 23, 2008 at 08:02:39AM -0500, Kumar Gala wrote: > > On May 23, 2008, at 7:59 AM, Anton Vorontsov wrote: > >>

405EP PCI arbiter bit

2008-05-23 Thread Renaud Barbier
Hello, I noticed that on my 405EP board (made in-house), the PCI Arbiter bit is not set in the CPC0_PCI register even though CPC0_PCI[PAE] bit 5 is set in the serial EEPROM. Other registers (PLL,...) bits are set correctly and got their value from the IIC. I check the value of I2C and CPC0_P

Re: [PATCH] rcupreempt: remove export of rcu_batches_completed_bh

2008-05-23 Thread Paul E. McKenney
On Thu, May 22, 2008 at 02:18:17PM -0400, Steven Rostedt wrote: > > In rcupreempt, rcu_batches_completed_bh is defined as a static inline in > the header file. This does not need to be exported, and not only that, > this breaks my PPC build. Good catch!!! Reviewed-by: Paul E. McKenney <[EMAIL PR

[PATCH] [POWERPC] mpic: fix ambiguous else statement

2008-05-23 Thread Anton Vorontsov
This patch fixes following warning introduced by commit 475ca391b490a683d66bf1a8a7a24913f139 (mpic: Deal with bogus NIRQ in Feature Reporting Register): CC arch/powerpc/sysdev/mpic.o arch/powerpc/sysdev/mpic.c: In function ‘mpic_alloc’: arch/powerpc/sysdev/mpic.c:1146: warning: suggest

RE: [PATCH] [POWERPC] Fix return value check logic

2008-05-23 Thread Medve Emilian
Hello Michael, > That won't work if CONFIG_DEBUG_FS is not defined, because in > that case > debugfs_create_file() returns -ENODEV. Will respin. Thanks, Emil. ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/

Re: [PATCH 07/12] pcmcia: use linux/of_{device,platform}.h instead of asm

2008-05-23 Thread Olof Johansson
On Fri, May 23, 2008 at 04:31:08PM +1000, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Olof Johansson <[EMAIL PROTECTED]> > --- > drivers/pcmcia/electra_cf.c |2 +- > drivers/pcmcia/m8xx_pcmcia.c |4 ++-- > 2 files changed, 3 insertions(+),

Re: [PATCH 02/12] pasemi-rng: use linux/of_platform.h instead of asm

2008-05-23 Thread Olof Johansson
On Fri, May 23, 2008 at 04:20:05PM +1000, Stephen Rothwell wrote: > > Signed-off-by: Stephen Rothwell <[EMAIL PROTECTED]> Acked-by: Olof Johansson <[EMAIL PROTECTED]> > --- > drivers/char/hw_random/pasemi-rng.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) __

Re: [PATCH 2/4 V6] MSI support on 83xx/85xx/86xx board

2008-05-23 Thread Michael Ellerman
On Fri, 2008-05-23 at 08:02 -0500, Kumar Gala wrote: > On May 23, 2008, at 7:59 AM, Anton Vorontsov wrote: > > > On Fri, May 23, 2008 at 04:32:46PM +0800, Jason Jin wrote: > >> This MSI driver can be used on 83xx/85xx/86xx board. > >> In this driver, virtual interrupt host and chip were > >> setup

RE: [PATCH] [POWERPC] Fix return value check logic

2008-05-23 Thread Medve Emilian
Hello Michael, > > That won't work if CONFIG_DEBUG_FS is not defined, because in > > that case > > debugfs_create_file() returns -ENODEV. > > Will respin. At a second glance in arch/powerpc/Kconfig.debug, VIRQ_DEBUG depends on DEBUG_FS so I think that the patch should work as is. Cheers, Emi

RE: [PATCH] [POWERPC] Fix return value check logic

2008-05-23 Thread Michael Ellerman
On Fri, 2008-05-23 at 07:39 -0700, Medve Emilian wrote: > Hello Michael, > > > > > That won't work if CONFIG_DEBUG_FS is not defined, because in > > > that case > > > debugfs_create_file() returns -ENODEV. > > > > Will respin. > > At a second glance in arch/powerpc/Kconfig.debug, VIRQ_DEBUG de

Re: [PATCH 3/4] [MMC] mmc_spi: add polling support for the card detect line

2008-05-23 Thread Anton Vorontsov
On Thu, May 22, 2008 at 09:34:32PM +0200, Pierre Ossman wrote: [...] > > Ok. How about this version? > > > > Perfect. Unless there is some way you can pass flags in platform data? > Using the lack of an init() to determine the need for polling is a bit > circumstantial. Aha, that's an idea, than

[PATCH 1/3] mmc: add support for card-detection polling

2008-05-23 Thread Anton Vorontsov
Some hosts (and boards that use mmc_spi) do not use interrupts on the CD line, so they can't trigger mmc_detect_change. We want to poll the card and see if there was a change. 1 second poll interval seems resonable. This patch also implements .get_cd() host operation, that could be used by the hos

[PATCH 2/3] mmc_spi: add support for card-detection polling

2008-05-23 Thread Anton Vorontsov
This patch adds new platform data variable "caps", so platforms could pass theirs capabilities into MMC core (for example, platforms without interrupt on the CD line will most probably want to pass MMC_CAP_NEEDS_POLL). New platform get_cd() callback provided to optimize polling. Signed-off-by: An

[PATCH 3/3] mmc: change .get_ro() callback semantics

2008-05-23 Thread Anton Vorontsov
get_ro() callback must return values >= 0 for its logical state, and negative errno values in case of error. If particular host instance doesn't support RO/WP switch, it should return -ENOSYS. This patch changes some hosts in two ways: 1. Now functions should be smart to not return negative valu

[PATCH]: Check that TASK_SIZE does not overlap KERNEL_START

2008-05-23 Thread Rune Torgersen
Make sure CONFIG_TASK_SIZE does not overlap CONFIG_KERNEL_START This could happen when overriding settings to get 1GB lowmem, and would lead to userland mysteriousely hanging. This setting is only used by PPC32. Signed-off-by Rune Torgersen <[EMAIL PROTECTED]> diff --git a/include/asm-powerpc/pr

[PATCH 0/7] Patches for Kumar's powerpc-next tree

2008-05-23 Thread Anton Vorontsov
Hi Kumar, Here is updated series, with your comments addressed. Patches are rebased on top of your current powerpc-next branch. [PATCH 1/7] [POWERPC] sysdev: implement FSL GTM support - added "depends on" to the Kconfig - reverted to arch_initcall - added Context: tip to the documentation - reset

[PATCH 1/7] [POWERPC] sysdev: implement FSL GTM support

2008-05-23 Thread Anton Vorontsov
GTM stands for General-purpose Timers Module and able to generate timer{1,2,3,4} interrupts. These timers are used by the drivers that need time precise interrupts (like for USB transactions scheduling for the Freescale USB Host controller as found in some QE and CPM chips), or these timers could b

[PATCH 2/7] [POWERPC] QE: add support for QE USB clocks routing

2008-05-23 Thread Anton Vorontsov
This patch adds a function to the qe_lib to setup QE USB clocks routing. To setup clocks safely, cmxgcr register needs locking, so I just reused ucc_lock since it was used only to protect cmxgcr. The idea behind placing clocks routing functions into the qe_lib is that later we'll hopefully switch

[PATCH 3/7] [POWERPC] QE: prepare QE PIO code for GPIO LIB support

2008-05-23 Thread Anton Vorontsov
- split and export __par_io_config_pin() out of par_io_config_pin(), so we could use the prefixed version with GPIO LIB API; - rename struct port_regs to qe_pio_regs, and place it into qe.h; - rename #define NUM_OF_PINS to QE_PIO_PINS, and place it into qe.h. Signed-off-by: Anton Vorontsov <[EMA

[PATCH 4/7] [POWERPC] QE: implement support for the GPIO LIB API

2008-05-23 Thread Anton Vorontsov
This is needed to access QE GPIOs via Linux GPIO API. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> Acked-By: Timur Tabi <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 27 + arch/powerpc/sysdev/qe_lib/Kconfig |9 ++ arch/powerpc/sysdev/qe_lib/Makef

[PATCH 5/7] [POWERPC] 83xx: new board support: MPC8360E-RDK

2008-05-23 Thread Anton Vorontsov
This is patch adds board file, device tree, and defconfig for the new board, made by Freescale Semiconductor Inc. and Logic Product Development. Currently supported: 1. UEC{1,2,7,4}; 2. I2C; 3. SPI; 4. NS16550 serial; 5. PCI and miniPCI; 6. Intel NOR StrataFlash X16 64Mbit PC28F640P30T85; 7. Graph

[PATCH 6/7] [POWERPC] booting-without-of: add FHCI USB, FSL MCU, FSL UPM and GPIO LEDs bindings

2008-05-23 Thread Anton Vorontsov
This patch adds few bindings for the new drivers to be submitted through appropriate maintainers. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 125 ++ 1 files changed, 125 insertions(+), 0 deletions(-) diff --git a

[PATCH 7/7] [POWERPC] qe_lib: switch to the cpm_muram implementation

2008-05-23 Thread Anton Vorontsov
This is very trivial patch. We're transitioning to the cpm_muram_* calls. That's it. Less trivial changes: - BD_SC_* defines were defined in the cpm.h and qe.h, so to avoid redefines we remove BD_SC from the qe.h and use cpm.h along with cpm_muram_* prototypes; - qe_muram_dump was unused and t

Re: [PATCH] [POWERPC] 4xx: Fix 460GT support to (re-)enable the FPU

2008-05-23 Thread Josh Boyer
On Fri, 23 May 2008 15:04:56 +0200 Stefan Roese <[EMAIL PROTECTED]> wrote: > Since AMCC now reports that the 460GT *has* an FPU, we should enable it > (again). This patch basically reverts my patch > acb0142bf01c0ebe18f09e37814451ee6a873e27 ([POWERPC] 4xx: Fix 460GT support > to not enable FPU), w

Re: [PATCH]: Check that TASK_SIZE does not overlap KERNEL_START

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 10:59 AM, Rune Torgersen wrote: Make sure CONFIG_TASK_SIZE does not overlap CONFIG_KERNEL_START This could happen when overriding settings to get 1GB lowmem, and would lead to userland mysteriousely hanging. This setting is only used by PPC32. Signed-off-by Rune Torgers

Re: [PATCH] [POWERPC] mpic: fix ambiguous else statement

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 9:15 AM, Anton Vorontsov wrote: This patch fixes following warning introduced by commit 475ca391b490a683d66bf1a8a7a24913f139 (mpic: Deal with bogus NIRQ in Feature Reporting Register): CC arch/powerpc/sysdev/mpic.o arch/powerpc/sysdev/mpic.c: In function ‘mpi

Re: [RFC] 4xx hardware watchpoint support

2008-05-23 Thread Luis Machado
On Thu, 2008-05-22 at 13:51 +1000, Paul Mackerras wrote: > Luis Machado writes: > > > This is a patch that has been sitting idle for quite some time. I > > decided to move it further because it is something useful. It was > > originally written by Michel Darneille, based off of 2.6.16. > > > > Th

Re: [RFC] 4xx hardware watchpoint support

2008-05-23 Thread Luis Machado
On Wed, 2008-05-21 at 23:46 -0700, Roland McGrath wrote: > > I would think there would be a different REQUEST value to mean "set a > > hardware breakpoint". Roland McGrath (cc'd) might be able to tell us > > what other architectures do. > > Other architectures don't give a good model to follow.

[RFC] OpenFirmware bindings for the MMC-over-SPI driver

2008-05-23 Thread Anton Vorontsov
Hi all, This is second attempt to write the OpenFirmware bindings for the MMC-over-SPI (and SPI bindings in general). First attempt[1] was discussed in the linuxppc-dev list only, since I tried to do the bindings without touching the drivers them self. That attempt got a cool welcome, so here is a

[RFC PATCH 1/2] mmc_spi: export probe and remove functions

2008-05-23 Thread Anton Vorontsov
...so we'll able to write bindings for the OpenFirmware without messing with #ifdefs in the driver itself. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- drivers/mmc/host/mmc_spi.c |6 -- drivers/mmc/host/mmc_spi.h |7 +++ 2 files changed, 11 insertions(+), 2 deletions(-)

[RFC PATCH 2/2] mmc: add OpenFirmware bindings for the mmc_spi driver

2008-05-23 Thread Anton Vorontsov
This patch depends on the Grant Likely's SPI patches, so this is for RFC only. Also, later we'll able to remove OF_GPIO dependency. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 24 drivers/mmc/host/Kconfig |7

help with USB on mpc8313e

2008-05-23 Thread Suvidh Kankariya
Hi, I am trying to use the mpc8313e internal usb phy with internal oscillator frequency of 24 Mz. in host mode on a custom board. Whenever I plugin any low/fast speed device the device gets detected but then always get an error "cannot read descriptor 64 error 71".Also I get address error aft

[PATCH v2] [POWERPC] mpic: fix ambiguous else statement

2008-05-23 Thread Anton Vorontsov
This patch fixes following warning introduced by commit 475ca391b490a683d66bf1a8a7a24913f139 (mpic: Deal with bogus NIRQ in Feature Reporting Register): CC arch/powerpc/sysdev/mpic.o arch/powerpc/sysdev/mpic.c: In function 'mpic_alloc': arch/powerpc/sysdev/mpic.c:1146: warning: suggest

Re: help with USB on mpc8313e

2008-05-23 Thread Anton Vorontsov
On Fri, May 23, 2008 at 02:32:22PM -0400, Suvidh Kankariya wrote: > Hi, > I am trying to use the mpc8313e internal usb phy with internal > oscillator frequency of 24 Mz. in host mode on a custom board. > Whenever I plugin any low/fast speed device the device gets detected but > then always get

Re: help with USB on mpc8313e

2008-05-23 Thread Suvidh Kankariya
Thanks Anton, With the kernel version 2.6.20 I am using Majority of this changes are hard code values in mpc8313.c I did already changed this value for my custom board file. But I am getting the error irrespectively. Is the relatonship description between USB DR clk and other as mentioned in

Re: MMIO and gcc re-ordering (Was: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code)

2008-05-23 Thread Scott Wood
Benjamin Herrenschmidt wrote: On Fri, 2008-05-23 at 08:36 -0400, Benjamin Herrenschmidt wrote: - mandate some kind of dma_sync_for_device/cpu on consistent memory. Almost no driver do that currently tho. They only do that for non consistent memory mapped with dma_map_*. - mandat

Re: [PATCH 6/7] [POWERPC] booting-without-of: add FHCI USB, FSL MCU, FSL UPM and GPIO LEDs bindings

2008-05-23 Thread Segher Boessenkool
+ - fsl,fullspeed-clock : specifies the full speed USB clock source in +"clk" or "brg" format. + - fsl,lowspeed-clock : specifies the low speed USB clock source in +"clk" or "brg" format. What format is "" in? + - fsl,usb-mode : should be "host". If that's t

Re: MMIO and gcc re-ordering (Was: [PATCH] [POWERPC] Improve (in|out)_beXX() asm code)

2008-05-23 Thread Benjamin Herrenschmidt
On Fri, 2008-05-23 at 16:14 -0500, Scott Wood wrote: > As Trent pointed out, if you change to eieio in the accessors, that'd > require drivers to also use mmiowb() before spin_unlock(), which fewer > drivers currently do. No, this is a totally different issue. And we keep track of the need for

Re: [PATCH 6/7] [POWERPC] booting-without-of: add FHCI USB, FSL MCU, FSL UPM and GPIO LEDs bindings

2008-05-23 Thread Anton Vorontsov
On Sat, May 24, 2008 at 12:10:56AM +0200, Segher Boessenkool wrote: >> + - fsl,fullspeed-clock : specifies the full speed USB clock >> source in >> +"clk" or "brg" format. >> + - fsl,lowspeed-clock : specifies the low speed USB clock source >> in >> +"clk" or "brg" for

[PATCH 6/7] [POWERPC] booting-without-of: add FHCI USB, FSL MCU, FSL UPM and GPIO LEDs bindings

2008-05-23 Thread Anton Vorontsov
This patch adds few bindings for the new drivers to be submitted through appropriate maintainers. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- Documentation/powerpc/booting-without-of.txt | 114 ++ 1 files changed, 114 insertions(+), 0 deletions(-) diff --git a

Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the mmc_spi driver

2008-05-23 Thread Stephen Rothwell
Hi Anton, On Fri, 23 May 2008 22:28:42 +0400 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > +++ b/drivers/mmc/host/of_mmc_spi.c > +static int of_mmc_spi_probe(struct spi_device *spi) > + /* > + * mmc_spi_probe will use drvdata, so we can't use it. Use node's > + * data instead. > +

Re: [PATCH] [POWERPC] 4xx: Fix 460GT support to (re-)enable the FPU

2008-05-23 Thread Stefan Roese
On Friday 23 May 2008, Josh Boyer wrote: > > Since AMCC now reports that the 460GT *has* an FPU, we should enable it > > (again). This patch basically reverts my patch > > acb0142bf01c0ebe18f09e37814451ee6a873e27 ([POWERPC] 4xx: Fix 460GT > > support to not enable FPU), which disabled the FPU upon

Re: [PATCH 5/7] [POWERPC] 83xx: new board support: MPC8360E-RDK

2008-05-23 Thread Timur Tabi
Anton Vorontsov wrote: 3. QE Serial UCCs (tested to not work with ucc_uart driver, reason unknown, yet); How far did you get on debugging this? -- Timur Tabi Linux Kernel Developer @ Freescale ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org

Re: [PATCH] [POWERPC] fsl_msi: few (mostly cosmetic) fixes

2008-05-23 Thread Kumar Gala
On May 23, 2008, at 8:41 AM, Anton Vorontsov wrote: This patch fixes few cosmetic issues, also removes unused function, makes some functions static and reduces #ifdef count. Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- applied. - k ___ L

Re: [RFC PATCH 2/2] mmc: add OpenFirmware bindings for the mmc_spi driver

2008-05-23 Thread Grant Likely
Yup, I like this approach better. I had been thinking about putting this all in the same file (drivers/mmc/host/mmc_spi.c) instead of exporting the probe/remove symbols and by using clear comment blocks to divide the sections, but I've got no issues with this approach. This is good work. Some co

[PATCH] [POWERPC] bootwrapper: add simpleImage* to list of boot targets

2008-05-23 Thread Grant Likely
From: Grant Likely <[EMAIL PROTECTED]> Without simpleImage% in the BOOT_TARGETS list, it is impossible to build any of the simpleImages. Signed-off-by: Grant Likely <[EMAIL PROTECTED]> --- Paulus, this is a bug fix for .26. I'll send you a pull request early next week with this in it if nobody

Re: [PATCH 3/4] spi: Add OF binding support for SPI busses

2008-05-23 Thread Grant Likely
On Wed, May 21, 2008 at 7:16 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Friday 16 May 2008, Grant Likely wrote: >> In my mind; platform_data and the device tree are all about the same >> thing: representation. In other words, how to describe the >> configuration of the hardware independent

Re: [spi-devel-general] [PATCH 3/4] spi: Add OF binding support for SPI busses

2008-05-23 Thread Grant Likely
On Thu, May 22, 2008 at 8:26 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Wednesday 21 May 2008, Grant Likely wrote: >> > spi-controller { >> >#address-cells = 2; >> >#size-cells = 0; >> >[EMAIL PROTECTED],f000 { reg = < 0 f000 >; } // CS 0, SPI address >> > f000 >> >

Re: [PATCH 3/4] spi: Add OF binding support for SPI busses

2008-05-23 Thread Grant Likely
On Thu, May 22, 2008 at 8:05 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Wednesday 21 May 2008, Anton Vorontsov wrote: >> > +++ b/drivers/spi/spi_of.c >> >> I think better placement for this is drivers/of, no? > > Yes please. Okay, I wasn't sure. Will do. g. -- Grant Likely, B.Sc., P.En

Re: [PATCH 2/4] spi: split up spi_new_device() to allow two stage registration.

2008-05-23 Thread Grant Likely
On Wed, May 21, 2008 at 6:17 PM, David Brownell <[EMAIL PROTECTED]> wrote: > On Friday 16 May 2008, Grant Likely wrote: >> >> This patch splits the allocation and registration portions of code out >> of spi_new_device() and creates three new functions; spi_alloc_device(), >> spi_register_device(),

Re: [PATCH 2/4] spi: split up spi_new_device() to allow two stage registration.

2008-05-23 Thread Grant Likely
On Sat, May 24, 2008 at 12:43 AM, Grant Likely <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 6:17 PM, David Brownell <[EMAIL PROTECTED]> wrote: >> On Friday 16 May 2008, Grant Likely wrote: >>> >>> This patch splits the allocation and registration portions of code out >>> of spi_new_device()