Am Donnerstag, 23. November 2006 08:47 schrieb Nikita V. Youshchenko:
> However, I still can't make device working even with such fix.
> Any hints will be very helpful ...

Try the attached untested patch.

        HTH
                Oliver
--- asix.c~	2006-11-16 05:03:40.000000000 +0100
+++ asix.c	2006-11-23 10:16:54.000000000 +0100
@@ -249,9 +249,9 @@
 
 	req->bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE;
 	req->bRequest = cmd;
-	req->wValue = value;
-	req->wIndex = index;
-	req->wLength = size;
+	req->wValue = cpu_to_le16(value);
+	req->wIndex = cpu_to_le16(index);
+	req->wLength = cpu_to_le16(size);
 
 	usb_fill_control_urb(urb, dev->udev,
 			     usb_sndctrlpipe(dev->udev, 0),
@@ -415,6 +415,7 @@
 		deverr(dev, "Error reading PHYID register: %02x", ret);
 		goto out2;
 	}
+	le16_to_cpus(buf);
 	devdbg(dev, "asix_get_phy_addr() returning 0x%04x", *((u16 *)buf));
 	ret = *((u8 *)buf + 1);
 out2:
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to