]> git.sur5r.net Git - u-boot/commit
net: ravb: Initialize PHY in probe() once
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 13 Feb 2018 16:21:15 +0000 (17:21 +0100)
committerMarek Vasut <marex@denx.de>
Fri, 16 Feb 2018 15:43:09 +0000 (16:43 +0100)
commitd64c789414be11a5e542262adfcb51a48d476534
tree2bcdb59750ea6d809c097a91dba08cbe2f6aa8f4
parentfd5577ce26e18932bb5d4db02591625e46f2e9cc
net: ravb: Initialize PHY in probe() once

Reset and initialize the PHY once in the probe() function rather than
doing it over and over again is start() function. This requires us to
keep the clock enabled while the driver is in use. This significantly
reduces the time between transfers as the PHY doesn't have to restart
autonegotiation between transfers, which takes forever.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ravb.c