staging: octeon-ethernet: rgmii: poll link status on open
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 17 Oct 2015 19:28:54 +0000 (22:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 Oct 2015 03:56:10 +0000 (20:56 -0700)
Get the initial link status already on open instead of postponing
it to the periodic poll task. This unifies the behaviour with
other interfaces types.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/octeon/ethernet-rgmii.c

index 51dcb61..98ad4cd 100644 (file)
@@ -207,7 +207,7 @@ static irqreturn_t cvm_oct_rgmii_rml_interrupt(int cpl, void *dev_id)
 
 int cvm_oct_rgmii_open(struct net_device *dev)
 {
-       return cvm_oct_common_open(dev, cvm_oct_rgmii_poll, false);
+       return cvm_oct_common_open(dev, cvm_oct_rgmii_poll, true);
 }
 
 static void cvm_oct_rgmii_immediate_poll(struct work_struct *work)