diff options
author | Maciej Szmigiero <mhej@o2.pl> | 2011-11-16 00:43:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-17 11:47:56 -0800 |
commit | 377195c438fc5e9e4ca59e69382c10771d817d6a (patch) | |
tree | 64ae50d55bf8c36ba50ab16e19895ce9e1c985fe /kernel/smp.c | |
parent | 65e6757be42ddf0a9115ec0e6af268fec9727359 (diff) | |
download | linux-377195c438fc5e9e4ca59e69382c10771d817d6a.tar.gz linux-377195c438fc5e9e4ca59e69382c10771d817d6a.tar.bz2 linux-377195c438fc5e9e4ca59e69382c10771d817d6a.zip |
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>
Diffstat (limited to 'kernel/smp.c')
0 files changed, 0 insertions, 0 deletions