WSL2-Linux-Kernel/drivers/w1/slaves
Maciej Szmigiero 377195c438 W1: w1_therm: release the bus during conversion on externally powered devices
w1_therm devices can either be bus powered or externally powered.

When device is bus powered during temperature conversion the bus
have to be left high to provide necessary power. Some masters also allow
strong power-up to be enabled in this case.
Naturally, no communication over bus can occur during that time.

However, if device has external power then there is no such restriction,
and host can talk to other devices during temperature conversion.

There is command which allows us to check how device is powered,
this patch uses it to release the bus on externally w1_therm powered devices
during temperature conversion.

Also, this changes uninterruptible sleeps there into interruptible ones to
avoid long uninterruptible sleep if w1 subsystem happens to grab bus for
scan during w1_therm_read().

Signed-off-by: Maciej Szmigiero <mhej@o2.pl>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-17 11:47:56 -08:00
..
Kconfig w1: add Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC support 2011-05-26 17:12:38 -07:00
Makefile w1: add Maxim/Dallas DS2780 Stand-Alone Fuel Gauge IC support 2011-05-26 17:12:38 -07:00
w1_bq27000.c hdq: bQ27000 HDQ Slave Interface Driver 2008-11-12 17:17:18 -08:00
w1_ds2408.c w1: fix for loop in w1_f29_remove_slave() 2011-08-25 16:25:33 -07:00
w1_ds2423.c w1: DS2423 counter driver and documentation 2011-01-13 08:03:22 -08:00
w1_ds2431.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
w1_ds2433.c sysfs: add struct file* to bin_attr callbacks 2010-05-21 09:37:31 -07:00
w1_ds2760.c w1: ds2760 and ds2780, use ida for id and ida_simple_get() to get it 2011-11-02 16:07:02 -07:00
w1_ds2760.h w1: ds2760_battery: add support for sleep mode feature 2009-06-08 23:25:17 +04:00
w1_ds2780.c drivers/power/ds2780_battery.c: add a nolock function to w1 interface 2011-11-02 16:07:03 -07:00
w1_ds2780.h drivers/power/ds2780_battery.c: add a nolock function to w1 interface 2011-11-02 16:07:03 -07:00
w1_smem.c MAINTAINERS: Evgeniy has moved 2011-08-25 16:25:33 -07:00
w1_therm.c W1: w1_therm: release the bus during conversion on externally powered devices 2011-11-17 11:47:56 -08:00