[PATCH v2 5/7] drivers/net: Remove local #define IW_IOCTL, use STD_IW_HANDLER

2010-03-17 Thread Joe Perches
Use #define STD_IW_HANDLER from wireless.h instead Signed-off-by: Joe Perches --- drivers/net/ps3_gelic_wireless.c | 35 +++--- drivers/net/wireless/ipw2x00/ipw2200.c | 83 2 files changed, 58 insertions(+), 60 deletions(-) diff --git a/drivers

[PATCH v2 0/7] wireless: Use macros from wireless.h

2010-03-17 Thread Joe Perches
Move the STD_IW_HANDLER macro from orinoco to wireless.h Use the wireless.h macros in various wireless files Remove local #defines of IW_IOCTL Joe Perches (7): wireless.h: Add STD_IW_HANDLER macro net/wireless/wext_core.c: Use IW_IOCTL_IDX macro net/wireless/wext-core.c: Use IW_EVENT_IDX mac

[PATCH v2] powerpc/perf_events: Implement perf_arch_fetch_caller_regs

2010-03-17 Thread Paul Mackerras
This implements a powerpc version of perf_arch_fetch_caller_regs. It's implemented in assembly because that way we can be sure there isn't a stack frame for perf_arch_fetch_caller_regs. If it was in C, gcc might or might not create a stack frame for it, which would affect the number of levels we h

Re: [PATCH] [V2] Add non-Virtex5 support for LL TEMAC driver

2010-03-17 Thread Edgar E. Iglesias
On Mon, Mar 15, 2010 at 03:39:49PM +0100, Michal Simek wrote: > John Linn wrote: > >> -Original Message- > >> From: Michal Simek [mailto:michal.si...@petalogix.com] > >> Sent: Monday, March 15, 2010 2:40 AM > >> To: John Linn > >> Cc: net...@vger.kernel.org; linuxppc-...@ozlabs.org; > > gra

Re: [PATCH] powerpc/of: Fix comparison of "compatible" properties

2010-03-17 Thread Grant Likely
On Wed, Mar 17, 2010 at 6:09 PM, Benjamin Herrenschmidt wrote: > Commit 7c7b60cb87547b1664a4385c187f029bf514a737 > "of: put default string compare and #a/s-cell values into common header" > > Breaks various things on powerpc due to using strncasecmp instead of > strcasecmp for comparing against "c

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
> > This is Jesse tree with the default Canyonlands defconfig ? Hrm... I'll > > have to take a look, somebody mucking with PCI resource allocation is > > very likely to break something :-) > > > > > > > > Yep, default Canyonlands defconfig and default DTS. Ok so Jesse is innocent :-) See the

[PATCH] powerpc/of: Fix comparison of "compatible" properties

2010-03-17 Thread Benjamin Herrenschmidt
Commit 7c7b60cb87547b1664a4385c187f029bf514a737 "of: put default string compare and #a/s-cell values into common header" Breaks various things on powerpc due to using strncasecmp instead of strcasecmp for comparing against "compatible" strings. This causes things like the 4xx PCI code to fail mis

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
> > This is Jesse tree with the default Canyonlands defconfig ? Hrm... I'll > > have to take a look, somebody mucking with PCI resource allocation is > > very likely to break something :-) > > > > > > > > Yep, default Canyonlands defconfig and default DTS. Which branch of Jesse tree btw ? "ma

[PATCH] [RFC] Xilinx MPMC SDMA subsystem

