On Thu, Oct 01, 2015 at 08:29:19AM -0400, Jon Ringle wrote:
> On Thu, 1 Oct 2015, Mark Brown wrote:
> > This completely bypasses and therefore breaks the cache infrastructure.
> Right after sending the v2 patch, I realized that calling the
> custom reg_update_bits would only be applicable for re
On Thu, 1 Oct 2015, Mark Brown wrote:
> On Thu, Oct 01, 2015 at 02:33:06AM -0400, j...@ringle.org wrote:
>
> > @@ -2509,6 +2510,10 @@ static int _regmap_update_bits(struct regmap *map,
> > unsigned int reg,
> > int ret;
> > unsigned int tmp, orig;
> >
> > + if (map->reg_update_bits
On Thu, Oct 01, 2015 at 02:33:06AM -0400, j...@ringle.org wrote:
> @@ -2509,6 +2510,10 @@ static int _regmap_update_bits(struct regmap *map,
> unsigned int reg,
> int ret;
> unsigned int tmp, orig;
>
> + if (map->reg_update_bits)
> + return map->reg_update_bits(map->
From: Jon Ringle
This commit allows installing a custom reg_update_bits function for cases where
the hardware provides a mechanism to set or clear register bits without a
read/modify/write cycle. Such is the case with the Microchip ENCX24J600.
Signed-off-by: Jon Ringle
---
drivers/base/regmap/