> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Geert Uytterhoeven
> Sent: Thursday, September 09, 2010 19:06 PM
> To: Zang Roy-R61911
> Cc: [email protected]; Wood Scott-B07421; [email protected]; Lan
> Chunhe-B25806; [email protected]; [email protected];
> [email protected]; Gala Kumar-B11780
> Subject: Re: [PATCH v2 3/3][MTD] P4080/mtd: Fix the freescale lbc issue with
> 36bit mode
> 
> On Thu, Sep 9, 2010 at 12:20, Roy Zang <[email protected]> wrote:
> > From: Lan Chunhe-B25806 <[email protected]>
> >
> > When system uses 36bit physical address, res.start is 36bit
> > physical address. But the function of in_be32 returns 32bit
> > physical address. Then both of them compared each other is
> > wrong. So by converting the address of res.start into
> > the right format fixes this issue.
> 
> >  /**
> > + * fsl_lbc_addr - convert the base address
> > + * @addr_base: base address of the memory bank
> > + *
> > + * This function converts a base address of lbc into the right format for
> the BR
> > + * registers. If the SOC has eLBC then it returns 32bit physical address
> else
> > + * it returns 34bit physical address for local bus(Example: MPC8641).
> > + */
> > +unsigned int fsl_lbc_addr(phys_addr_t addr_base)
>     ^^^^^^^^^^^^
> Shouldn't this be u32 or __be32, for consistency with the actual
> comparisons below?
__be32 is better.
Thanks.
Roy
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to