[PATCH V5 1/9] Add Synopsys DesignWare HS USB OTG Control and Status Register (CSR).

Alan Cox alan at lxorguk.ukuu.org.uk
Thu Oct 21 20:06:42 EST 2010


> +#if defined(CONFIG_DWC_OTG_REG_LE)

Is it really necessary to have everything in the header twice rather than
using endian switches in the I/O ?

Also with the code in that form how do you build a single copy of the
driver that runs on platforms which may have one or the other endian

Finally - we have defines for bitfield direction - because the compiler
has a lot of latitude in which way around it packs bitfields.



More information about the Linuxppc-dev mailing list