Skip to content

RFC ehci-hcd.c: make it works on big-endian mips (AR9331)

Antony Pavlov barebox 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9WIP: make ehci-hcd.c happy on big-endian MIPSinclude/linux/byteorder/big_endian.h+1 -10 replies
2/9WIP: fix drivers/usb/core/usb.cdrivers/usb/core/usb.c+1 -13 replies
3/9MIPS: add virt_to_phys() and phys_to_virt()arch/mips/include/asm/io.h+35 -010 replies
4/9MIPS: add trivial dma supportarch/mips/Kconfig arch/mips/include/asm/dma-mapping.h arch/mips/include/asm/dma.h +2 more+36 -00 replies
5/9ehci-hcd.c: make it works on mipsdrivers/usb/host/ehci-hcd.c+10 -90 replies
6/9usb: ehci: drop unusable CONFIG_EHCI_MMIO_BIG_ENDIAN conditiondrivers/usb/host/ehci-hcd.c drivers/usb/host/ehci.h+0 -80 replies
7/9usb: ehci: add big-endian registers supportdrivers/usb/host/Kconfig drivers/usb/host/ehci-hcd.c drivers/usb/host/ehci.h +1 more+108 -712 replies
8/9MIPS: tplink-mr3020: select big-endian EHCI supportarch/mips/boards/tplink-mr3020/board.c arch/mips/mach-ath79/Kconfig+59 -00 replies
9/9MIPS: tplink-mr3020_defconfig: enable usb stuffarch/mips/configs/tplink-mr3020_defconfig+33 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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
Signature · 7 lines
2.5.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox