OSDN Git Service

net: usb: lan78xx: lan78xx_phy_init(): use PHY_POLL instead of "0" if no IRQ is available
authorSven Schuchmann <schuchmann@schleissheimer.de>
Sat, 27 Nov 2021 10:47:07 +0000 (11:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Nov 2021 12:22:07 +0000 (12:22 +0000)
commit817b653160db9852d5a0498a31f047e18ce27e5b
treec35475a33f6ed3b7d296ec9e89192d11220481a3
parent49989adc38f8693fb6e9f019904dd00c1d1db5ac
net: usb: lan78xx: lan78xx_phy_init(): use PHY_POLL instead of "0" if no IRQ is available

On most systems request for IRQ 0 will fail, phylib will print an error message
and fall back to polling. To fix this set the phydev->irq to PHY_POLL if no IRQ
is available.

Fixes: cc89c323a30e ("lan78xx: Use irq_domain for phy interrupt from USB Int. EP")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Sven Schuchmann <schuchmann@schleissheimer.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c