[PATCH 6/7] net: rtl8169: enable pci device bus mastering on ifup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <denorl2009@xxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux