Re: [PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-17 Thread Arnd Bergmann
On Monday 18 April 2011, Richard Cochran wrote: > +static void ixp_rx_timestamp(struct port *port, struct sk_buff *skb) > +{ > + struct skb_shared_hwtstamps *shhwtstamps; > + struct ixp46x_ts_regs *regs; > + u64 ns; > + u32 ch, hi, lo, val; > + u16 uid, seq; > + > +

[git pull] Please pull powerpc.git merge branch

2011-04-17 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a few fixes and quirks for powerpc post -rc3. Hopefully that should be the end of it pending major bugs/issues/regressions. Cheers, Ben. The following changes since commit a1b49cb7e2a7961ec3aa8b64860bf480d4ec9077: Merge branch 'i2c-for-linus' of git://git.kernel.org/pub/s

[PATCH V14 4/4] ptp: Added a clock driver for the National Semiconductor PHYTER.

2011-04-17 Thread Richard Cochran
This patch adds support for the PTP clock found on the DP83640. The basic clock operations and one external time stamp have been implemented. Signed-off-by: Richard Cochran --- drivers/net/phy/Makefile |1 + drivers/net/phy/dp83640.c | 1100 +

[PATCH V14 3/4] ptp: Added a clock driver for the IXP46x.

2011-04-17 Thread Richard Cochran
This patch adds a driver for the hardware time stamping unit found on the IXP465. The basic clock operations and an external trigger are implemented. Signed-off-by: Richard Cochran Acked-by: John Stultz --- arch/arm/mach-ixp4xx/include/mach/ixp46x_ts.h | 78 ++ drivers/net/arm/ixp4xx_eth.

[PATCH V14 2/4] ptp: Added a clock that uses the eTSEC found on the MPC85xx.

2011-04-17 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, one alarm, and the PPS callback. Signed-off-by: Richard Cochran Acked-by: John Stultz --- .../devicetree/bindings/net/fsl-tsec-phy.txt

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

2011-04-17 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 presented as a standard POSIX clock. The ancillary clock features are exposed in two di

[PATCH V14 0/4] ptp: IEEE 1588 hardware clock support

2011-04-17 Thread Richard Cochran
* Introduction The aim of this patch set is to add support for PTP Hardware Clocks (PHCs) into the Linux kernel. The patch series builds upon the dynamic posix clock work appearing in kernel version 2.6.39. Support for obtaining timestamps from a PHC already exists via the SO_TIMESTAMPI

Re: [PATCH 0/14] Remove sysdev suspend/resume and shutdown operations

2011-04-17 Thread Greg KH
On Sun, Apr 17, 2011 at 11:01:53PM +0200, Rafael J. Wysocki wrote: > Hi, > > The following series of patches fixes bugs related to the introduction > of struct syscore_ops later in this cycle, replaces sysdev suspend/resume > operations in all of the architectures still using them with struct > sy

[PATCH] powerpc/powermac: Build fix with SMP and CPU hotplug

2011-04-17 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powermac/smp.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index a830c5e..bc5f0dc 100644 --- a/arch/powerpc/platforms

Re: [PATCH 9/14] PM / Blackfin: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Mike Frysinger
On Sun, Apr 17, 2011 at 17:11, Rafael J. Wysocki wrote: > Convert some Blackfin architecture's code to using struct syscore_ops > objects for power management instead of sysdev classes and sysdevs. > > This simplifies the code and reduces the kernel's memory footprint. > It also is necessary for re

[PATCH] powerpc: Add Initiate Coprocessor Store Word (icswx) support

2011-04-17 Thread Anton Blanchard
From: Tseng-Hui (Frank) Lin Icswx is a PowerPC instruction to send data to a co-processor. On Book-S processors the LPAR_ID and process ID (PID) of the owning process are registered in the window context of the co-processor at initialization time. When the icswx instruction is executed the L2 gen

RE: [PATCH 8/14] ARM / Samsung: Use struct syscore_ops for "core" power management

2011-04-17 Thread Kukjin Kim
Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Replace sysdev classes and struct sys_device objects used for "core" > power management by Samsung platforms with struct syscore_ops objects > that are simpler. > > This generally reduces the code size and the kernel memory footprint. > I

[PATCH 14/14] PM: Remove sysdev suspend, resume and shutdown operations

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since suspend, resume and shutdown operations in struct sysdev_class and struct sysdev_driver are not used any more, remove them. Also drop sysdev_suspend(), sysdev_resume() and sysdev_shutdown() used for executing those operations and modify all of their users accordingl

[PATCH 7/14] ARM / PXA: Use struct syscore_ops for "core" power management

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace sysdev classes and struct sys_device objects used for "core" power management by the PXA platform code with struct syscore_ops objects that are simpler. This reduces the code size and the kernel memory footprint. It also is necessary for removing sysdevs entirely

[PATCH 8/14] ARM / Samsung: Use struct syscore_ops for "core" power management

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace sysdev classes and struct sys_device objects used for "core" power management by Samsung platforms with struct syscore_ops objects that are simpler. This generally reduces the code size and the kernel memory footprint. It also is necessary for removing sysdevs ent

[PATCH 13/14] PM / PowerPC: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make some PowerPC architecture's code use struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely in the f

[PATCH 0/14] Remove sysdev suspend/resume and shutdown operations

2011-04-17 Thread Rafael J. Wysocki
Hi, The following series of patches fixes bugs related to the introduction of struct syscore_ops later in this cycle, replaces sysdev suspend/resume operations in all of the architectures still using them with struct syscore_ops-based PM callbacks and finally removes the suspend/resume and shutdow

[PATCH 2/14] PM: Add missing syscore_suspend() and syscore_resume() calls

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Device suspend/resume infrastructure is used not only by the suspend and hibernate code in kernel/power, but also by , APM, Xen and the kexec jump feature. However, commit 40dc166cb5dddbd36aa4ad11c03915ea (PM / Core: Introduce struct syscore_ops for core subsystems PM) fa

[PATCH 4/14] ARM / OMAP: Use struct syscore_ops for "core" power management

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace the sysdev class and struct sys_device used for power management in the OMAP's GPIO code with a struct syscore_ops object which is simpler. Signed-off-by: Rafael J. Wysocki Acked-by: Kevin Hilman --- arch/arm/plat-omap/gpio.c | 35 +---

[PATCH 9/14] PM / Blackfin: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Convert some Blackfin architecture's code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely

[PATCH 11/14] PM / AVR32: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Convert some AVR32 architecture's code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely in

[PATCH 1/14] PM: Fix error code paths executed after failing syscore_suspend()

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If syscore_suspend() fails in suspend_enter(), create_image() or resume_target_kernel(), it is necessary to call sysdev_resume(), because sysdev_suspend() has been called already and succeeded and we are going to abort the transition. Signed-off-by: Rafael J. Wysocki ---

[PATCH 10/14] PM / MIPS: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Convert some MIPS architecture's code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely in

[PATCH 3/14] ARM: Use struct syscore_ops instead of sysdevs for PM in common code

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Convert some ARM architecture's common code to using struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entire

[PATCH 12/14] PM / UNICORE32: Use struct syscore_ops instead of sysdevs for PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Make some UNICORE32 architecture's code use struct syscore_ops objects for power management instead of sysdev classes and sysdevs. This simplifies the code and reduces the kernel's memory footprint. It also is necessary for removing sysdevs from the kernel entirely in the

[PATCH 5/14] ARM / Integrator: Use struct syscore_ops for core PM

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace the sysdev class and struct sys_device used for power management by the Integrator interrupt-handling code with a struct syscore_ops object which is simpler. Signed-off-by: Rafael J. Wysocki --- arch/arm/mach-integrator/integrator_ap.c | 26 +--

[PATCH 6/14] ARM / SA1100: Use struct syscore_ops for "core" power management

2011-04-17 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Replace the sysdev class and struct sys_device used for power management by the SA1100 interrupt-handling code with a struct syscore_ops object which is simpler. Signed-off-by: Rafael J. Wysocki --- arch/arm/mach-sa1100/irq.c | 19 ++- 1 file changed,

Re: [regression] 2.6.39-rc[1-3] fail to boot on G5 PowerMac

2011-04-17 Thread Hugh Dickins
On Sun, Apr 17, 2011 at 12:00 AM, Jens Axboe wrote: > On 2011-04-17 05:16, Hugh Dickins wrote: >> On Thu, Apr 14, 2011 at 2:54 PM, Benjamin Herrenschmidt >> wrote: >>> On Thu, 2011-04-14 at 14:25 -0700, Hugh Dickins wrote: Something worth trying: turn off CONFIG_IDE.  That's what I need

Re: [regression] 2.6.39-rc[1-3] fail to boot on G5 PowerMac

2011-04-17 Thread Jens Axboe
On 2011-04-17 05:16, Hugh Dickins wrote: > On Thu, Apr 14, 2011 at 2:54 PM, Benjamin Herrenschmidt > wrote: >> On Thu, 2011-04-14 at 14:25 -0700, Hugh Dickins wrote: >>> >>> Something worth trying: turn off CONFIG_IDE. That's what I need to >>> boot 2.6.39-rc[1-3] on PowerPC G5. >>> >>> I know Je

[Help] MPC8377 2.6.18 PCI-E doesn't work well

2011-04-17 Thread Ginger Xiao
Hi All My board is MPC8377 with linux 2.6.18. When using the PCI-E device PCE9901, there is one serial can't work. The following is the message: /myapp # insmod 9900.ko 0001:02:00.0: ttyT0 at I/O 0x0 (irq = 22) is a starex-serial starex-serial: probe of 0001:02:00.1 failed with error -12 >Fro