Re: [PATCH 2/2] net: stmmac: unify mdio functions

From: David Miller
Date: Sat Dec 03 2016 - 15:34:48 EST


From: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>
Date: Thu, 1 Dec 2016 16:19:41 +0100

> stmmac_mdio_{read|write} and stmmac_mdio_{read|write}_gmac4 are not
> enought different for being split.
> The only differences between thoses two functions are shift/mask for
> addr/reg/clk_csr.
>
> This patch introduce a per platform set of variable for setting thoses
> shift/mask and unify mdio read and write functions.
>
> Signed-off-by: Corentin Labbe <clabbe.montjoie@xxxxxxxxx>

Applied.