Re: [PATCH] drivers/gpio/bt8xxgpio.c Fix compilation warning.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael Buesch
Date: Thursday, October 2, 2008 - 1:22 am

On Thursday 02 October 2008 08:59:11 Rakib Mullick wrote:

NACK.
gpiolib should be fixed.
It is impossible to handle this case. What your patch does is to leave the device
in an inconsistent state, if the gpio remove fails.

gpiolib is broken. It should not allow failure for the remove function, as most
callers cannot handle it. gpiolib should force-remove any users of the gpio line,
if the chip driver removes the chip. That's really the only way we can fix this.
Breaking the driver (to leak resources or leave the device in an inconsistent state)
just to get rid of a bogus warning is not the right fix.
Please ignore this warning for now.

-- 
Greetings Michael.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] drivers/gpio/bt8xxgpio.c Fix compilation warning., Rakib Mullick, (Wed Oct 1, 11:59 pm)
Re: [PATCH] drivers/gpio/bt8xxgpio.c Fix compilation warning., Michael Buesch, (Thu Oct 2, 1:22 am)