Hi Andy,
Thank you for the review.
On Sat, Dec 25, 2021 at 11:24 AM Andy Shevchenko
[off-list ref] wrote:
On Friday, December 24, 2021, Lad Prabhakar [off-list ref] wrote:
quoted
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.
In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq().
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
From: Andrew Lunn <andrew@lunn.ch> Date: 2021-12-25 15:16:17
quoted
quoted
+ goto err_netdev;
+ BUG_ON(dev->irq < 0);
??? What is this and how it supposed to work?
.. should have been BUG_ON(dev->irq < 0);
Is this fatal to the machine as a whole, now way to recover, all that
can be done is to limit the damage while it explodes?
If not, please use WARN_ON(), not BUG_ON(). There is an email from
Linus about this, not using BUG_ON() in general.
Andrew
Hi Andy,
Thank you for the review.
On Sat, Dec 25, 2021 at 11:24 AM Andy Shevchenko
[off-list ref] wrote:
quoted
On Friday, December 24, 2021, Lad Prabhakar [off-list ref] wrote:
quoted
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.
In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq().
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Hi Heiner,
Thank you for the review.
On Sun, Dec 26, 2021 at 11:15 AM Heiner Kallweit [off-list ref] wrote:
On 25.12.2021 13:19, Lad, Prabhakar wrote:
quoted
Hi Andy,
Thank you for the review.
On Sat, Dec 25, 2021 at 11:24 AM Andy Shevchenko
[off-list ref] wrote:
quoted
On Friday, December 24, 2021, Lad Prabhakar [off-list ref] wrote:
quoted
platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.
In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq().
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
---
drivers/net/ethernet/marvell/pxa168_eth.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)