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
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
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 a
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
: 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
ry patch
o 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
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
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
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
__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
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
11 matches
Mail list logo