m68k: coldfire: fix non-standard readX()/writeX() functions
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 16 repliesIn review
- v24 patches 11 repliesSuperseded
- v1 RFC0 of 4 patches 0 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: fec: do not use readl()/writel() for ColdFiredrivers/ drivers/ drivers/ | +183 | 13 replies | |
| 2/3 | net: smc91x: do not use readw()/writew() on ColdFire platformsdrivers/ | +8 | 3 replies | |
| 3/3 | m68k: coldfire: fix non-standard readX()/writeX() functionsarch/ drivers/ drivers/ +1 more | +27 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Andrew Lunn | Marc Kleine-Budde | Frank Li | Arnd Bergmann | Jakub Kicinski |
|---|---|---|---|---|---|
| 1/3 | R-b R-b | R-b | A-b | ||
| 2/3 | R-b | ||||
| 3/3 | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.
Cover letter [PATCHv3 0/3] m68k: coldfire: fix non-standard readX()/writeX() functions
This collection of patches is aimed at fixing the non-standard ColdFire set of readX()/writeX() IO access functions. Instead switching to using the asm-generic definitions in include/asm-generic/io.h. The difficulty comes in trying not to break any drivers with this change.
The implementation of the readX()/writeX() family of IO access functions is non-standard on ColdFire platforms. They either return big-endian (that is native endian) data, or on platforms with PCI bus support check the supplied address and return either big or little endian data based on that check. This is non-standard, they are expected to always return little-endian byte ordered data. Unfortunately this behavior also means that ioreadX()/iowroteX() and their big-endian counter parts ioreadXbe()/iowriteXbe() are currently broken because they are implemented using the readX()/writeX() functions.
Patches 1 and 2 in this series are specific net driver changes that can be applied independently of the final ColdFire readX()/writeX() change.
Patch 3 is the actual switch to ColdFire building using asm-generic readX()/writeX(), but also contains three driver fixes that are not easily handled independently.
Note that I don't have access to all supported hardware needed to fully test all these changes. I have tested what I have, a bunch of the standard Freescale ColdFire eval boards, and inspected generated code for differences.
Note that the v1 and v2 versions of this series carried a change to the sdhci-esdhc-mcf.c driver that is now in mainline - so dropped from this current v3 series.
The v2 series moved from an RFC to a patch series. There was only minor changes overall to address comments. Changes include formatting, separating out the mcf5441x regmap in spi-fsl-dspi.c (patch 3) and reordering the quirks in flexcan-core.c (patch 3).
This v3 series has no new code changes. It is sent with an expanded CC list in the hope of getting the net driver changes (patches 1 and 2) picked up so the final readl/writel fix (patch 3) that depends on them can be applied.
--- arch/m68k/include/asm/io_no.h | 68 ------- drivers/dma/mcf-edma-main.c | 14 - drivers/net/can/flexcan/flexcan-core.c | 1 drivers/net/ethernet/freescale/fec.h | 15 + drivers/net/ethernet/freescale/fec_main.c | 257 +++++++++++++++--------------- drivers/net/ethernet/freescale/fec_ptp.c | 78 ++++----- drivers/net/ethernet/smsc/smc91x.h | 12 - drivers/spi/spi-fsl-dspi.c | 14 + 8 files changed, 218 insertions(+), 241 deletions(-)