Skip to contentSkip to conversation

forcedeth: Let the driver work when no PHY is found

PATCH New Randy Dunlap 1 participant 1 message Jun 14, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 forcedeth: Let the driver work when no PHY is found

From: Ben Collins <[email protected]>

[UBUNTU:forcedeth] Let the driver work when no PHY is found

This matches breezy behavior.

Reference: https://launchpad.net/products/launchpad/+bug/45257
http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=38c1aaedc1f907e138698e54ceadeb9ae560b0d7

---

drivers/net/forcedeth.c +0 -0
@@ -2582,14 +2582,13 @@ static int __devinit nv_probe(struct pci
		np->phy_oui = id1 | id2;
		break;
	}

- if (i == 33) {
+
+ /* Let the damn card work if it can */
+ if (i == 33)

		printk(KERN_INFO "%s: open: Could not find a valid PHY.\n",
		       pci_name(pci_dev));

- goto out_freering;
- }
-
- /* reset it */
- phy_init(dev);
+ else
+ phy_init(dev);

	/* set default link speed settings */
	np->linkspeed = NVREG_LINKSPEED_FORCE|NVREG_LINKSPEED_10;