]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
arcnet: add netif_carrier_on/off for reconnect
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 16 Sep 2015 08:15:45 +0000 (10:15 +0200)
committerMichael Grzeschik <m.grzeschik@pengutronix.de>
Mon, 26 Oct 2015 08:10:56 +0000 (09:10 +0100)
commit59fbcbc61e1f0fd9acdf3efb09faca0320049718
treea4e08bc9d34c2eb5eca4609fa5407b0f2e8ad5c9
parent8890624a4e8c2c7046d63bfd15d7331af9f55f10
arcnet: add netif_carrier_on/off for reconnect

The arcnet device has no interrupt to detect if the link has changed
from disconnected to connected. This patch adds an timer to toggle the
link detection. The timer will get retriggered as long as the
reconnection interrupts accure. If the recon interrupts hold off
for >1s we define the connection stable again.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
drivers/net/arcnet/arcdevice.h
drivers/net/arcnet/arcnet.c