[PATCH v6 17/17] clk: mpc512x: remove migration support workarounds

2013-11-30 Thread Gerhard Sittig
this change removes workarounds which have become obsolete after migration to common clock support has completed - remove clkdev registration calls (compatibility clock item aliases) after all peripheral drivers were adjusted for device tree based clock lookup - remove pre-enable workarounds af

[PATCH v6 15/17] net: can: mscan: remove non-CCF code for MPC512x

2013-11-30 Thread Gerhard Sittig
transition to the common clock framework has completed and the PPC_CLOCK is no longer available for the MPC512x platform, remove the now obsolete code path of the mpc5xxx mscan driver which accessed clock control module registers directly Cc: Wolfgang Grandegger Cc: Marc Kleine-Budde Cc: linux-.

[PATCH v6 16/17] powerpc/mpc512x: improve DIU related clock setup

2013-11-30 Thread Gerhard Sittig
adapt the DIU clock initialization to the COMMON_CLK approach: device tree based clock lookup, prepare and unprepare for clocks, work with frequencies not dividers, call the appropriate clk_*() routines and don't access CCM registers the "best clock" determination now completely relies on the plat

[PATCH v6 13/17] [media] fsl-viu: adjust for OF based clock lookup

2013-11-30 Thread Gerhard Sittig
after device tree based clock lookup became available, the VIU driver need no longer use the previous global "viu_clk" name, but should use the "ipg" clock name specific to the OF node Cc: Mauro Carvalho Chehab Cc: linux-me...@vger.kernel.org Signed-off-by: Gerhard Sittig --- drivers/media/plat

[PATCH v6 14/17] net: can: mscan: adjust to common clock support for mpc512x

2013-11-30 Thread Gerhard Sittig
implement a .get_clock() callback for the MPC512x platform which uses the common clock infrastructure (eliminating direct access to the clock control registers from within the CAN network driver), and provide the corresponding .put_clock() callback to release resources after use acquire both the c

[PATCH v6 12/17] mtd: mpc5121_nfc: adjust for OF based clock lookup

2013-11-30 Thread Gerhard Sittig
after device tree based clock lookup became available, the NAND flash driver need no longer use the previous global "nfc_clk" name, but should use the "ipg" clock name specific to the OF node Cc: David Woodhouse Cc: Artem Bityutskiy Cc: linux-...@lists.infradead.org Signed-off-by: Gerhard Sittig

[PATCH v6 11/17] USB: fsl-mph-dr-of: adjust for OF based clock lookup

2013-11-30 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the component index -- remove the "usb%d_clk" template, always use "ipg" instead Cc: Greg Kroah-Hartman Cc: linux-...@vger.kernel.org Signed-off-by: Gerhard Sittig ---

[PATCH v6 08/17] spi: mpc512x: adjust to OF based clock lookup

2013-11-30 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the "psc%d_mclk" template and unconditionally use 'mclk' acquire and release the 'ipg' clock item for register access as well Cc: Mark Brown Cc: l

[PATCH v6 10/17] serial: mpc512x: setup the PSC FIFO clock as well

2013-11-30 Thread Gerhard Sittig
prepare and enable the FIFO clock upon PSC FIFO initialization, check for and propagage errors when enabling the PSC FIFO clock, disable and unprepare the FIFO clock upon PSC FIFO uninitialization devm_{get,put}_clk() doesn't apply here, as the SoC provides a single FIFO component which is shared

[PATCH v6 07/17] clk: mpc5xxx: switch to COMMON_CLK, retire PPC_CLOCK

2013-11-30 Thread Gerhard Sittig
the setup before the change was - arch/powerpc/Kconfig had the PPC_CLOCK option, off by default - depending on the PPC_CLOCK option the arch/powerpc/kernel/clock.c file was built, which implements the clk.h API but always returns -ENOSYS unless a platform registers specific callbacks - the MPC5

[PATCH v6 09/17] serial: mpc512x: adjust for OF based clock lookup

2013-11-30 Thread Gerhard Sittig
after device tree based clock lookup became available, the peripheral driver need no longer construct clock names which include the PSC index, remove the "psc%d_mclk" template and unconditionally use 'mclk' acquire and release the "ipg" clock item for register access as well Cc: Greg Kroah-Hartma

[PATCH v6 06/17] dts: mpc512x: add clock specs for client lookups

2013-11-30 Thread Gerhard Sittig
this addresses the client side of device tree based clock lookups add clock specifiers to the mbx, nfc, mscan, sdhc, i2c, axe, diu, viu, mdio, fec, usb, pata, psc, psc fifo, and pci nodes in the shared mpc5121.dtsi include Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Stephen Warren Cc:

[PATCH v6 03/17] dts: mpc512x: add clock related device tree specs

2013-11-30 Thread Gerhard Sittig
this addresses the clock driver aka provider's side of clocks - introduce a 'clocks' subtree with an 'osc' node for the crystal or oscillator SoC input (fixed frequency) - the 'clock@f00' clock-control-module node references the 'osc' for its input, and is another provider for all the clocks wh

[PATCH v6 04/17] clk: mpc512x: introduce COMMON_CLK for MPC512x (disabled)

