Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-24 Thread Oliver Neukum
Am Freitag, 24. November 2006 09:48 schrieb Nikita V. Youshchenko: > I can't do such a test myself - I'm doing my job remotely so I don't have > physical access to hardware, and people for whom I work are definitly not > interested in such things so they won't set up needed environment. Neither

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-24 Thread Nikita V. Youshchenko
> > > Don't introduce a config option. If you do this by ifdef, use ifdef > > > on the arches that you used as default. On those arches the memmove > > > is definitely a win. > > > You could even test it unconditionally on i386 or x86_64. A copy may > > > be faster than keeping it in place, as you

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-24 Thread Oliver Neukum
> > Don't introduce a config option. If you do this by ifdef, use ifdef on > > the arches that you used as default. On those arches the memmove is > > definitely a win. > > You could even test it unconditionally on i386 or x86_64. A copy may be > > faster than keeping it in place, as you touch the

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Nikita V. Youshchenko
> Am Freitag, 24. November 2006 06:00 schrieb Nikita V. Youshchenko: > > > However, I've located one more problem which I don't know yet how to > > > fix correctly. > > > AFAIR, device may pass several incoming frames in one urb, and > > > second and later frames are 2-byte-aligned. > > > This may

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Oliver Neukum
Am Freitag, 24. November 2006 06:00 schrieb Nikita V. Youshchenko: > > However, I've located one more problem which I don't know yet how to fix > > correctly. > > AFAIR, device may pass several incoming frames in one urb, and second > > and later frames are 2-byte-aligned. > > This may cause situat

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Nikita V. Youshchenko
> However, I've located one more problem which I don't know yet how to fix > correctly. > AFAIR, device may pass several incoming frames in one urb, and second > and later frames are 2-byte-aligned. > This may cause situations when IP layer gets IP packet not aligned at > 32-bit word boundary and o

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Nikita V. Youshchenko
> However, I've located one more problem which I don't know yet how to fix > correctly. > AFAIR, device may pass several incoming frames in one urb, and second > and later frames are 2-byte-aligned. > This may cause situations when IP layer gets IP packet not aligned at > 32-bit word boundary and o

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Nikita V. Youshchenko
> Am Donnerstag, 23. November 2006 13:34 schrieben Sie: > > > > I'm forced to work with a vendor kernel based on some old 2.6 > > > > (probably 2.6.10), and I'm trying to backport the driver. > > > > > > > > Is 2.6.19-rc6 a better source for backporting than vanilla 2.6.18 > > > > ? > > > > > > OK

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Oliver Neukum
Am Donnerstag, 23. November 2006 08:47 schrieb Nikita V. Youshchenko: > Hello. > > Have anyone ever made AX88772 usb ethernet driver working on a big endian > system? > > I'm currently working with an embedded-linux-based board with big-endian > MIPS cpu, and the driver does not work for me (us

Re: [linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-23 Thread Oliver Neukum
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.0 +0100 +++ asix.

[linux-usb-devel] AX88772 usb ethernet on big-endian system

2006-11-22 Thread Nikita V. Youshchenko
Hello. Have anyone ever made AX88772 usb ethernet driver working on a big endian system? I'm currently working with an embedded-linux-based board with big-endian MIPS cpu, and the driver does not work for me (usb transactions initiated in start_xmit method do succeed, but nothing is transmitte