Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237230

Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function

From Mark Brown <broonie@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function
Date 2015-10-01 11:50 +0200
Message-ID <qeIEW-gR-1@gated-at.bofh.it> (permalink)
References <qeFH4-4bi-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, Oct 01, 2015 at 02:33:06AM -0400, jon@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->bus_context, reg, mask, val,
> +					    change, force_write);
> +
>  	ret = _regmap_read(map, reg, &orig);
>  	if (ret != 0)
>  		return ret;

This completely bypasses and therefore breaks the cache infrastructure.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] regmap: Allow installing custom reg_update_bits function jon@ringle.org - 2015-10-01 08:40 +0200
  Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits  function Mark Brown <broonie@kernel.org> - 2015-10-01 11:50 +0200
    Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits  function Jon Ringle <jon@ringle.org> - 2015-10-01 14:30 +0200
      Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits  function Mark Brown <broonie@kernel.org> - 2015-10-02 19:20 +0200

csiph-web