Skip to content

RFC net-next: cleanup use of lib8390.c code in xsurf100.c

Michael Schmitz linux-m68k lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net-next: ax88796: export ax_NS8390_init() hookdrivers/net/ethernet/8390/ax88796.c+2 -01 reply
2/2net-next: xsurf100: drop include of lib8390.cdrivers/net/ethernet/8390/xsurf100.c+3 -711 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchGeert UytterhoevenArnd Bergmann
1/2
2/2R-b R-b R-b

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

Read the v1 thread

Cover letter [RFC PATCH 0/2] net-next: cleanup use of lib8390.c code in xsurf100.c

As suggested by Geert, xsurf100.c really does not need to duplicate code from lib8390.c which is already part of ax88796.c, by including that file.

All we need from lib8390.c in the xsurf100 block output function is one single function: ax_NS8390_init(). Export this symbol in ax88796.c so the xsurf100 driver can use it.

This is rather a quick band-aid fix to deal with the ugliest code duplication (including lib8390.c where it really isn't needed). The xsurf100 block_input and block_output functiond are almost exact duplicated of the generic ax88796 functions, and changing those to make use of platform-specific block MMIO transfer functions might be a better way to fix this issue.

Tested on Amiga hardware (elgar).

Cheers,

Michael