net: ethernet: ti: cpsw: fix early budget split
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 6 Dec 2016 01:45:00 +0000 (03:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Dec 2016 16:37:21 +0000 (11:37 -0500)
commit48e0a83ece7803a62afd624ba70523ca66631c35
treef928de8403dcf1111095fee3430a2a12a8a2cbd5
parent343dfaa198e98e8195a962c53206ad88076a6066
net: ethernet: ti: cpsw: fix early budget split

The budget split function requires the phy speed to be known.
While ndo open a phy speed identification is postponed till the
moment link is up. Hence, move it to appropriate callback, when link
is up.

Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Fixes: 8feb0a196507 ("net: ethernet: ti: cpsw: split tx budget according between channels")
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c