Daniel Mack
c8a06c1ef0
w1-gpio: add external pull-up enable callback
...
On embedded devices, sleep mode conditions can be tricky to handle,
Especially when processors tend to pull-down the w1 bus during sleep. Bus
slaves (such as the ds2760) may interpret this as a reason for power-down
conditions and entirely switch off the device.
This patch adds a callback function pointer to let users switch on and off
the external pull-up resistor. This lets the outside world know whether
the processor is currently actively driving the bus or not.
When this callback is not provided, the code behaviour won't change.
Signed-off-by: Daniel Mack <daniel@caiaq.de >
Acked-by: Ville Syrjala <syrjala@sci.fi >
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-06-18 13:03:58 -07:00
..
2009-06-14 13:42:43 -07:00
2009-06-18 13:03:44 -07:00
2009-06-17 19:41:52 +02:00
2009-06-16 19:14:16 -03:00
2009-06-15 11:18:26 +01:00
2009-06-18 13:03:42 -07:00
2009-06-15 21:44:50 -07:00
2009-06-17 00:36:36 -04:00
2009-06-15 16:47:21 +10:00
2009-06-16 08:23:52 +02:00
2009-06-16 19:47:48 -07:00
2009-06-15 15:49:34 +02:00
2009-06-13 22:42:59 +02:00
2009-06-11 21:36:09 -04:00
2009-06-18 13:03:57 -07:00
2009-06-12 21:46:57 +09:30
2009-06-16 19:47:31 -07:00
2009-06-11 21:36:10 -04:00
2009-06-11 21:36:06 -04:00
2009-06-15 21:30:25 -07:00
2009-06-17 09:33:49 -07:00
2009-06-15 21:30:26 -07:00
2009-06-16 19:48:01 -07:00
2009-06-14 14:23:42 +02:00
2009-06-16 19:47:28 -07:00
2009-06-15 21:30:25 -07:00
2009-06-16 19:50:13 -07:00
2009-06-18 13:03:42 -07:00
2009-06-15 21:30:25 -07:00
2009-06-16 19:50:13 -07:00
2009-06-16 19:47:41 -07:00
2009-06-13 12:00:26 +02:00
2009-06-16 19:47:36 -07:00
2009-06-13 10:39:28 +01:00
2009-06-15 03:02:23 -07:00
2009-06-16 19:47:28 -07:00
2009-06-18 13:03:57 -07:00
2009-06-15 15:50:49 +02:00
2009-06-18 13:03:56 -07:00
2009-06-15 03:02:23 -07:00
2009-06-18 13:03:40 -07:00
2009-06-16 12:57:37 -07:00
2009-06-14 13:50:36 -07:00
2009-06-15 15:49:23 +02:00
2009-06-12 22:27:11 +09:30
2009-06-12 22:27:03 +09:30
2009-06-16 19:47:57 -07:00
2009-06-16 19:47:57 -07:00
2009-06-13 12:28:57 +02:00
2009-06-11 21:36:10 -04:00
2009-06-16 19:47:48 -07:00
2009-06-18 13:03:47 -07:00
2009-06-16 08:40:20 +02:00
2009-06-15 21:30:25 -07:00
2009-06-16 19:50:13 -07:00
2009-06-16 19:47:44 -07:00
2009-06-16 19:47:42 -07:00
2009-06-18 13:03:57 -07:00
2009-06-12 21:46:58 +09:30
2009-06-11 21:36:02 -04:00
2009-06-11 21:36:01 -04:00
2009-06-15 03:02:23 -07:00
2009-06-15 21:44:43 -07:00
2009-06-16 19:47:35 -07:00
2009-06-12 11:00:54 +03:00
2009-06-17 08:30:15 +03:00
2009-06-16 19:47:42 -07:00
2009-06-15 21:44:48 -07:00
2009-06-15 21:44:44 -07:00
2009-06-12 14:28:52 +02:00
2009-06-15 21:30:24 -07:00
2009-06-12 21:32:31 +02:00
2009-06-16 19:47:48 -07:00
2009-06-11 21:36:01 -04:00
2009-06-18 13:03:51 -07:00
2009-06-11 21:36:12 -04:00
2009-06-11 21:36:04 -04:00
2009-06-16 19:47:30 -07:00
2009-06-18 13:03:46 -07:00
2009-06-18 13:03:48 -07:00
2009-06-15 15:49:37 +02:00
2009-06-16 19:47:44 -07:00
2009-06-18 13:03:55 -07:00
2009-06-18 13:03:57 -07:00
2009-06-16 13:09:51 -07:00
2009-06-13 08:58:43 +02:00
2009-06-15 15:50:49 +02:00
2009-06-12 18:53:33 +03:00
2009-06-12 18:53:33 +03:00
2009-06-16 19:47:48 -07:00
2009-06-12 23:04:12 +02:00
2009-06-12 21:32:33 +02:00
2009-06-18 13:03:47 -07:00
2009-06-16 19:47:52 -07:00
2009-06-13 12:00:26 +02:00
2009-06-16 19:47:27 -07:00
2009-06-18 13:03:49 -07:00
2009-06-15 21:30:28 -07:00
2009-06-12 18:01:45 +02:00
2009-06-16 13:06:10 -07:00
2009-06-16 19:47:47 -07:00
2009-06-16 19:07:42 -03:00
2009-06-12 22:16:38 +09:30
2009-06-12 22:16:37 +09:30
2009-06-12 22:16:39 +09:30
2009-06-12 22:16:36 +09:30
2009-06-16 19:47:52 -07:00
2009-06-16 19:47:46 -07:00
2009-06-18 13:03:58 -07:00
2009-06-11 21:36:03 -04:00