]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: sh_eth: Initialize PHY in probe() once
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 30 Mar 2019 06:22:09 +0000 (07:22 +0100)
committerMarek Vasut <marex@denx.de>
Tue, 9 Apr 2019 16:19:10 +0000 (18:19 +0200)
commit4a45e93ff3a1682fe80e7f391d0beab87b4ee064
tree57143c844b19793868d5c89a912339dc20b86f24
parent317d13ac6307d5c2eed7bc065009d6201dc9bfaa
net: sh_eth: 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: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/sh_eth.c