lan78xx: Debounce link events to minimize poll storm
authorJoshua Emele <jemele@acm.org>
Thu, 8 Nov 2018 00:07:40 +0000 (16:07 -0800)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:03:53 +0000 (16:03 +0000)
commit4c889e546f12e3a92233796b0034d9b5b3aa9e0a
treed4714f8d607de000f8ffd224d0f7afd3c027ddda
parent3a29dd22bfbab67934cb7e1b83bafc200fa1fe49
lan78xx: Debounce link events to minimize poll storm

The bInterval is set to 4 (i.e. 8 microframes => 1ms) and the only bit
that the driver pays attention to is "link was reset". If there's a
flapping status bit in that endpoint data, (such as if PHY negotiation
needs a few tries to get a stable link) then polling at a slower rate
would act as a de-bounce.

See: https://github.com/raspberrypi/linux/issues/2447
drivers/net/usb/lan78xx.c