[PATCH] sundance: expand reset mask

Expand the mask used when reseting the chip to include the GlobalReset
bit.  This fix comes from ICPlus and seems to be required for some
cards.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
John W. Linville 2005-10-18 21:31:02 -04:00 committed by Jeff Garzik
parent 67ec2f805a
commit 2aa1d82db7

View file

@ -691,7 +691,7 @@ static int __devinit sundance_probe1 (struct pci_dev *pdev,
/* Reset the chip to erase previous misconfiguration. */ /* Reset the chip to erase previous misconfiguration. */
if (netif_msg_hw(np)) if (netif_msg_hw(np))
printk("ASIC Control is %x.\n", ioread32(ioaddr + ASICCtrl)); printk("ASIC Control is %x.\n", ioread32(ioaddr + ASICCtrl));
iowrite16(0x007f, ioaddr + ASICCtrl + 2); iowrite16(0x00ff, ioaddr + ASICCtrl + 2);
if (netif_msg_hw(np)) if (netif_msg_hw(np))
printk("ASIC Control is now %x.\n", ioread32(ioaddr + ASICCtrl)); printk("ASIC Control is now %x.\n", ioread32(ioaddr + ASICCtrl));