summaryrefslogtreecommitdiffstats
path: root/drivers/net/arcnet/arcdevice.h
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2015-09-16 10:15:45 +0200
committerMichael Grzeschik <m.grzeschik@pengutronix.de>2015-10-26 09:10:56 +0100
commit59fbcbc61e1f0fd9acdf3efb09faca0320049718 (patch)
treea4e08bc9d34c2eb5eca4609fa5407b0f2e8ad5c9 /drivers/net/arcnet/arcdevice.h
parentarcnet: com20020-pci: add led trigger support (diff)
downloadlinux-59fbcbc61e1f0fd9acdf3efb09faca0320049718.tar.xz
linux-59fbcbc61e1f0fd9acdf3efb09faca0320049718.zip
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>
Diffstat (limited to 'drivers/net/arcnet/arcdevice.h')
-rw-r--r--drivers/net/arcnet/arcdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/arcnet/arcdevice.h b/drivers/net/arcnet/arcdevice.h
index 2edc0c0ab7c7..20bfb9ba83ea 100644
--- a/drivers/net/arcnet/arcdevice.h
+++ b/drivers/net/arcnet/arcdevice.h
@@ -267,6 +267,8 @@ struct arcnet_local {
struct led_trigger *recon_led_trig;
char recon_led_trig_name[ARCNET_LED_NAME_SZ];
+ struct timer_list timer;
+
/*
* Buffer management: an ARCnet card has 4 x 512-byte buffers, each of
* which can be used for either sending or receiving. The new dynamic