]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'stmmac-Clean-up-and-tune-up'
authorDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:16 +0000 (11:00 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 May 2018 15:00:16 +0000 (11:00 -0400)
commit3b44650dbe96eb54352541fc2f004c943f151c3c
treefc1b7bfb3026fe7e17c0f449039884c1ecf5e9da
parent78c75cf530fe42ba1bbe4e31402ab5cace107824
parent7638ad6785e18ffdd7918b59e1050d014d3908c6
Merge branch 'stmmac-Clean-up-and-tune-up'

Jose Abreu says:

====================
net: stmmac: Clean-up and tune-up

This targets to uniformize the handling of the different GMAC versions in
stmmac_main.c file and also tune-up the HW.

Currently there are some if/else conditions in the main source file which
calls different callbacks depending on the ID of GMAC.

With the introducion of a generic HW interface handling which automatically
selects the GMAC callbacks to be used, it is now unpleasant to see if
conditions in the main code because this should be completely agnostic of the
GMAC version.

This series removes most of these conditions. There are some if conditions
that remain untouched but the callbacks handling are now uniformized.

Tested in GMAC5, hope I didn't break any previous versions.

Please check [1] for performance analisys of patches 3-12.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>