]> git.sur5r.net Git - u-boot/commit
net: ravb: Do not shut down clock in start callback
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Mon, 18 Jun 2018 07:35:45 +0000 (09:35 +0200)
committerMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 19 Jun 2018 04:15:55 +0000 (06:15 +0200)
commitc4a8d9ca046a6881babe1ca6e08223bd1a2f7d59
tree26c185737df66bba3c1d56770651880e4cda315c
parent24417edfff837e21c8f4b659e08c4da5f59181b8
net: ravb: Do not shut down clock in start callback

Do not stop the clock in the start callback in case of failure, keep
them running to also keep the PHY running. The failure could be ie.
PHY failing to negotiate link and if the clock get shut down, another
attempt at bringing the link up would fail. The clock right now are
started in probe function and stopped in remove function, which is
the correct behavior.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/ravb.c