On Thu, May 22, 2008 at 09:35:29PM +0100, Alan Cox wrote:
In principle, no issues with the patch, and I'd ack it. However, I've
made some comments about whether the BKL is needed in all these places.
Whether your intention is just to push the BKL down or to actually
eliminate it will of course determine whether you want to delete those.
These two should stay since there's no other protection against reading half
the state in one thread while another writes the state (where state is
the high/low trip points for the fan speed.)
ds1620_in() is protected by a spinlock internally, and cvt_9_to_int
is just a conversion function, so not required.
ds1620_in() is protected by a spinlock internally, so not required.
Not required - netwinder_get_fan() essentially just reads a pair of
GPIO registers and reports the state of the GPIO.
Not needed - the internals of netwinder_set_fan() takes a spinlock.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:
--