]> git.baikalelectronics.ru Git - kernel.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)
commit48fe08bf00a6b922b2b390f39dd3f09ce337ffee
tree6aed14266d19840b943d9e14c4bdeb3830296ec9
parent757e32b10b972c6ed96031e2f46f5dfce73839cf
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