de2104x: fix power management

At least my 21041 cards come out of suspend with bus mastering disabled so
they did not work after resume(no data transferred).
After adding pci_set_master(), the driver oopsed immediately on resume -
because de_clean_rings() is called on suspend but de_init_rings() call
was missing in resume.

Also disable link (reset SIA) before sleep (de4x5 does this too).

Signed-off-by: Ondrej Zary <linux@rainbow-software.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Ondrej Zary and committed by David S. Miller b0255a02 e0f9c4f3

+3
+3
drivers/net/tulip/de2104x.c
··· 1231 1231 if (de->de21040) 1232 1232 return; 1233 1233 1234 + dw32(CSR13, 0); /* Reset phy */ 1234 1235 pci_read_config_dword(de->pdev, PCIPM, &pmctl); 1235 1236 pmctl |= PM_Sleep; 1236 1237 pci_write_config_dword(de->pdev, PCIPM, pmctl); ··· 2167 2166 dev_err(&dev->dev, "pci_enable_device failed in resume\n"); 2168 2167 goto out; 2169 2168 } 2169 + pci_set_master(pdev); 2170 + de_init_rings(de); 2170 2171 de_init_hw(de); 2171 2172 out_attach: 2172 2173 netif_device_attach(dev);