2013-11-30 Thread Gerhard Sittig
this change implements a clock driver for the MPC512x PowerPC platform which follows the COMMON_CLK approach and uses common clock drivers shared with other platforms this driver implements the publicly announced set of clocks (those listed in the dt-bindings header file), as well as generates add

[PATCH v6 05/17] clk: mpc512x: add backwards compat to the CCF code

2013-11-30 Thread Gerhard Sittig
extend the recently added COMMON_CLK platform support for MPC512x such that it works with incomplete device tree data which lacks clock specs Cc: Mike Turquette Cc: Anatolij Gustschin Cc: linux-arm-ker...@lists.infradead.org Cc: linuxppc-dev@lists.ozlabs.org Signed-off-by: Gerhard Sittig --- a

[PATCH v6 02/17] dts: mpc512x: introduce dt-bindings/clock/ header

2013-11-30 Thread Gerhard Sittig
introduce a dt-bindings/ header file for MPC512x clocks, providing symbolic identifiers for those SoC clocks which clients will reference from their device tree nodes Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Stephen Warren Cc: Ian Campbell Cc: devicet...@vger.kernel.org Reviewed-by

[PATCH v6 00/17] add COMMON_CLK support for PowerPC MPC512x

2013-11-30 Thread Gerhard Sittig
this series introduces support for the common clock framework (CCF, COMMON_CLK Kconfig option) in the PowerPC based MPC512x platform, which brings device tree based clock lookup as well at subsystem maintainers: this series was streamlined for conflict free application through the subsystems' ind

[PATCH v6 01/17] powerpc/fsl-pci: improve clock API use

2013-11-30 Thread Gerhard Sittig
make the Freescale PCI driver get, prepare and enable the PCI clock during probe(); the clock gets put upon device shutdown by the devm approach clock lookup is non-fatal as not all platforms may provide clock specs in their device tree or implement a device tree based clock provider, but failure

Re: 3.13-rc1: eth0 hw csum failure on powerpc

2013-11-30 Thread Andreas Schwab
Christian Kujau writes: > On Sat, 30 Nov 2013 at 02:11, Christian Kujau wrote: >> On Sat, 30 Nov 2013 at 02:07, Christian Kujau wrote: >> > while trying to upgrade from 3.12.0 to 3.13-rc1 or -rc2, the following >> > happens early during bootup: >> > >> > [...] >> > Freeing unused kernel memory

Re: 3.13-rc1: eth0 hw csum failure on powerpc

2013-11-30 Thread Christian Kujau
On Sat, 30 Nov 2013 at 02:11, Christian Kujau wrote: > On Sat, 30 Nov 2013 at 02:07, Christian Kujau wrote: > > while trying to upgrade from 3.12.0 to 3.13-rc1 or -rc2, the following > > happens early during bootup: > > > > [...] > > Freeing unused kernel memory: 204K (c06ea000 - c071d000) > >

3.13 Oops on ppc64_cpu --smt=off

2013-11-30 Thread Alexander Graf
Hi Ben, With current linus master (3.13-rc2+) I'm facing an interesting issue with SMT disabling on p7. When I trigger the cpu offlining it works as expected, but after a few seconds the machine goes into an oops as you can see below. It looks like a null pointer dereference. Alex ($ ppc64_c

[PATCH] watchdog: mpc8xxx_wdt: MPC8xx is HW enabled

2013-11-30 Thread Christophe Leroy
MPC8xx watchdog is enabled at startup by HW. If the bootloader disables it, it cannot be reenabled. Signed-off-by: Christophe Leroy diff -ur a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c --- a/drivers/watchdog/mpc8xxx_wdt.c2013-05-11 22:57:46.0 +0200 +++ b/drivers

[PATCH] watchdog: mpc8xxx_wdt convert to watchdog core

2013-11-30 Thread Christophe Leroy
Convert mpc8xxx_wdt.c to the new watchdog API. Signed-off-by: Christophe Leroy diff -ur a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c --- a/drivers/watchdog/mpc8xxx_wdt.c2013-05-11 22:57:46.0 +0200 +++ b/drivers/watchdog/mpc8xxx_wdt.c2013-11-30 16:14:53.803495

Re: 3.13-rc1: eth0 hw csum failure on powerpc

2013-11-30 Thread Christian Kujau
On Sat, 30 Nov 2013 at 02:07, Christian Kujau wrote: > while trying to upgrade from 3.12.0 to 3.13-rc1 or -rc2, the following > happens early during bootup: > > [...] > Freeing unused kernel memory: 204K (c06ea000 - c071d000) > eth0: hw csum failure > CPU: 0 PID: 0 Comm: swapper Not tainted 3.

3.13-rc1: eth0 hw csum failure on powerpc

2013-11-30 Thread Christian Kujau
Hi, while trying to upgrade from 3.12.0 to 3.13-rc1 or -rc2, the following happens early during bootup: [...] Freeing unused kernel memory: 204K (c06ea000 - c071d000) eth0: hw csum failure CPU: 0 PID: 0 Comm: swapper Not tainted 3.13.0-rc2 #1 Call Trace: [effefd00] [c0008b3c] show_stack+0x4