提交 064e0835 编写于 作者: A Aaro Koskinen 提交者: Greg Kroah-Hartman

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: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 63f2be5c
...@@ -207,7 +207,7 @@ static irqreturn_t cvm_oct_rgmii_rml_interrupt(int cpl, void *dev_id) ...@@ -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) 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) static void cvm_oct_rgmii_immediate_poll(struct work_struct *work)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册