David Hollis wrote: > On Sun, 2006-04-30 at 21:00 -0700, David Brownell wrote: >> That PHY register failure would explain things ... maybe it's >> a byteswap bug in that driver code? >> > > This is the relevant portion from ax88772_bind(): > > if (((ret = asix_read_cmd(dev, AX_CMD_READ_MII_REG, > 0x0010, 2, 2, buf)) < 0) > || (*((u16 *)buf) != 0x003b)) { > dbg("Read PHY register 2 must be 0x3b00: %d", ret); > goto out2; > } > > Looks like I need to change that to a asix_mdio_read_le() call. Try the > attached patch with the caveat that I haven't tested it yet, I'm on a > plane. It should be right though I might need to swap the != 0x3b00 to > 0x003b. If you could try it against PPC and x86, that'd be great. I > only have access to x86 myself.
Had to upgrade to 2.6.17-rc3 to get the driver version to agree with the patch because of the restructuring. Tried with and without the patch on ppc but unfortunately does not work either way, without it's the same as before and with it I get this message: usb 1-2.3: new high speed USB device using ehci_hcd and address 4 usb 1-2.3: configuration #1 chosen from 1 choice drivers/usb/net/asix.c: Read PHYSID1 must be 0x3b00. Read: 0000 asix 1-2.3:1.0: status ep1in, 8 bytes period 11 eth1: register 'asix' at usb-0001:10:1b.2-2.3, ASIX AX88772 USB 2.0 Ethernet, 00:10:60:06:0f:28 usbcore: registered new driver asix eth1: rxqlen 0 --> 10 eth1: rxqlen 10 --> 20 eth1: rxqlen 20 --> 30 eth1: rxqlen 30 --> 40 eth1: rxqlen 40 --> 50 eth1: rxqlen 50 --> 60 eth1: intr status -71 [about 50 repetitions of above line] eth1: rx throttle -71 eth1: intr status -71 usb 1-2.3: USB disconnect, address 4 eth1: unregister 'asix' usb-0001:10:1b.2-2.3, ASIX AX88772 USB 2.0 Ethernet /fnord ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel