public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] Minor fix for readl when swap reg access.
@ 2007-06-07  8:35 Jason Jin
  2007-06-11 13:26 ` Markus Klotzbücher
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Jin @ 2007-06-07  8:35 UTC (permalink / raw)
  To: u-boot

This patch fix readl in ohci swap reg access.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
---
 drivers/usb_ohci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c
index 3cef576..d6b745f 100644
--- a/drivers/usb_ohci.c
+++ b/drivers/usb_ohci.c
@@ -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)))
-- 
1.5.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot-Users] [PATCH] Minor fix for readl when swap reg access.
  2007-06-07  8:35 [U-Boot-Users] [PATCH] Minor fix for readl when swap reg access Jason Jin
@ 2007-06-11 13:26 ` Markus Klotzbücher
  0 siblings, 0 replies; 2+ messages in thread
From: Markus Klotzbücher @ 2007-06-11 13:26 UTC (permalink / raw)
  To: u-boot

Hi Jason,

Jason Jin <Jason.jin@freescale.com> writes:

> This patch fix readl in ohci swap reg access.
>
> Signed-off-by: Jason Jin <Jason.jin@freescale.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-11 13:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-07  8:35 [U-Boot-Users] [PATCH] Minor fix for readl when swap reg access Jason Jin
2007-06-11 13:26 ` Markus Klotzbücher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox