[PATCHv3 2/3] powerpc: Switch VIO Bus PM to use generic helpers

2010-05-14 Thread Brian King
Switch to use the generic power management helpers. Signed-off-by: Brian King --- arch/powerpc/kernel/vio.c | 25 + 1 file changed, 1 insertion(+), 24 deletions(-) diff -puN arch/powerpc/kernel/vio.c~powerpc_vio_bus_pm2 arch/powerpc/kernel/vio.c --- powerpc.git/arch

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

2010-05-14 Thread Jeff Garzik
On 05/05/2010 01:57 PM, Rupjyoti Sarmah wrote: +static void clear_interrupt_bit(struct sata_dwc_device *hsdev, u32 bit) +{ + out_le32(&hsdev->sata_dwc_regs->intpr, +in_le32(&hsdev->sata_dwc_regs->intpr)); +} + +static u32 qcmd_tag_to_mask(u8 tag) +{ + return 0x00

mpc870 support in the powerpc arch?

2010-05-14 Thread Shawn Jin
Hi, Is mpc870 fully supported in the powerpc arch? I know it's an old processor but 8xx is still one of platforms in the powerpc arch. If it's not supported, how much effort will it be to resurrect mpc870 in the new arch considering we have substantial 8xx support? Thanks, -Shawn. ___

[PATCH 10/10] arch/powerpc/platforms/iseries: Use kstrdup

2010-05-14 Thread Julia Lawall
From: Julia Lawall Use kstrdup when the goal of an allocation is copy a string into the allocated region. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression from,to; expression flag,E1,E2; statement S; @@ - to = kmalloc(strlen(from) + 1,fla

[PATCH 6/10] arch/powerpc/platforms/pseries: Use kstrdup

2010-05-14 Thread Julia Lawall
From: Julia Lawall Use kstrdup when the goal of an allocation is copy a string into the allocated region. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression from,to; expression flag,E1,E2; statement S; @@ - to = kmalloc(strlen(from) + 1,fla

Re: [PATCH] powerpc: fix ioremap_flags() with book3e pte definition

2010-05-14 Thread Kumar Gala
On Feb 7, 2010, at 10:21 PM, Benjamin Herrenschmidt wrote: > On Fri, 2010-02-05 at 00:53 +0800, Li Yang wrote: >> We can't just clear the user read permission in book3e pte, because >> that will also clear supervisor read permission. This surely isn't >> desired. Fix the problem by adding the s

Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-14 Thread Scott Wood
On 05/14/2010 11:46 AM, Richard Cochran wrote: diff --git a/Documentation/powerpc/dts-bindings/fsl/tsec.txt b/Documentation/powerpc/dts-bindings/fsl/tsec.txt index edb7ae1..b09ba66 100644 --- a/Documentation/powerpc/dts-bindings/fsl/tsec.txt +++ b/Documentation/powerpc/dts-bindings/fsl/tsec.txt

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

2010-05-14 Thread Sergei Shtylyov
Hello. Rupjyoti Sarmah wrote: This patch enables the on-chip DWC SATA controller of the AppliedMicro processor 460EX. Signed-off-by: Rupjyoti Sarmah Signed-off-by: Mark Miesfeld Signed-off-by: Prodyut Hazarika --- arch/powerpc/boot/dts/canyonlands.dts |8 + drivers/ata/Kconfig

[PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2010-05-14 Thread Richard Cochran
The eTSEC includes a PTP clock with quite a few features. This patch adds support for the basic clock adjustment functions, plus two external time stamps and one alarm. Signed-off-by: Richard Cochran --- Documentation/powerpc/dts-bindings/fsl/tsec.txt | 56 +++ arch/powerpc/boot/dts/mpc8313erd

[PATCH v3 2/3] ptp: Added a clock that uses the Linux system time.

2010-05-14 Thread Richard Cochran
This PTP clock simply uses the NTP time adjustment system calls. The driver can be used in systems that lack a special hardware PTP clock. Signed-off-by: Richard Cochran --- drivers/ptp/Kconfig | 12 drivers/ptp/Makefile|1 + drivers/ptp/ptp_linux.c | 136

[PATCH v3 1/3] ptp: Added a brand new class driver for ptp clocks.

2010-05-14 Thread Richard Cochran
This patch adds an infrastructure for hardware clocks that implement IEEE 1588, the Precision Time Protocol (PTP). A class driver offers a registration method to particular hardware clock drivers. Each clock is exposed to user space as a character device with ioctls that allow tuning of the PTP clo

[PATCH v3 0/3] ptp: IEEE 1588 clock support

2010-05-14 Thread Richard Cochran
Now and again there has been talk on this list of adding PTP support into Linux. One part of the picture is already in place, the SO_TIMESTAMPING API for hardware time stamping. This patch set offers the missing second part needed for complete IEEE 1588 support. The only feature still to be implem

Re: [PATCH] powerpc/fsl-booke: Move loadcam_entry back to asm code to fix SMP ftrace

2010-05-14 Thread Becky Bruce
On May 13, 2010, at 11:25 PM, Kumar Gala wrote: When we build with ftrace enabled its possible that loadcam_entry would have used the stack pointer (even though the code doesn't need it). We call loadcam_entry in __secondary_start before the stack is setup. To ensure that loadcam_entry do

[PATCH] gianfar: Remove legacy PM callbacks

2010-05-14 Thread Anton Vorontsov
These callbacks were needed because dev_pm_ops support for OF platform devices was in the powerpc tree, and the patch that added dev_pm_ops for gianfar driver was in the netdev tree. Now that netdev and powerpc trees have merged into Linus' tree, we can remove the legacy hooks. Signed-off-by: Anto

[PATCH v2] USB: FHCI: cq_get() should check kfifo_out()'s return value

2010-05-14 Thread Anton Vorontsov
Since commit 7acd72eb85f1c7a15e8b5eb554994949241737f1 ("kfifo: rename kfifo_put... into kfifo_in... and kfifo_get... into kfifo_out..."), kfifo_out() is marked __must_check, and that causes gcc to produce lots of warnings like this: CC drivers/usb/host/fhci-mem.o In file included from drive

[PATCH] fsl_pq_mdio: Fix mdiobus allocation handling

2010-05-14 Thread Anton Vorontsov
The driver could return success code even if mdiobus_alloc() failed. This patch fixes the issue. Signed-off-by: Anton Vorontsov --- drivers/net/fsl_pq_mdio.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/fsl_pq_mdio.c b/drivers/net/fsl_pq_mdio.c index

Re: [PATCH] media/IR: Add missing include file to rc-map.c

2010-05-14 Thread Stephen Rothwell
still exists in linux-next of 20100514 - please apply This patch was included in the v4l-dvb tree (and thus linux-next) today -see commit 1e19cb4e7d15d724cf2c6ae23f0b871c84a92790. -- Cheers, Stephen Rothwells...@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ pgpOWZalxKdhi.

Re: [PATCH] media/IR: Add missing include file to rc-map.c

2010-05-14 Thread Peter Hüwe
From: Peter Huewe This patch adds a missing include linux/delay.h to prevent build failures[1-5] Signed-off-by: Peter Huewe --- Forwarded to linux-next mailing list - breakage still exists in linux-next of 20100514 - please apply KernelVersion: linux-next-20100505 References: [1] http

Re: [PATCH] media/IR: Add missing include file to rc-map.c

2010-05-14 Thread Peter Hüwe
From: Peter Huewe This patch adds a missing include linux/delay.h to prevent build failures[1-5] Signed-off-by: Peter Huewe --- Forwarded to linux-next mailing list - breakage still exists in linux-next of 20100514 - please apply KernelVersion: linux-next-20100505 References: [1] http

Re: [PATCH] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-14 Thread Martyn Welch
Martyn Welch wrote: > Currently the irqs for the i8042, which historically provides keyboard and > mouse (aux) support, is hardwired in the driver rather than parsing the > dts. > > In addition the interrupts are provided in the dts, but in a way that is > not easily parsable using irq_of_parse_and

[PATCH] powerpc: Add i8042 keyboard and mouse irq parsing

2010-05-14 Thread Martyn Welch
Currently the irqs for the i8042, which historically provides keyboard and mouse (aux) support, is hardwired in the driver rather than parsing the dts. In addition the interrupts are provided in the dts, but in a way that is not easily parsable using irq_of_parse_and_map(). This patch modifies th

RE: [PATCH] pte_fsl_booke: fix instruction TLB error permission check

2010-05-14 Thread Benjamin Herrenschmidt
On Fri, 2010-05-14 at 17:14 +0800, Liu Dave-R63238 wrote: > > > Aaron pointed the issue on FSL BookE. > > > > > http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-January/079738.htm > > > l > > > > Right, but I think 64-bit BookE has the same issue. We can > > fix that later tho. > > Ben, > >

RE: [PATCH] pte_fsl_booke: fix instruction TLB error permission check

2010-05-14 Thread Liu Dave-R63238
> > Aaron pointed the issue on FSL BookE. > > > http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-January/079738.htm > > l > > Right, but I think 64-bit BookE has the same issue. We can > fix that later tho. Ben, We also find the _PAGE_USER is different between pte-book3e and old fsl-booke I

RE: [PATCH] pte_fsl_booke: fix instruction TLB error permission check

2010-05-14 Thread Benjamin Herrenschmidt
On Fri, 2010-05-14 at 10:16 +0800, Liu Dave-R63238 wrote: > > Not looking at the code right now ... but do we have the same > > issue on 64e ? > > Aaron pointed the issue on FSL BookE. > http://lists.ozlabs.org/pipermail/linuxppc-dev/2010-January/079738.html Right, but I think 64-bit BookE has t

[PATCH v2] trace, powerpc: Implement raw syscall tracepoints on PowerPC

2010-05-14 Thread Ian Munsie
From: Ian Munsie This patch implements the raw syscall tracepoints on PowerPC and exports them for ftrace syscalls to use. To minimise reworking existing code, I slightly re-ordered the thread info flags such that the new TIF_SYSCALL_TRACEPOINT bit would still fit within the 16 bits of the andi.