2010-03-17 Thread Sergey Temerkhanov
This patch adds generic support for Xilinx MPMC SoftDMA channels which are used by, e.g., LLTEMAC and other IP cores (including custom cores). So, the implemented functions include only SDMA channels enumeration and control (finding device by phandle property, channel reset, initialization of RX

how can I write a Device Tree Source for PCI-PCI Bridge?

2010-03-17 Thread Jianbin Hu
Hi, all My board have a PCIe switch(PLX PEX8608), which have a AMCC 460EX processor. I have parted the dts source file from canyonlands.dts. But I have no idea for the PCI bridge device node. Is anyone have a suggestion ? Best Regards. ___ Linuxppc-dev m

[PATCH RESEND] powerpc: fix handling of strnlen with zero len

2010-03-17 Thread Jeff Mahoney
Commit 0119536c, which added the assembly version of strncmp to powerpc, mentions that it adds two instructions to the version from boot/string.S to allow it to handle len=0. Unfortunately, it doesn't always return 0 when that is the case. The length is passed in r5, but the return value is pa

Re: [PATCH] 460EX on-chip SATA driver < resubmission : 01>

2010-03-17 Thread Jeff Garzik
On 03/17/2010 08:03 AM, Stefan Roese wrote: Hi Rup, On Wednesday 17 March 2010 05:23:16 Rupjyoti Sarmah wrote: This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX. Apart from the other comments, did you take a look at the latest version of this driver in our

Re: [PATCH] [V2] Add non-Virtex5 support for LL TEMAC driver

2010-03-17 Thread Grant Likely
On Fri, Mar 12, 2010 at 7:05 PM, John Linn wrote: > This patch adds support for using the LL TEMAC Ethernet driver on > non-Virtex 5 platforms by adding support for accessing the Soft DMA > registers as if they were memory mapped instead of solely through the > DCR's (available on the Virtex 5). >

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-17 Thread Grant Likely
2010/3/13 Németh Márton : > Hi, > > here is a version with modified cpu node, xbar ranges and added interrupt > sources. > Please send comments. Hi Márton. A few comments below. > --- > From: Márton Németh > > Add device tree for Freescale MPC5554. > > Signed-off-by: Márton Németh > --- > dif

Re: Freescale MPC5554 device tree (was: cross-compiling Linux for PowerPC e200 core?)

2010-03-17 Thread Németh Márton
Hi Grant, David and Segher, is there any comments or suggestions about this MPC5554 device tree? Regards, Márton Németh Németh Márton wrote: > Hi, > > here is a version with modified cpu node, xbar ranges and added interrupt > sources. > Please send comments. > > Regards, > >

Re: MPC5121e - using both USB modules

2010-03-17 Thread Wolfram Sang
On Wed, Mar 17, 2010 at 02:56:22PM +0100, LD wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > I am working on a custom MPC5121e board, adapting 2.6.24 kernel. This is probably the Freescale-provided kernel, so you should ask them. Or, even better, use the current mainline k

MPC5121e - using both USB modules

2010-03-17 Thread LD
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am working on a custom MPC5121e board, adapting 2.6.24 kernel. The board has two USB ports: - - cell-index 0 uses internal phy - - cell-index 1 uses external phy For mechanical/commercial reasons I cannot use Mini-A / Mini-B connectors, so I

Re: [PATCH] 460EX on-chip SATA driver < resubmission : 01>

2010-03-17 Thread Stefan Roese
Hi Rup, On Wednesday 17 March 2010 05:23:16 Rupjyoti Sarmah wrote: > This patch enables the on-chip DWC SATA controller of the AppliedMicro > processor 460EX. Apart from the other comments, did you take a look at the latest version of this driver in our linux-2.6-denx repository? We did some wor

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Felix Radensky
Hi Ben, Benjamin Herrenschmidt wrote: On Wed, 2010-03-17 at 09:38 +0200, Felix Radensky wrote: Hello Kenj-san Kenji Kaneshige wrote: By the way, I think Yinghai's bridge resource reallocation patch series might help you. It is in Jesse's PCI tree. Please take a look. I've tr

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Benjamin Herrenschmidt
On Wed, 2010-03-17 at 09:38 +0200, Felix Radensky wrote: > Hello Kenj-san > > Kenji Kaneshige wrote: > > > > > > By the way, I think Yinghai's bridge resource reallocation patch series > > might help you. It is in Jesse's PCI tree. Please take a look. > > > > > I've tried Jesse's tree on my custom

Re: [PATCH 3/4] 8xx: Don't touch ACCESSED when no SWAP.

2010-03-17 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 2010/03/16 22:20:52: > > On Fri, 2010-02-26 at 09:29 +0100, Joakim Tjernlund wrote: > > Only the swap function cares about the ACCESSED bit in > > the pte. Do not waste cycles updateting ACCESSED when swap > > is not compiled into the kernel. > > --- > > Your change

Re: Problem with PCI bus rescan on 460EX

2010-03-17 Thread Felix Radensky
Hello Kenj-san Kenji Kaneshige wrote: By the way, I think Yinghai's bridge resource reallocation patch series might help you. It is in Jesse's PCI tree. Please take a look. I've tried Jesse's tree on my custom board and on 460EX evaluation board (Canyonlands). In both cases the kernel doesn

Re: [PATCH 2/4] 8xx: Avoid testing for kernel space in ITLB Miss.

2010-03-17 Thread Joakim Tjernlund
Benjamin Herrenschmidt wrote on 2010/03/16 22:19:36: > > On Fri, 2010-02-26 at 09:29 +0100, Joakim Tjernlund wrote: > > +#ifdef CONFIG_MODULES > > + /* Only modules will cause ITLB Misses as we always > > +* pin the first 8MB of kernel memory */ > > andi. r11, r10, 0x0800