Minor fix for readl when swap reg access.
PATCH 1/1 Minor fix for readl when swap reg access.
This patch fix readl in ohci swap reg access.
Signed-off-by Jason Jin <[email protected]>
--- drivers/usb_ohci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/usb_ohci.c +1 -1
@@ -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
Markus Klotzbücher
AppliedPATCH 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.
Signed-off-by Jason Jin <[email protected]>
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