[PATCH 0/3] clock (clk.h) framework for mpc52xx

2007-07-11 Thread Domen Puncer
Hi! Clock managing in mpc52xx psc spi driver grew a bit, to do it "the right way" ;-) 1/3 - Generic powerpc clock interface, platforms that implement it should fill clk_functions. This is needed because powerpc supports multiple platforms in same kernel image. 2/3 - psc spi cloc

[PATCH 2/3] mpc52xx clk.h interface

2007-07-11 Thread Domen Puncer
clk.h interface for mpc52xx Currently only psc_mclks are defined. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/52xx/Makefile |2 arch/powerpc/platforms/52xx/mpc52xx_clock.c | 352 +++ arch/powerpc/platform

[PATCH 3/3] mpc52xx_psc_spi: use clk.h subsystem

2007-07-11 Thread Domen Puncer
Use clocks subsystem in spi driver. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/spi/mpc52xx_psc_spi.c | 64 +- 1 file changed, 57 insertions(+), 7 deletions(-) Index: work-powerpc.git/drivers/spi/mpc52xx_psc

[PATCH 1/3] powerpc clk.h interface for platforms

2007-07-11 Thread Domen Puncer
clk interface for arch/powerpc, platforms should fill clk_functions. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/kernel/Makefile|3 - arch/powerpc/kernel/clock.c | 82 include/asm-powerpc/clk_interface.h

Re: Tickless Hz/hrtimers/etc. on PowerPC

2007-07-11 Thread Domen Puncer
do_timer(1); #endif - timer_recalc_offset(tb_last_jiffy); + /*timer_recalc_offset(tb_last_jiffy);*/ timer_check_rtc(); } write_sequnlock(&xtime_lock); This is needed for h

Re: [PATCH 1/3] powerpc clk.h interface for platforms

2007-07-13 Thread Domen Puncer
hey can't bothered to lift a finger to even _talk_ to me about their > requirements they just don't have any say concerning any future > developments IMO. My changes were implemented according to clk.h API. And honestly, I just wanted to rework clocks in some SPI driver and others m

Re: Tickless Hz/hrtimers/etc. on PowerPC

2007-07-13 Thread Domen Puncer
On 12/07/07 13:07 +0100, Matt Sealey wrote: > Domen, > > You wouldn't have tried these on the Efika yet, would you? Not yet, but they worked on a mpc5200b based board (lite5200b). Domen > > -- > Matt Sealey <[EMAIL PROTECTED]> > Genesi, Manager, Devel

Re: Tickless Hz/hrtimers/etc. on PowerPC

2007-07-13 Thread Domen Puncer
On 12/07/07 18:11 +0400, Sergei Shtylyov wrote: > Hello. > > Domen Puncer wrote: > > >>Does anyone have the definitive patchset to enable the tickless hz, > >>some kind of hrtimer and the other related improvements in the > >>PowerPC tree? > > >

[PATCH] powerpc: mpc5200 low power mode, .globl fix

2007-07-20 Thread Domen Puncer
flush_data_cache doesn't need to be global, and can cause problems. Thanks to Milton Miller for noticing this. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/52xx/lite5200_sleep.S |1 - 1 file changed, 1 deletion(-) Index: work-powerpc.git/arch/powerp

Generic clk.h wrappers? [Was: Re: [PATCH 1/3] powerpc clk.h interface for platforms]

2007-08-01 Thread Domen Puncer
On 13/07/07 11:12 +0200, Domen Puncer wrote: > On 11/07/07 21:34 +0100, Russell King wrote: > > On Wed, Jul 11, 2007 at 10:02:54AM -0700, David Brownell wrote: > > > On Wednesday 11 July 2007, Christoph Hellwig wrote: > > > > On Wed, Jul 11, 2007 at 08:56:58

Re: [PATCH 1/3] powerpc clk.h interface for platforms

2007-08-05 Thread Domen Puncer
Hi! Paul, what do you say about this? Sylvain suggested it could also be integrated with define_machine interface. If it's OK, it would be cool if it got merged in next release cycle. Domen On 11/07/07 11:32 +0200, Domen Puncer wrote: > clk interface for arch/powerpc, platform

