net: mvgbe: extract common code for SMI wait
authorChris Packham <judge.packham@gmail.com>
Sat, 9 Jun 2018 08:46:16 +0000 (20:46 +1200)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 13 Jun 2018 18:54:17 +0000 (13:54 -0500)
commit5194ed7edca2ca4eaa2a48a6ef248432e3a4421e
treed3f460961e1fb6d525a9b8f2d58a19d5420bcaf4
parentc61221948c30710f2316b264f61efbf61c92a4aa
net: mvgbe: extract common code for SMI wait

Combine repeated code from smi_reg_read/smi_reg_write into a common
function smi_wait_ready.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvgbe.c
drivers/net/mvgbe.h