Otherwise, the board hangs on doing ifup after ifdown as the latter
disables bus mastering for the device in rtl8169_eth_halt().

Signed-off-by: Denis Orlov <denorl2...@gmail.com>
---
 drivers/net/rtl8169.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c
index e78cc40ffe..4b40c539dd 100644
--- a/drivers/net/rtl8169.c
+++ b/drivers/net/rtl8169.c
@@ -293,6 +293,8 @@ static int rtl8169_eth_open(struct eth_device *edev)
        struct rtl8169_priv *priv = edev->priv;
        int ret;
 
+       pci_set_master(priv->pci_dev);
+
        rtl8169_init_ring(priv);
        rtl8169_hw_start(priv);
 
-- 
2.20.1


Reply via email to