Re: [PATCH v2 06/10] net: stmmac: Add Loongson HWIF entry
From: Feiyang Chen <hidden>
Date: 2023-08-03 01:34:02
Also in:
loongarch
On Mon, Jul 31, 2023 at 11:16 PM Russell King (Oracle) [off-list ref] wrote:
On Mon, Jul 31, 2023 at 05:46:57PM +0800, Feiyang Chen wrote:quoted
On Fri, Jul 28, 2023 at 5:24 PM Russell King (Oracle) [off-list ref] wrote:quoted
On Thu, Jul 27, 2023 at 03:18:06PM +0800, Feiyang Chen wrote:quoted
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index e8619853b6d6..829de274e75d 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c@@ -3505,17 +3505,21 @@ static int stmmac_request_irq_multi_msi(struct net_device *dev) { struct stmmac_priv *priv = netdev_priv(dev); enum request_irq_err irq_err; + unsigned long flags = 0; cpumask_t cpu_mask; int irq_idx = 0; char *int_name; int ret; int i; + if (priv->plat->has_lgmac) + flags |= IRQF_TRIGGER_RISING;Can this be described in firmware?Hi, Russell, I'm not sure, could you explain what you mean?Modern systems describe the IRQ triggering in firmware for the OS such as DT. Does your implementation have any firmware that can do this kind of description for you (e.g. DT, ACPI?)
Hi, Russell, I see. I think I can get this from DT. Thanks, Feiyang
-- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!