usb: ehci: add freescale imx28 special write register method

commit feffe09f510c475df082546815f9e4a573f6a233 upstream.

According to Freescale imx28 Errata, "ENGR119653 USB: ARM to USB
register error issue", All USB register write operations must
use the ARM SWP instruction. So, we implement a special ehci_write
for imx28.

Discussion for it at below:

Without this patcheset, imx28 works unstable at high AHB bus loading.
If the bus loading is not high, the imx28 usb can work well at the most
of time. There is a IC errata for this problem, usually, we consider
IC errata is a problem not a new feature, and this workaround is needed
for that, so we need to add them to stable tree 3.11+.

Change-Id: Ie81a15ea79997fb47c29ae82e5297580c48d3206
Signed-off-by: Peter Chen <>
Acked-by: Alan Stern <>
Signed-off-by: Marc Kleine-Budde <>
Tested-by: Marc Kleine-Budde <>
Signed-off-by: Greg Kroah-Hartman <>
[bwh: Backported to 3.2:adjust context]
Signed-off-by: Ben Hutchings <>
1 file changed