[PATCH v2 1/2] pinctrl: pinctrl-imx: add support for set bits for general purpose registers

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Jul 17 14:24:34 EDT 2012


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.



More information about the linux-arm-kernel mailing list