]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
hpilo: open/close fix
authorDavid Altobelli <david.altobelli@hp.com>
Wed, 4 Feb 2009 23:11:58 +0000 (15:11 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Feb 2009 20:56:46 +0000 (12:56 -0800)
commitc073b2db006ba9370be1eecc36a1be1d9ce31310
tree6aed14266d19840b943d9e14c4bdeb3830296ec9
parent58763a297405024d23d8f1d0bba3e6603660c4b6
hpilo: open/close fix

The device can take a while to respond to an open/close request, so
increase the time kernel will wait for response (1 ms to 10ms).

Also, properly clean up a channel on a failed open, by calling the channel
close routine.  Just freeing the memory isn't sufficient, the device needs
to be informed that the channel is no longer open, and the device memory
cleared of references to freed dma buffer.

Signed-off-by: David Altobelli <david.altobelli@hp.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/hpilo.c
drivers/misc/hpilo.h