On 10/05/11 10:40, Guenter Roeck wrote: > On Wed, Oct 05, 2011 at 04:39:01AM -0400, Hennerich, Michael wrote: >> Jonathan Cameron wrote on 2011-09-30: >>> Driver ported over to hwmon where it fits much better. >>> >>> Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxx> >> >> Acked-by: Michael Hennerich <michael.hennerich@xxxxxxxxxx> >> >>> --- >>> Technically there is a slight loss of functionality in the hwmon >>> driver (no power down mode). >>> >>> Otherwise, lets clear this one out. >>> >>> 3 more to go on my removal list ;) >>> adt7310, adt7410 and adt75. >>> > > Just noticed this part. ADT75 is the Analog version of LM75. > Any reason not to use the standard LM75 driver instead ? Fine by me! I didn't realise that was the case. Thanks for pointing it out. Michael, are you happy with simply adding the id to the lm75 driver and dropping the iio one? I can always do the actual patches if that helps. > > On a side note, the iio adt75 driver won't work properly if oneshot is configured. > I'll leave it to the readers to figure out why ;). I dread to think, these few are a mess. > > Regarding the power down mode, shouldn't this be supported using the standard > suspend/resume API with CONFIG_PM ? Or does iio have a parallel mechanism ? It's more a case of run time power management. Suspend support should indeed be in there, but typically people want to shut these chips down if no one cares about them, not just on suspend. Now we can apply heuristics (no one has buffered access open, and any sysfs read is slow enough to bring the chip up from powerdown anyway). Normally that sort of stuff is a little fiddly so we are leaving it to individual drivers to handle. They many also want to notify the core that regulators / buses can be shut down as well. This is particularly true of stateless devices. Power down attributes like in here certainly isn't part of IIO. Some of the uglier drivers do it though. Basically we always knew these adtxx drivers were going to leave IIO so no one has ever worked on them except to keep them compiling. The only stuff we explicitly have is support of individual channel power down on output devices (often have to control what state the pin is left in when powered down). Individual power down may make sense on some input devices (ADCs), but I haven't seen anything that supports it yet. Jonathan -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html