lkml.org 
[lkml]   [2015]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/4][RFC] regmap: add force write option
Date

Hi Mark

Current _regmap_update_bits() writes data to register if current value and
write value was different. This means it doesn't write data if the value was
same as current value.
But, some device needs to write data even though it was same value.

This RFC patch-set adds new "force_write" option on _regmap_update_bits()
for this issue, but it focuses only 1 regmap write function at this point,
because there are many regmap_xxx_write_yyy() functions.
I can care all of regmap_xxx_write_yyy() functions in formal patch-set if
this RFC patch idea was OK.

What do you think about this idea ?

Kuninori Morimoto (4):
regmap: add force_write option on _regmap_update_bits()
regmap: add regmap_write_bits()
regmap: add regmap_fields_force_write()
ASoC: rsnd: gen: add rsnd_force_write()

drivers/base/regmap/regmap.c | 51 +++++++++++++++++++++++++++++++++++++++++++--------
include/linux/regmap.h | 11 +++++++++++
sound/soc/sh/rcar/gen.c | 16 ++++++++++++++++
sound/soc/sh/rcar/rsnd.h | 4 ++++
4 files changed, 74 insertions(+), 8 deletions(-)


Best regards
---
Kuninori Morimoto


\
 
 \ /
  Last update: 2015-06-16 11:21    [W:0.126 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site