Re: for-2.6.24 branch in powerpc.git created

2007-08-21 Thread Domen Puncer
On 17/08/07 12:13 +1000, Paul Mackerras wrote: > I have made a for-2.6.24 branch in powerpc.git and pushed the > following patches to it. How about the following? [PATCH 1/3] powerpc clk.h interface for platforms http://patchwork.ozlabs.org/linuxppc/patch?id=12190 Domen _

Re: Document and implement an improved flash device binding

2007-08-29 Thread Domen Puncer
On 29/08/07 16:13 +1000, David Gibson wrote: > static int __devinit of_physmap_probe(struct of_device *dev, const struct > of_device_id *match) > { > struct device_node *dp = dev->node; > struct resource res; > struct physmap_flash_info *info; > - const char **probe_type;

Re: [PATCH 1/3] powerpc clk.h interface for platforms

2007-09-18 Thread Domen Puncer
On 19/09/07 13:47 +1000, Paul Mackerras wrote: > Domen Puncer writes: > > > Paul, what do you say about this? > > Sylvain suggested it could also be integrated with define_machine > > interface. > > As it stands, your patch adds the clk_* functions on all pla

[PATCH 1/3 v2] powerpc clk.h interface for platforms

2007-09-20 Thread Domen Puncer
clk interface for arch/powerpc, platforms should fill clk_functions. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- On 20/09/07 15:07 +1000, Paul Mackerras wrote: > Domen Puncer writes: > > > 52xx > > Reason for adding it to all was that EXPORT_SYMBOL's would

[PATCH v3 0/4] FEC - fast ethernet controller for mpc52xx

2007-10-14 Thread Domen Puncer
Hello! If there are no objections, I would like to get this merged when bestcomm goes in (any time now?). It's split into four parts: 1 - device tree 2 - small bestcomm change 3 - the actual driver 4 - phy part of the driver Domen -- Domen Puncer | Research & De

[PATCH v3 1/4] FEC mpc52xx: device tree changes

2007-10-14 Thread Domen Puncer
Add device tree entries for lite5200b's FEC's PHY. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/lite5200b.dts | 18 +- 1 files changed, 17 insertions(+), 1 deletion(-) Index: linux.git/arch/powerpc/boot/d

[PATCH v3 2/4] FEC mpc52xx: add some bestcomm flags

2007-10-14 Thread Domen Puncer
Add masks and fix existing ones to match mpc5200b user's manual. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/bestcomm/fec.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) Index: linux.git/arch/powerpc/sysdev/bes

[PATCH v3 3/4] FEC mpc52xx: the driver

2007-10-14 Thread Domen Puncer
Driver for ethernet on mpc5200/mpc5200b SoCs (FEC). Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/net/Kconfig |1 drivers/net/Makefile |1 drivers/net/fec_mpc52xx/Kconfig | 15 drivers/net/fec_mpc52xx/Makefile |2 drive

[PATCH v3 4/4] FEC mpc52xx: phy part of the driver

2007-10-14 Thread Domen Puncer
PHY part of the driver for mpc5200(b) ethernet. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/net/fec_mpc52xx/Kconfig | 13 ++ drivers/net/fec_mpc52xx/Makefile |5 drivers/net/fec_mpc52xx/fec.c | 11 ++ drivers/net/fec_mpc52xx/fec.h |2 drive

[PATCH 0/2] clk for mpc52xx

2007-10-14 Thread Domen Puncer
Hello! Now that the generic part for powerpc went in, it's time to actually use it. Split into: 1 - define psc_mclk clocks for mpc52xx 2 - use those clocks in psc_spi driver Domen -- Domen Puncer | Research & De

[PATCH 1/2] clk for mpc52xx: platform part

2007-10-14 Thread Domen Puncer
clk.h interface for mpc52xx Currently only psc_mclks are defined. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/52xx/Makefile |2 arch/powerpc/platforms/52xx/mpc52xx_clock.c | 352 +++ arch/powerpc/platform

[PATCH 2/2] clk for mpc52xx: use psc_mclk's in spi driver

2007-10-14 Thread Domen Puncer
Use clocks subsystem in spi driver. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/spi/mpc52xx_psc_spi.c | 64 +- 1 files changed, 57 insertions(+), 7 deletions(-) Index: linux.git/drivers/spi/mpc52xx_psc

Re: [PATCH 2/2] clk for mpc52xx: use psc_mclk's in spi driver

2007-10-14 Thread Domen Puncer
On 14/10/07 16:42 -0600, Grant Likely wrote: > On 10/14/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > > Use clocks subsystem in spi driver. > > I don't understand the advantage of this approach. Is the current code > broken? Actually the calculations are broken. B

Re: [PATCH v3 4/4] FEC mpc52xx: phy part of the driver\

2007-10-15 Thread Domen Puncer
On 14/10/07 16:05 -0600, Grant Likely wrote: > On 10/14/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > > PHY part of the driver for mpc5200(b) ethernet. > > Assuming I understand correctly, this comment is not correct and this > patch just adds an MDIO bus driver. PHY d

Re: [PATCH] bestcomm: Restrict disabling of bus prefetch to original mpc5200 silicon.

2007-10-19 Thread Domen Puncer
On 17/10/07 10:36 -0600, Grant Likely wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > Only the MPC5200 needs this bug fix. MPC5200B is okay. > > Signed-off-by: Grant Likely <[EMAIL PROTECTED]> > --- > > Sven, Domen; > > Can you please test this patch? I found no obvious problems with it o

[PATCH v4] FEC - fast ethernet controller for mpc52xx

2007-10-19 Thread Domen Puncer
Driver for ethernet on mpc5200/mpc5200b SoCs (FEC). Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- On 18/10/07 15:14 -0400, Jeff Garzik wrote: > > except a resend combining patches 3 and 4 as requested :) OK, here it goes. Sorry for the delay. diffstat: drivers

