[PATCH 1/2] V4 regmap: Use reg_sequence for multi_reg_write / register_patch

2015-07-14 Thread Nariman Poushin
substantially. This also updates all the clients of multi_reg_write/register_patch. Signed-off-by: Nariman Poushin --- drivers/base/regmap/internal.h | 2 +- drivers/base/regmap/regmap.c | 22 +++--- drivers/gpu/drm/i2c/adv7511.c | 2 +- drivers/input/misc/drv260x.c | 6

[PATCH 2/2] V4 regmap: Apply optional delay in multi_reg_write/register_patch

2015-07-14 Thread Nariman Poushin
We treat a delay in a sequence the same way we treat a page change as they are logically similar in that you can coalesce all write before a delay (in the same way you can coalesce all writes before a page change is needed) Signed-off-by: Nariman Poushin --- drivers/base/regmap/regmap.c | 65

[alsa-devel] [PATCH 1/2] V4 regmap: Use reg_sequence for multi_reg_write / register_patch

2015-07-16 Thread Nariman Poushin
On Thu, Jul 16, 2015 at 01:52:54PM +0100, Mark Brown wrote: > On Tue, Jul 14, 2015 at 03:45:51PM +0100, Nariman Poushin wrote: > > Please submit patches in the format covered in SubmittingPatches, > version information goes inside the []. > > > Add support for writing s

[PATCH 2/2 V5] regmap: Apply optional delay in multi_reg_write/register_patch

2015-07-16 Thread Nariman Poushin
before a delay (in the same way you can coalesce all writes before a page change is needed) Signed-off-by: Nariman Poushin --- drivers/base/regmap/regmap.c | 54 +++- include/linux/regmap.h | 5 +++- 2 files changed, 52 insertions(+), 7 deletions

[PATCH 1/2 V5] regmap: Use reg_sequence for multi_reg_write / register_patch

2015-07-16 Thread Nariman Poushin
adding an int to all register defaults, which could substantially increase memory usage for regmaps with large default tables. This also updates all the clients of multi_reg_write/register_patch. Signed-off-by: Nariman Poushin --- drivers/base/regmap/internal.h | 2 +- drivers/base/regmap