From: Sergei Shtylyov <hidden> Date: 2017-07-29 19:52:25
of_irq_to_resource() has recently been fixed to return negative error #'s
along with 0 in case of failure, however the Freescale MPC832x RDB board
code still only regards 0 as as failure indication -- fix it up.
Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <redacted>
---
The patch is against the 'master' branch of Scott Wood's 'linux.git' repo
(the 'fixes' branch is too much behind).
arch/powerpc/platforms/83xx/mpc832x_rdb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux/arch/powerpc/platforms/83xx/mpc832x_rdb.c
===================================================================
From: Scott Wood <oss@buserror.net> Date: 2017-07-30 01:52:03
On Sat, 2017-07-29 at 22:52 +0300, Sergei Shtylyov wrote:
of_irq_to_resource() has recently been fixed to return negative error #'s
along with 0 in case of failure, however the Freescale MPC832x RDB board
code still only regards 0 as as failure indication -- fix it up.
Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <redacted>
---
The patch is against the 'master' branch of Scott Wood's 'linux.git' repo
(the 'fixes' branch is too much behind).
The master branch is also old. Those branches are only used when needed to
apply patches; I don't update them just to sync up. If they're older than
what's in Michael's or Linus's tree (as they almost always are), then use
those instead.
Not that I expect it to make a difference to this patch...
-Scott
From: Michael Ellerman <mpe@ellerman.id.au> Date: 2017-07-31 10:04:48
Scott Wood [off-list ref] writes:
On Sat, 2017-07-29 at 22:52 +0300, Sergei Shtylyov wrote:
quoted
of_irq_to_resource() has recently been=C2=A0=C2=A0fixed to return negati=
ve error #'s
quoted
along with 0 in case of failure,=C2=A0=C2=A0however the Freescale MPC832=
x RDB board
quoted
code still only regards 0 as as failure indication -- fix it up.
=20
Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <redacted>
=20
---
The patch is against the 'master' branch of Scott Wood's 'linux.git' repo
(the 'fixes' branch is too much behind).
The master branch is also old. Those branches are only used when needed =
to
apply patches; I don't update them just to sync up. If they're older than
what's in Michael's or Linus's tree (as they almost always are), then use
those instead.
Not that I expect it to make a difference to this patch...
Do you want me to grab this as a fix for 4.13 ?
cheers
From: Scott Wood <oss@buserror.net> Date: 2017-08-02 04:04:56
On Mon, 2017-07-31 at 20:04 +1000, Michael Ellerman wrote:
Scott Wood [off-list ref] writes:
quoted
On Sat, 2017-07-29 at 22:52 +0300, Sergei Shtylyov wrote:
quoted
of_irq_to_resource() has recently been fixed to return negative error
#'s
along with 0 in case of failure, however the Freescale MPC832x RDB
board
code still only regards 0 as as failure indication -- fix it up.
Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in
of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <redacted>
---
The patch is against the 'master' branch of Scott Wood's 'linux.git'
repo
(the 'fixes' branch is too much behind).
The master branch is also old. Those branches are only used when needed
to
apply patches; I don't update them just to sync up. If they're older than
what's in Michael's or Linus's tree (as they almost always are), then use
those instead.
Not that I expect it to make a difference to this patch...
Do you want me to grab this as a fix for 4.13 ?
Sure:
Acked-by: Scott Wood <oss@buserror.net>
-Scott
From: Michael Ellerman <hidden> Date: 2017-08-03 10:19:41
On Sat, 2017-07-29 at 19:52:09 UTC, Sergei Shtylyov wrote:
of_irq_to_resource() has recently been fixed to return negative error #'s
along with 0 in case of failure, however the Freescale MPC832x RDB board
code still only regards 0 as as failure indication -- fix it up.
Fixes: 7a4228bbff76 ("of: irq: use of_irq_get() in of_irq_to_resource()")
Signed-off-by: Sergei Shtylyov <redacted>
Acked-by: Scott Wood <oss@buserror.net>