]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9556f9466af5d738ef45c0d8e68e191a146a62c7
treef928de8403dcf1111095fee3430a2a12a8a2cbd5
parent3d00e06f4cc5b275c2ccd24d368b1b63c3ac4b3e
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: 57c63d2a6e82 ("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