]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: fsl_udc_core: fix build breakage when building for ARM arch
authorAnatolij Gustschin <agust@denx.de>
Sat, 25 Jun 2011 21:37:29 +0000 (23:37 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Jul 2011 21:20:39 +0000 (14:20 -0700)
commit3140d5b2664309253ba465a14c89fe4f59c0359b
treed888bbeea10a668ef3df6b5ebf2f326fbc8c0f68
parentdaf54f1f363a61c618662ef66d4bf09d2b090941
USB: fsl_udc_core: fix build breakage when building for ARM arch

Commit 09ba0def (USB: fsl_udc_core: prepare for SoCs with
BE registers and descriptors) introduced build breakage
on ARM arch. Fix it by setting accessors using a static
inline function which is a nop when compiling the driver
for ARM arch.

Commit 2ea6698 (USB: fsl_udc_core: support device mode of
MPC5121E DR USB Controller) caused another breakage on ARM
by using flush_dcache_range(). Don't use it, convert to the
DMA API usage instead. USB2.0CV Halt Endpoint Test succeeds
on PPC. Tested both on ARM i.MX31 and mpc5121 PPC, also with
CONFIG_DMA_API_DEBUG enabled.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/fsl_udc_core.c