Thread (11 messages) 11 messages, 5 authors, 2015-03-18

[PATCH] pinctrl: at91: move lock/unlock_as_irq calls into request/release resources methods

From: Nicolas Ferre <hidden>
Date: 2015-03-10 08:34:41
Also in: linux-gpio, lkml

Le 09/03/2015 17:14, Linus Walleij a ?crit :
On Sun, Feb 8, 2015 at 7:23 PM, Boris Brezillon
[off-list ref] wrote:
quoted
The gpiochip_lock_as_irq call can fail and return an error, while the
irq_startup is not expected to fail (returns an unsigned int which is not
checked by irq core code).

irq_request/release_resources functions have been created to address this
problem.

Move gpiochip_lock/unlock_as_irq calls into
irq_request/release_resources functions to prevent using a gpio as an irq
if the gpiochip_lock_as_irq call failed.

Signed-off-by: Boris Brezillon <redacted>
Patch applied with all the ACKs.
Hi Linus,

As suggested earlier, do you think it can be scheduled for the 4.0-rc
phase as a "fix"?

Bye,


Happy new year J-C!

Yours,
Linus Walleij

-- 
Nicolas Ferre
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help