mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/4] w1: mxc_w1: Fix incorrect "presence" status
@ 2014-05-08  7:56 Alexander Shiyan
  2014-05-08  7:56 ` [PATCH 2/4] w1: mxc_w1: Optimize mxc_w1_ds2_reset_bus() Alexander Shiyan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Shiyan @ 2014-05-08  7:56 UTC (permalink / raw)
  To: linux-kernel; +Cc: Evgeniy Polyakov, Sascha Hauer, Shawn Guo, Alexander Shiyan

W1 reset_bus() should return zero if slave device is present.
This patch fix this issue.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
Please apply this patch to current -rc if it possible.
---
 drivers/w1/masters/mxc_w1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c
index 67b067a..a5df5e8 100644
--- a/drivers/w1/masters/mxc_w1.c
+++ b/drivers/w1/masters/mxc_w1.c
@@ -66,7 +66,7 @@ static u8 mxc_w1_ds2_reset_bus(void *data)
 
 		udelay(100);
 	}
-	return !!(reg_val & MXC_W1_CONTROL_PST);
+	return !(reg_val & MXC_W1_CONTROL_PST);
 }
 
 /*
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-08  7:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-08  7:56 [PATCH 1/4] w1: mxc_w1: Fix incorrect "presence" status Alexander Shiyan
2014-05-08  7:56 ` [PATCH 2/4] w1: mxc_w1: Optimize mxc_w1_ds2_reset_bus() Alexander Shiyan
2014-05-08  7:56 ` [PATCH 3/4] w1: mxc_w1: Perform a software reset at startup Alexander Shiyan
2014-05-08  7:56 ` [PATCH 4/4] w1: mxc_w1: Optimize mxc_w1_ds2_touch_bit() Alexander Shiyan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®