On Tue, Jul 17, 2012 at 08:15:40PM +0200, Linus Walleij wrote:

> u32 db8500_prcmu_read(unsigned int reg);
> void db8500_prcmu_write(unsigned int reg, u32 value);
> void db8500_prcmu_write_masked(unsigned int reg, u32 mask, u32 value);

> The third function is an oddity which performs read-modify-write
> on the other side (firmware).

Not so odd - a very high proportion of APIs like this have a r/m/w
operation as there's usually a requirement for doing the updates
atomically.
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to