Skip to contentSkip to conversation

Minor fix for readl when swap reg access.

PATCH New Jason Jin 2 participants 2 messages Jun 7, 2007 – Jun 11, 2007

lore
Share & tools
lore

Jason Jin

author
#0 lore raw

PATCH 1/1 Minor fix for readl when swap reg access.

This patch fix readl in ohci swap reg access.

---
 drivers/usb_ohci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb_ohci.c +1 -1
index 3cef576..d6b745f 100644
@@ -81,7 +81,7 @@
  * e.g. PCI controllers need this
  */
 #ifdef CFG_OHCI_SWAP_REG_ACCESS
-# define readl(a) __swap_16(*((vu_long *)(a)))
+# define readl(a) __swap_32(*((vu_long *)(a)))
 # define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a))
 #else
 # define readl(a) (*((vu_long *)(a)))
Signature · 1 line
1.5.1
#1 lore raw

PATCH 1/1 Minor fix for readl when swap reg access.

Hi Jason,

Quoted 3 lines · Jason Jin

This patch fix readl in ohci swap reg access.

Thanks, applied to USB custodian repo.

Best regards

Markus Klotzb?cher

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de