[PATCH v4 1/5] w1: ds1wm: fix register offset (bus shift) calculation

2017-07-25 Thread Johannes Poehlmann
Replace incorrect register offsett calculation by direct configuration of bus_shift in mfd-cell. Indirect definition of address-shift by resource size was unobvious and was wrong (should have used a binary log). Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: E

[PATCH v4 1/5] w1: ds1wm: fix register offset (bus shift) calculation

2017-07-25 Thread Johannes Poehlmann
Replace incorrect register offsett calculation by direct configuration of bus_shift in mfd-cell. Indirect definition of address-shift by resource size was unobvious and was wrong (should have used a binary log). Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1

[PATCH v4 5/5] w1: ds1wm: add messages to make incorporation in mfd-drivers easier

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: add messages to make incorporation in mfd-drivers easier Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-)

[PATCH v4 5/5] w1: ds1wm: add messages to make incorporation in mfd-drivers easier

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: add messages to make incorporation in mfd-drivers easier Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters

[PATCH v4 4/5] w1: ds1wm: silence interrupts on HW before claiming the interrupt

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: silence interrupts on HW before claiming the interrupt. This way avoid possible invalid interrupts in the initialization phase. Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c |

[PATCH v4 4/5] w1: ds1wm: silence interrupts on HW before claiming the interrupt

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: silence interrupts on HW before claiming the interrupt. This way avoid possible invalid interrupts in the initialization phase. Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git

[PATCH v4 3/5] w1: ds1wm: add level interrupt modes

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: add level interrupt modes Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/mas

[PATCH v4 2/5] w1: ds1wm: make endian clean and use standard io memory accessors

2017-07-25 Thread Johannes Poehlmann
-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 60 -- include/linux/mfd/ds1wm.h | 5 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH v4 3/5] w1: ds1wm: add level interrupt modes

2017-07-25 Thread Johannes Poehlmann
w1: ds1wm: add level interrupt modes Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index d15575d..f8a3ba0 100644 --- a/drivers/w1

[PATCH v4 2/5] w1: ds1wm: make endian clean and use standard io memory accessors

2017-07-25 Thread Johannes Poehlmann
-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 60 -- include/linux/mfd/ds1wm.h | 5 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index

[PATCH v4 0/5] w1: ds1wm: register access patch

2017-07-25 Thread Johannes Poehlmann
separate one big patch into two o use bool o use blockcomments o dev_dbg instead of dev_info o rebased to v4.13-rc2 Johannes Poehlmann (5): w1: ds1wm: fix register offset (bus shift) calculation w1: ds1wm: make endian clean and use standard io memory accessors w1: ds1wm: add level interrupt

[PATCH v4 0/5] w1: ds1wm: register access patch

2017-07-25 Thread Johannes Poehlmann
separate one big patch into two o use bool o use blockcomments o dev_dbg instead of dev_info o rebased to v4.13-rc2 Johannes Poehlmann (5): w1: ds1wm: fix register offset (bus shift) calculation w1: ds1wm: make endian clean and use standard io memory accessors w1: ds1wm: add level interrupt

[PATCH v3 3/4] w1: ds1wm: silence interrupts on HW before claiming the interrupt

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 1b37def..7c

[PATCH v3 3/4] w1: ds1wm: silence interrupts on HW before claiming the interrupt

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 1b37def..7cb4460 100644 --- a/drivers/w1/masters/ds1wm.c +++ b/drivers/w1/masters

[PATCH v3 2/4] w1: ds1wm: add level interrupt modes

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 6bba2fe..1b

[PATCH v3 0/4] w1: ds1wm: register access patch

2017-07-18 Thread Johannes Poehlmann
removes unobvious shift constants o moves shift value checking into the probe function o rename variable (fix 'CamelCase' style) Version 3 of the patchset o rebased on v4.13-rc1 and resent to lkml Johannes Poehlmann (4): w1: ds1wm: fix and simplify register access w1: ds1wm: add level interrupt

[PATCH v3 1/4] w1: ds1wm: fix and simplify register access

2017-07-18 Thread Johannes Poehlmann
of __raw_readb,__raw_writeb to also use memory-barriers when accessing HW-registers. We do not want reordering to happen here. Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/

[PATCH v3 2/4] w1: ds1wm: add level interrupt modes

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 6bba2fe..1b37def 100644 --- a/drivers/w1/masters/ds1wm.c +++ b/drivers/w1/masters

[PATCH v3 0/4] w1: ds1wm: register access patch

2017-07-18 Thread Johannes Poehlmann
removes unobvious shift constants o moves shift value checking into the probe function o rename variable (fix 'CamelCase' style) Version 3 of the patchset o rebased on v4.13-rc1 and resent to lkml Johannes Poehlmann (4): w1: ds1wm: fix and simplify register access w1: ds1wm: add level interrupt

[PATCH v3 1/4] w1: ds1wm: fix and simplify register access

2017-07-18 Thread Johannes Poehlmann
of __raw_readb,__raw_writeb to also use memory-barriers when accessing HW-registers. We do not want reordering to happen here. Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 84 ++ include/linux/mfd/ds1wm.h | 9

[PATCH v3 4/4] w1: ds1wm: add messages to make incorporation in mfd-drivers easier

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann <johannes.poehlm...@izt-labs.de> Acked-by: Evgeniy Polyakov <z...@ioremap.net> --- drivers/w1/masters/ds1wm.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c i

[PATCH v3 4/4] w1: ds1wm: add messages to make incorporation in mfd-drivers easier

2017-07-18 Thread Johannes Poehlmann
Signed-off-by: Johannes Poehlmann Acked-by: Evgeniy Polyakov --- drivers/w1/masters/ds1wm.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/w1/masters/ds1wm.c b/drivers/w1/masters/ds1wm.c index 7cb4460..76b4573 100644 --- a/drivers/w1/masters/ds1wm.c