浏览代码

staging: octeon-ethernet: rgmii: poll link status on open

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>
Aaro Koskinen 9 年之前
父节点
当前提交
064e08350f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/staging/octeon/ethernet-rgmii.c

+ 1 - 1
drivers/staging/octeon/ethernet-rgmii.c

@@ -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)