Re: [PATCH 4/5] net: ethernet: ti: cpsw: re-split res only when speed is changed

From: David Miller
Date: Sat Dec 10 2016 - 17:31:06 EST


From: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx>
Date: Sat, 10 Dec 2016 14:23:49 +0200

> Don't re-split res in the following cases:
> - speed of phys is not changed
> - speed of phys is changed and no rate limited channels
> - speed of phys is changed and all channels are rate limited
> - phy is unlinked while dev is open
> - phy is linked back but speed is not changed
>
> The maximum speed is sum of "linked" phys, thus res are split taken
> in account two interfaces, both for dual emac mode and for
> switch mode.
>
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx>

Applied.