Re: [PATCH] mpc5200: psc-spi driver must not touch port_config or cdm registers

2007-10-23 Thread Domen Puncer
On 23/10/07 21:39 -0600, Grant Likely wrote: > From: Grant Likely <[EMAIL PROTECTED]> > > port_config and the cdm are the responsibility of firmware; and if > firmware doesn't set it up correctly, it should be fixed up by > platform code on a per-board basis because it's a property of the > board.

Re: [PATCH 0/2] mpc52xx: stop drivers from accessing clock config directly

2007-10-24 Thread Domen Puncer
ever tried SPI on efika. (Are even the right pins on irda connector, or is a necessary line missing?) Domen > > Thanks, > g. > > -- > Grant Likely, B.Sc. P.Eng. > Secret Lab Technolog

Re: [PATCH 0/2] mpc52xx: stop drivers from accessing clock config directly

2007-10-24 Thread Domen Puncer
On 24/10/07 14:14 -0600, Grant Likely wrote: > On 10/24/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > > On 24/10/07 12:24 -0600, Grant Likely wrote: > > > Domen, > > > > > > Here's a real solution to the problem. I've somewhat tested this on &

Re: [PATCH 0/2] mpc52xx: stop drivers from accessing clock config directly

2007-10-25 Thread Domen Puncer
On 24/10/07 14:14 -0600, Grant Likely wrote: > On 10/24/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > > On 24/10/07 12:24 -0600, Grant Likely wrote: > > > Domen, > > > > > > Here's a real solution to the problem. I've somewhat tested this on &

Re: [PATCH v4] FEC - fast ethernet controller for mpc52xx

2007-10-25 Thread Domen Puncer
On 25/10/07 11:57 -0700, Dale Farnsworth wrote: > Domen wrote: > > > use your platform's dma mapping functions, rather than virt_to_phys() > > > > > > it might be the exact same implementation, inside the platform > > > internals, but drivers should not be using this directly. > > > > I've repla

Re: [PATCH] Fix buglets in mpc5200 FEC code that are corrupting memory.

2007-11-09 Thread Domen Puncer
erenced. > > Signed-off-by: Jon Smirl <[EMAIL PROTECTED]> Acked-by: Domen Puncer <[EMAIL PROTECTED]> I can't test it at the moment, but the patch is obviously correct, mapped buffer should be the _same_ as submitted. > > --- > > drivers/net/fec_mpc52