Re: [PATCH] of: unittest: Use platform_get_irq_optional() for non-existing interrupt

2019-10-17 Thread Frank Rowand
On 10/17/2019 07:51, Rob Herring wrote: > On Thu, Oct 17, 2019 at 1:59 AM Geert Uytterhoeven > wrote: >> >> Hi Stephen, >> >> On Thu, Oct 17, 2019 at 1:23 AM Stephen Boyd wrote: >>> Quoting Geert Uytterhoeven (2019-10-16 07:31:42) diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c >

Re: [PATCH] of: unittest: Use platform_get_irq_optional() for non-existing interrupt

2019-10-17 Thread Rob Herring
On Thu, Oct 17, 2019 at 1:59 AM Geert Uytterhoeven wrote: > > Hi Stephen, > > On Thu, Oct 17, 2019 at 1:23 AM Stephen Boyd wrote: > > Quoting Geert Uytterhoeven (2019-10-16 07:31:42) > > > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c > > > index 9efae29722588a35..34da22f8b0660989 10

Re: [PATCH] of: unittest: Use platform_get_irq_optional() for non-existing interrupt

2019-10-16 Thread Geert Uytterhoeven
Hi Stephen, On Thu, Oct 17, 2019 at 1:23 AM Stephen Boyd wrote: > Quoting Geert Uytterhoeven (2019-10-16 07:31:42) > > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c > > index 9efae29722588a35..34da22f8b0660989 100644 > > --- a/drivers/of/unittest.c > > +++ b/drivers/of/unittest.c > >

Re: [PATCH] of: unittest: Use platform_get_irq_optional() for non-existing interrupt

2019-10-16 Thread Stephen Boyd
Quoting Geert Uytterhoeven (2019-10-16 07:31:42) > diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c > index 9efae29722588a35..34da22f8b0660989 100644 > --- a/drivers/of/unittest.c > +++ b/drivers/of/unittest.c > @@ -1121,7 +1121,7 @@ static void __init of_unittest_platform_populate(void)

[PATCH] of: unittest: Use platform_get_irq_optional() for non-existing interrupt

2019-10-16 Thread Geert Uytterhoeven
As platform_get_irq() now prints an error when the interrupt does not exist, a scary warning may be printed for a non-existing interrupt: platform testcase-data:testcase-device2: IRQ index 0 not found Fix this by calling platform_get_irq_optional() instead. Fixes: 7723f4c5ecdb8d83 ("driver c