Thread (3 messages) flat view 3 messages, 3 authors, 2014-05-02

Re: [PATCH v2 for v3.15] net: mvmdio: Check for a valid interrupt instead of an error

From: David Miller <davem@davemloft.net>
Date: 2014-05-02 20:19:26

From: Ezequiel Garcia <redacted>
Date: Wed, 30 Apr 2014 13:28:51 -0300
The following commit:

commit 9ec36cafe43bf835f8f29273597a5b0cbc8267ef
Author: Rob Herring [off-list ref]
Date:   Wed Apr 23 17:57:41 2014 -0500

    of/irq: do irq resolution in platform_get_irq

changed platform_get_irq() which now returns EINVAL and EPROBE_DEFER,
in addition to ENXIO. If there's no interrupt for mvmdio, platform_get_irq()
returns EINVAL, but we currently check only for ENXIO.

Fix this by looking for a positive integer, which is the proper way of
validating a virtual interrupt number.

While at it, add a proper handling for the deferral probe case.

Signed-off-by: Ezequiel Garcia <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help