[RFC 0/9] ehci-hcd.c: make it works on big-endian mips (AR9331)

Antony Pavlov antonynpavlov at gmail.com
Thu Aug 27 15:24:01 PDT 2015


This patchseries is very preliminary and has several issues:

  * USBMODE_BE bit set does not work on AR9331
    see the 'usb: ehci: add big-endian registers support' patch
  * tested on USB-flash; I have to test E100 USB Ethernet too;
  * the 'usb: ehci-hcd: add OF bindings' patch is not taken into account;
    see http://lists.infradead.org/pipermail/barebox/2015-August/024545.html

Antony Pavlov (9):
  WIP: make ehci-hcd.c happy on big-endian MIPS
  WIP: fix drivers/usb/core/usb.c
  MIPS: add virt_to_phys() and phys_to_virt()
  MIPS: add trivial dma support
  ehci-hcd.c: make it works on mips
  usb: ehci: drop unusable CONFIG_EHCI_MMIO_BIG_ENDIAN condition
  usb: ehci: add big-endian registers support
  MIPS: tplink-mr3020: select big-endian EHCI support
  MIPS: tplink-mr3020_defconfig: enable usb stuff

 arch/mips/Kconfig                         |   1 +
 arch/mips/boards/tplink-mr3020/board.c    |  55 +++++++++++
 arch/mips/configs/tplink-mr3020_defconfig |  49 ++++++----
 arch/mips/include/asm/dma-mapping.h       |   1 +
 arch/mips/include/asm/dma.h               |   5 +
 arch/mips/include/asm/io.h                |  35 +++++++
 arch/mips/lib/Makefile                    |   1 +
 arch/mips/lib/dma-default.c               |  28 ++++++
 arch/mips/mach-ath79/Kconfig              |   4 +
 drivers/usb/core/usb.c                    |   2 +-
 drivers/usb/host/Kconfig                  |   3 +
 drivers/usb/host/ehci-hcd.c               | 153 +++++++++++++++---------------
 drivers/usb/host/ehci.h                   |  55 ++++++++---
 include/linux/byteorder/big_endian.h      |   2 +-
 include/usb/ehci.h                        |   1 +
 15 files changed, 286 insertions(+), 109 deletions(-)
 create mode 100644 arch/mips/lib/dma-default.c

-- 
2.5.0




More information about the barebox mailing list