]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: platform: Fix misleading interrupt error msg
authorMarkus Fuchs <mklntf@gmail.com>
Fri, 6 Mar 2020 16:38:48 +0000 (17:38 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:00:28 +0000 (21:00 -0700)
commit16db191e3ef6944505da23b1a00d196ea957e920
treeb2de66c946ac054018f01aef3cab1c59e5a2510f
parentf74678a19ddb4a8b54cc87bd7324308d1e785071
net: stmmac: platform: Fix misleading interrupt error msg

Not every stmmac based platform makes use of the eth_wake_irq or eth_lpi
interrupts. Use the platform_get_irq_byname_optional variant for these
interrupts, so no error message is displayed, if they can't be found.
Rather print an information to hint something might be wrong to assist
debugging on platforms which use these interrupts.

Signed-off-by: Markus Fuchs <mklntf@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c