net: phy: lan87xx: Decrease phy polling rate
authorPhil Elwell <phil@raspberrypi.com>
Thu, 3 Feb 2022 15:51:41 +0000 (15:51 +0000)
committerPhil Elwell <phil@raspberrypi.com>
Thu, 3 Feb 2022 16:38:58 +0000 (16:38 +0000)
commitb0272c695e99a8dcc3a01298db56361333f1fdcf
tree6b0a08e71f3c286131e0aa46b1c14a00e6a7c8a7
parent1bbae89303db5ea13be241b76f8fb574f85dafa1
net: phy: lan87xx: Decrease phy polling rate

Polling at 100Hz for 1.5s consumes quite a bit of kworker time with no
obvious benefit. Reduce that polling rate to ~6Hz.

To further save CPU and power, defer the next poll if no energy is
detected.

See: https://github.com/raspberrypi/linux/issues/4780

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
drivers/net/phy/smsc.c