]> git.karo-electronics.de Git - linux-beck.git/commit
usb: dwc3: convert TRBs into bitshifts
authorFelipe Balbi <balbi@ti.com>
Mon, 6 Feb 2012 09:04:53 +0000 (11:04 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 13 Feb 2012 14:02:06 +0000 (16:02 +0200)
commitf6bafc6a1c9d58f0c234ac5052b9c09b0747348c
treedf6da3498cc47ea3c1cfe43d7b35cc72969568af
parent3b637367ae40b6d3c20e30cb0cdd059e67bbf848
usb: dwc3: convert TRBs into bitshifts

this will get rid of a useless memcpy on
IRQ handling, thus improving driver performance.

Tested with OMAP5430 running g_mass_storage on
SuperSpeed and HighSpeed.

Note that we are removing the little endian access
of the TRB and all accesses will be in System endianness,
if there happens to be a system in BE, bit 12 of GSBUSCFG0
should be set so that HW does byte invariant BE accesses
when fetching TRBs.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c