Skip to content

Fix endianness of generic I/O accessors

Will Deacon linux-arch linux-mtd lkml netdev 3 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 7 repliesApplied
  2. v1 posting 2/24 patches 12 repliesSuperseded
  3. v1 posting 1/22 patches 18 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/10asm-generic: io: don't perform swab during {in,out} string functionsinclude/asm-generic/io.h+6 -60 replies
2/10mmc: mmci: use io{read,write}*_rep accessors instead of string functionsdrivers/mmc/host/mmci.c+4 -40 replies
3/10net: smc91x: use io{read,write}*_rep accessors instead of string functionsdrivers/net/ethernet/smsc/smc91x.h+10 -101 reply
4/10net: smc911x: use io{read,write}*_rep accessorsdrivers/net/ethernet/smsc/smc911x.h+8 -83 replies
5/10net: dm9000: use io{read,write}*_rep accessorsdrivers/net/ethernet/davicom/dm9000.c+6 -61 reply
6/10net: 8390: use io{read,write}*_rep accessorsdrivers/net/ethernet/8390/ax88796.c+8 -81 reply
7/10mtd: nand/gpio: use io{read,write}*_rep accessorsdrivers/mtd/nand/gpio.c+4 -41 reply
8/10musb: tusb6010: use io{read,write}*_rep accessorsdrivers/usb/musb/tusb6010.c+3 -20 replies
9/10usb: musb: use io{read,write}*_rep accessorsdrivers/usb/musb/musb_core.c drivers/usb/musb/musb_io.h+6 -270 replies
10/10asm-generic: io: remove {read,write} string functionsinclude/asm-generic/io.h+0 -300 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchArnd BergmannBen Herrenschmidt
1/10A-b A-b
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/10] Fix endianness of generic I/O accessors

Hello again,

This is version 2 of the patches originally posted here:

http://lkml.indiana.edu/hypermail/linux/kernel/1210.2/00952.html

Changes since then:
- Reordered the series to put the string function removal at the end.
- Matthew's had a crack at fixing up all the other drivers which rely on the generic I/O accessors after a request from James Hogan.

Note that the mmc and smc changes are required in order to build their respective drivers for arm64, regardless of endianness and/or the rest of this series.

Comments welcome, particularly regarding how on Earth this gets merged in a sane manner.

Will

Matthew Leach (6):
net: smc911x: use io{read,write}*_rep accessors
net: dm9000: use io{read,write}*_rep accessors
net: 8390: use io{read,write}*_rep accessors
mtd: nand/gpio: use io{read,write}*_rep accessors
musb: tusb6010: use io{read,write}*_rep accessors
usb: musb: use io{read,write}*_rep accessors

Will Deacon (4):
asm-generic: io: don't perform swab during {in,out} string functions
mmc: mmci: use io{read,write}*_rep accessors instead of string
functions
net: smc91x: use io{read,write}*_rep accessors instead of string
functions
asm-generic: io: remove {read,write} string functions

 drivers/mmc/host/mmci.c               |  8 +++----
 drivers/mtd/nand/gpio.c               |  8 +++----
 drivers/net/ethernet/8390/ax88796.c   | 16 ++++++-------
 drivers/net/ethernet/davicom/dm9000.c | 12 +++++-----
 drivers/net/ethernet/smsc/smc911x.h   | 16 ++++++-------
 drivers/net/ethernet/smsc/smc91x.h    | 20 ++++++++---------
 drivers/usb/musb/musb_core.c          | 12 +++++-----
 drivers/usb/musb/musb_io.h            | 21 ------------------
 drivers/usb/musb/tusb6010.c           |  5 +++--
 include/asm-generic/io.h              | 42 +++++------------------------------
 10 files changed, 55 insertions(+), 105 deletions(-)
Signature · 1 line
1.8.0