]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: asix: Fix AX88772 device PHY selection
authorDavid Hollis <dhollis@davehollis.com>
Thu, 28 Dec 2006 19:09:11 +0000 (14:09 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 5 Jan 2007 20:19:10 +0000 (12:19 -0800)
A small typo in ax88772_bind() prevents the device from selecting the
proper PHY, leaving the device useless.  The attached patch fixes this.
If this patch can be added to the 2.6.19.x series as well, that would be
helpful for end-users.

Signed-off-by: David Hollis <dhollis@davehollis.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/net/asix.c

index 95e682e2c9d658892f6995da890e51243a333c69..f538013965b003d7d622b8920e86967ce3bd8f3b 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;
        }