]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] asix: Fix typo for AX88772 PHY Selection
authorDavid Hollis <dhollis@davehollis.com>
Fri, 5 Jan 2007 17:34:05 +0000 (12:34 -0500)
committerChris Wright <chrisw@sous-sol.org>
Wed, 10 Jan 2007 19:05:23 +0000 (11:05 -0800)
The attached patch fixes a PHY selection problem that prevents AX88772
based devices (Linksys USB200Mv2, etc) devices from working.  The
interface comes up and everything seems fine except the device doesn't
send/receive any packets.  The one-liner attached fixes this issue and
makes the devices usable again.

Signed-off-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/usb/net/asix.c

index 881841e600def9f680f58109b30bfb175e4d2118..1a22d002cd070502b72ba6c004d6ed5c8bbbeea4 100644 (file)
@@ -920,7 +920,7 @@ static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf)
                goto out2;
 
        if ((ret = asix_write_cmd(dev, AX_CMD_SW_PHY_SELECT,
-                               0x0000, 0, 0, buf)) < 0) {
+                               1, 0, 0, buf)) < 0) {
                dbg("Select PHY #1 failed: %d", ret);
                goto out2;
        }