2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-28 04:24:34 +08:00
linux-next/drivers/w1
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
..
masters w1-gpio: add external pull-up enable callback 2009-06-18 13:03:58 -07:00
slaves w1: add missing Kconfig/Makefile entries for DS2431 slave driver 2009-02-27 16:26:21 -08:00
Kconfig trivial: Kconfig: .ko is normally not included in module names 2009-06-12 18:01:50 +02:00
Makefile [PATCH] better CONFIG_W1_SLAVE_DS2433_CRC handling 2006-12-07 08:39:43 -08:00
w1_family.c W1: w1_family, remove unused variable need_exit 2008-10-16 11:21:50 -07:00
w1_family.h w1: new driver. DS2431 chip 2008-10-16 11:21:51 -07:00
w1_int.c w1: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:34 -08:00
w1_int.h [PATCH] w1: cleanups. 2005-06-21 21:43:09 -07:00
w1_io.c w1: coding style cleanups in w1_io.c 2009-04-02 19:05:04 -07:00
w1_log.h drivers: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:53 -07:00
w1_netlink.c w1: send status messages after command processing 2009-01-08 08:31:14 -08:00
w1_netlink.h w1: send status messages after command processing 2009-01-08 08:31:14 -08:00
w1.c w1: struct device - replace bus_id with dev_name(), dev_set_name() 2009-01-06 10:44:34 -08:00
w1.h w1: add touch block command 2009-01-08 08:31:13 -08:00