Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-14 Thread David Gibson
On Fri, Sep 14, 2007 at 12:21:14PM +0400, Vitaly Bordug wrote: > Hello David, > > On Fri, 14 Sep 2007 14:09:34 +1000 > David Gibson wrote: > > > On Thu, Sep 13, 2007 at 12:16:40PM +0400, Vitaly Bordug wrote: > > [snip] > > > > This looks bogus. You're replacing the old crap immr_map() functions,

Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-14 Thread Vitaly Bordug
Hello David, On Fri, 14 Sep 2007 14:09:34 +1000 David Gibson wrote: > On Thu, Sep 13, 2007 at 12:16:40PM +0400, Vitaly Bordug wrote: > [snip] > > > This looks bogus. You're replacing the old crap immr_map() functions, > > > which ioremap()ed the registers every time, with a much simpler > > > ve

Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-13 Thread David Gibson
On Thu, Sep 13, 2007 at 12:16:40PM +0400, Vitaly Bordug wrote: [snip] > > This looks bogus. You're replacing the old crap immr_map() functions, > > which ioremap()ed the registers every time, with a much simpler > > version which uses an established-once mapping of the register > > region. AFAICT

Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-13 Thread Scott Wood
On Thu, Sep 13, 2007 at 05:11:25PM +1000, David Gibson wrote: > > -#define immr_unmap(addr) iounmap(addr) > > +#define immr_map(member) (&mpc8xx_immr->member) > > +#define immr_map_size(member, size) (&mpc8xx_immr->member) > > +#define immr_unmap(addr) iounmap(addr) > > This looks bogus.

Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-13 Thread Vitaly Bordug
On Thu, 13 Sep 2007 17:11:25 +1000 David Gibson wrote: > Didn't notice this before - only when some yak shaving led me into > looking at the horrors of the 8xx imm mapping code... > > But.. > [snip] > > diff --git a/include/asm-powerpc/fs_pd.h > > b/include/asm-powerpc/fs_pd.h index c624915..733e

Re: [PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-13 Thread David Gibson
Didn't notice this before - only when some yak shaving led me into looking at the horrors of the 8xx imm mapping code... But.. [snip] > diff --git a/include/asm-powerpc/fs_pd.h b/include/asm-powerpc/fs_pd.h > index c624915..733e8cb 100644 > --- a/include/asm-powerpc/fs_pd.h > +++ b/include/asm-pow

[PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-09-05 Thread Scott Wood
1. Keep a global mpc8xx_immr mapping, rather than constantly creating temporary mappings. 2. Look for new fsl,cpm1 and fsl,cpm1-pic names. 3. Always reset the CPM when not using the udbg console; this is required in case the firmware initialized a device that is incompatible with one that the kerne

[PATCH 2/9] 8xx: Infrastructure code cleanup.

2007-08-28 Thread Scott Wood
1. Keep a global mpc8xx_immr mapping, rather than constantly creating temporary mappings. 2. Look for new fsl,cpm1 and fsl,cpm1-pic names. 3. Always reset the CPM when not using the udbg console; this is required in case the firmware initialized a device that is incompatible with one that the kerne