Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: systemport: Fix missing Wake-on-LAN interrupt for SYSTEMPORT Lite

On SYSTEMPORT Lite, since we have the main interrupt source in the first
cell, the second cell is the Wake-on-LAN interrupt, yet the code was not
properly updated to fetch the second cell, and instead looked at the
third and non-existing cell for Wake-on-LAN.

Fixes: 44a4524c54af ("net: systemport: Add support for SYSTEMPORT Lite")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
d31353cd 58a69606

+5 -2
+5 -2
drivers/net/ethernet/broadcom/bcmsysport.c
··· 2026 2026 priv->num_rx_desc_words = params->num_rx_desc_words; 2027 2027 2028 2028 priv->irq0 = platform_get_irq(pdev, 0); 2029 - if (!priv->is_lite) 2029 + if (!priv->is_lite) { 2030 2030 priv->irq1 = platform_get_irq(pdev, 1); 2031 - priv->wol_irq = platform_get_irq(pdev, 2); 2031 + priv->wol_irq = platform_get_irq(pdev, 2); 2032 + } else { 2033 + priv->wol_irq = platform_get_irq(pdev, 1); 2034 + } 2032 2035 if (priv->irq0 <= 0 || (priv->irq1 <= 0 && !priv->is_lite)) { 2033 2036 dev_err(&pdev->dev, "invalid interrupts\n"); 2034 2037 ret = -EINVAL;