Submitting patches for new LPC313x machine support

Paulius Zaleckas paulius.zaleckas at gmail.com
Thu Nov 12 06:06:44 EST 2009


On 11/12/2009 04:10 AM, Durgesh Pattamatta wrote:
> Hi All,

[...]

> We have used 'mach-lh7a40x' as an example in accessing registers. But other mach- use
> readl()/writel() routines to access chip registers. Is 'mach-lh7a40x' technique acceptable?

Please use readl()/writel() or even __raw_readl()/__raw_writel()
depending on how bus endianess is/isn't changed.

'mach-lh7a40x' technique hides important details about atomicity of
these register manipulations.

> Regards,
> Durgesh




More information about the linux-arm-kernel mailing list