OSDN Git Service

w1: Disable irqs during 1-wire bus operations, extend 1-wire reset pulse
authorMarkus Franke <markus.franke@s2002.tu-chemnitz.de>
Wed, 11 Apr 2012 22:42:03 +0000 (00:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Apr 2012 23:44:10 +0000 (16:44 -0700)
commit8f1e12512e9f1276b68c8b14a60961658c73336f
tree370742441c08ea56dae64e9d7cfa9b53bad3d75a
parentf19420c1acb0b573c88a12deb2d42035e22d4a17
w1: Disable irqs during 1-wire bus operations, extend 1-wire reset pulse

This patch offers the possibility to disables irqs during w1_write_bit()
and w1_reset_bus() operations as timing requirements are very strict for
the 1-wire bus protocol. Per default interrupts are enabled but can be
disabled via the module parameter "w1_disable_irqs".

Extend 1-wire reset pulse length from 480us to 500us as 480us is the
minimum requirement for the 1-wire reset/presence pulse.

Signed-off-by: Markus Franke <franm@hrz.tu-chemnitz.de>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/w1/w1_io.c