I've looked into this further, and it seems that any Linux 3.X, for X = (3.3.8 (OpenWRT), 3.6 (x86)), has a problem.
I compared the results with my x86 2.6.24, and amd64 2.6.32 and the ftdi_sio driver works in both of these versions. Looking at the USB transfers there are some differences, and I had to leave off to work on a couple of other projects. I'll have to come back to this, but it won't be till December or so. If anyone has better (same or worse...) experience with the fitdi_sio driver for the following: FTDI: FT232RL CPU: PowerPC or x86 Type device, I'd like to hear about it. The byte endian problem I believe is a 'red herring', as it appears to be only a cosmetic 'printout error', where the printout does not properly extract the number using le16_to_cpu function. John Clark. On Oct 31, 2012, at 12:00 PM, Andreas Mohr wrote: > Hi, > > On Wed, Oct 31, 2012 at 12:00:01PM +0100, > openwrt-devel-requ...@lists.openwrt.org wrote: >> Date: Tue, 30 Oct 2012 17:48:48 -0700 >> From: John Clark <jeclark2...@aim.com> >> >> Has anyone used OpenWRT Linux 3.3.8 kernel, and the included FTDI serial >> port interface driver with the Power PC. >> >> I suspect there are byte swapping issues, and would like to know if anyone >> else has 'used' the driver and 1) had no problem... or 2) had and fixed a >> problem. > > As an "interested" party, I had a quick look at current ftdi_sio.c history > ( > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=history;f=drivers/usb/serial/ftdi_sio.c;h=be845873e23dba98fc306fecceb71a672a2c7d74;hb=HEAD > ), > and there doesn't seem to be much committed that's relevant. > > However, > > commit d1ab903d2552b2362339b19203c7f01c797cb316 > Author: Michael Wileczka <mikewilec...@yahoo.com> > Date: Wed Aug 18 07:14:37 2010 -0700 > > USB: ftdi_sio: fix endianess of max packet size > > The USB max packet size (always little-endian) was not being byte > swapped on big-endian systems. > > Applicable since [USB: ftdi_sio: fix hi-speed device packet size > calculation] approx 2.6.31 > > Signed-off-by: Michael Wileczka <mikewilec...@yahoo.com> > Cc: stable <sta...@kernel.org> > Signed-off-by: Greg Kroah-Hartman <gre...@suse.de> > > > might be a good example of where to find and how to treat such issues. > > HTH, > > Andreas Mohr _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel