net: phy: lan87xx: Decrease phy polling rate
authorPhil Elwell <phil@raspberrypi.com>
Thu, 3 Feb 2022 15:51:41 +0000 (15:51 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:42 +0000 (16:04 +0000)
commit0792bca64303bfd73f98e9fd00eb5bc1ed6d2b75
tree8aaeed393b418ebc0d9d21c1b76a8ae50214d74b
parent9c08a31a38e9d8041f34a30fa8b6b4ec460a0449
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