All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3 v5] Fixes for running a big-endian kernel on Cubieboard2
@ 2016-11-14 17:58 Michael Weiser
  2016-11-14 17:58 ` [PATCH 1/3] net: ethernet: stmmac: change dma descriptors to __le32 Michael Weiser
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Michael Weiser @ 2016-11-14 17:58 UTC (permalink / raw)
  To: netdev; +Cc: Michael Weiser

the following patches are what remains to be fixed in order to allow running a
big-endian kernel on the Cubieboard2.

The first patch fixes up endianness problems with DMA descriptors in
the stmmac driver preventing it from working correctly when runnning a
big-endian kernel.

The second patch adds the ability to enable diagnostic messages in the
sun4i-emac driver which were instrumental in finding the problem fixed
by patch number three: Endianness confusion caused by dual-purpose I/O
register usage in sun4i-emac.

All of these have been tested successfully on a Cubieboard2 DualCard.

Changes since v4:
- Rebased to current master
- Removed already applied patches to sunxi-mmc and sunxi-Kconfig

Changes since v3:
- Rebased sunxi-mmc patch against Ulf's mmc.git/next
- Changed Kconfig change to enable big-endian support only for sun7i
  devices

Changes since v2:
- Fixed typo in stmmac patch causing a build failure
- Added sun4i-emac patches

Changes since v1:
- Fixed checkpatch niggles
- Added respective Cc:s

Regards,
Michael

Michael Weiser (3):
  net: ethernet: stmmac: change dma descriptors to __le32
  net: ethernet: sun4i-emac: Allow to enable netif messages
  net: ethernet: sun4i-emac: Read rxhdr in CPU byte-order

 drivers/net/ethernet/allwinner/sun4i-emac.c        | 25 ++++++++-
 drivers/net/ethernet/stmicro/stmmac/chain_mode.c   | 55 ++++++++++----------
 drivers/net/ethernet/stmicro/stmmac/descs.h        | 20 ++++----
 drivers/net/ethernet/stmicro/stmmac/descs_com.h    | 48 +++++++++--------
 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c | 60 +++++++++++-----------
 drivers/net/ethernet/stmicro/stmmac/enh_desc.c     | 55 ++++++++++----------
 drivers/net/ethernet/stmicro/stmmac/norm_desc.c    | 48 ++++++++---------
 drivers/net/ethernet/stmicro/stmmac/ring_mode.c    | 39 +++++++-------
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 51 +++++++++---------
 9 files changed, 218 insertions(+), 183 deletions(-)

-- 
2.9.3 (Apple Git-75)

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

end of thread, other threads:[~2016-11-16  3:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 17:58 [PATCH 0/3 v5] Fixes for running a big-endian kernel on Cubieboard2 Michael Weiser
2016-11-14 17:58 ` [PATCH 1/3] net: ethernet: stmmac: change dma descriptors to __le32 Michael Weiser
2016-11-14 17:58 ` [PATCH 2/3] net: ethernet: sun4i-emac: Allow to enable netif messages Michael Weiser
2016-11-14 19:00   ` Maxime Ripard
2016-11-14 17:58 ` [PATCH 3/3] net: ethernet: sun4i-emac: Read rxhdr in CPU byte-order Michael Weiser
2016-11-14 18:59   ` Maxime Ripard
2016-11-16  3:06 ` [PATCH 0/3 v5] Fixes for running a big-endian kernel on Cubieboard2 David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.