Skip to contentSkip to conversation

drivers: usb: fsl: Move USB Errata checking code

PATCH New Nikhil Badola 2 participants 2 messages Sep 30, 2014 – Nov 25, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drivers: usb: fsl: Move USB Errata checking code

Move USB Errata checking code from "arch/powerpc" to architecture independent file "fsl_usb.h" so that errata(s) become independent of the architecture. For each erratum checking function for PPC arch, define a nop function for non PPC arch for successful compilation in either case

---
 arch/powerpc/cpu/mpc85xx/cmd_errata.c |  1 +
 arch/powerpc/include/asm/fsl_errata.h | 55 -----------------------------
 drivers/usb/host/ehci-fsl.c           |  2 +-
 include/fsl_usb.h                     | 66 +++++++++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+), 56 deletions(-)
arch/powerpc/cpu/mpc85xx/cmd_errata.c +1 -0
index 3a04a89..349ce52 100644
@@ -9,6 +9,7 @@
 #include <linux/compiler.h>
 #include <asm/fsl_errata.h>
 #include <asm/processor.h>
+#include <fsl_usb.h>
 #include "fsl_corenet_serdes.h"
 
 #ifdef CONFIG_SYS_FSL_ERRATUM_A004849
arch/powerpc/include/asm/fsl_errata.h +0 -55

59 lines not on this page · raw message

drivers/usb/host/ehci-fsl.c +1 -1
index 45062e6..d5361d7 100644
@@ -14,7 +14,7 @@
 #include <asm/io.h>
 #include <usb/ehci-fsl.h>
 #include <hwconfig.h>
-#include <asm/fsl_errata.h>
+#include <fsl_usb.h>
 
 #include "ehci.h"
 
include/fsl_usb.h +66 -0

70 lines not on this page · raw message

Signature · 1 line
1.7.11.7
#1 lore raw

PATCH 1/3 drivers: usb: fsl: Move USB Errata checking code

Quoted 5 lines · Nikhil Badola

Move USB Errata checking code from "arch/powerpc" to architecture independent file "fsl_usb.h" so that errata(s) become independent of the architecture. For each erratum checking function for PPC arch, define a nop function for non PPC arch for successful compilation in either case

Quoted 8 lines
---
 arch/powerpc/cpu/mpc85xx/cmd_errata.c |  1 +
 arch/powerpc/include/asm/fsl_errata.h | 55 -----------------------------
 drivers/usb/host/ehci-fsl.c           |  2 +-
 include/fsl_usb.h                     | 66 +++++++++++++++++++++++++++++++++++
 4 files changed, 68 insertions(+), 56 deletions(-)

Applied to u-boot-fsl-qoriq master. Awaiting upstream. Thanks.

York