[PATCH] arch/powerpc/lib/copy_32.S: Use alternate memcpy for MPC512x and MPC52xx

Scott Wood scottwood at freescale.com
Fri Jul 9 06:09:04 EST 2010


On Thu, 8 Jul 2010 21:30:33 +0200
Segher Boessenkool <segher at kernel.crashing.org> wrote:

> > Actually, this is something which might need closer attention -
> > and maybe some support in the device tree indicating which read or  
> > write width a device can accept?
> 
> There already is "device-width"; the drivers never should use any
> other access width unless they *know* that will work.

Wouldn't you want to use "bank-width" instead?  "device-width" might
not even work if, say, you've got two 8-bit chips interleaved, feeding
into a bus controller in 16-bit mode that only accepts 16-bit accesses.

It would be nice to have a device tree property that can specify that
all access widths supported by the CPU will work, though.

-Scott


More information about the Linuxppc-dev mailing list