On Wednesday 03 January 2007 5:53 pm, Benjamin Herrenschmidt wrote: > On Wed, 2007-01-03 at 17:03 -0800, Andrew Morton wrote: > > On Thu, 14 Dec 2006 14:13:28 +1100 > > Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > > > This patch separates support for big endian MMIO register access > > > and big endian descriptors in order to support the Toshiba SCC > > > implementation which has big endian registers but little endian > > > in-memory descriptors. > > > > > > It simplifies the access functions a bit in ohci.h while at it. > > > > For reasons which aren't immediately apparent, this patch causes: > > > > drivers/usb/misc/ftdi-elan.c:2307:1: warning: "OHCI_QUIRK_ZFMICRO" redefined > > In file included from drivers/usb/misc/ftdi-elan.c:76: > > drivers/usb/misc/../host/ohci.h:399:1: warning: this is the location of the > > previous definition > > > > One site defines it as 0x10 and the other as 0x20. > > > > Something's screwed up. > > After a second look and a big urge to go vomit I'd say the ftdi thingy > is screwed up.
Yeah, it really shouldn't be grotting around in the internals of the OHCI driver like that. *AND* it badly needs "Lindent" run on it. Tony, you're maintaining the ftdi-elan driver ... can you come up with a patch to make it not use internals of a different driver? To the extent that all it needs is OHCI register layout info, I'd suggest creating a <linux/usb/ohci-regs.h> header. I expect there will be something similar for EHCI coming along (because of needing to access the debug port), and that's where things like that belong. - Dave ------------------------------------------------------------------------- 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