]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: rtl8139: Factor out hardware reset
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sun, 12 Apr 2020 20:58:27 +0000 (22:58 +0200)
committermarex <marex@desktop.lan>
Fri, 1 May 2020 10:35:21 +0000 (12:35 +0200)
commit38b306db2334a6565b326874eb4ff536e28654ba
treef976336b95826fa2fca62e7aa654ac359f10dfcf
parent661479ffc1a0b7ea159dae1ca34d61d009896870
net: rtl8139: Factor out hardware reset

This hardware reset and reset-wait implementation was twice in the
driver, factor it out into a separate function. This really should
use wait_for_bit() eventually and return -ETIMEDOUT, but thus far,
handling of any of this is missing from the driver. This must be
added later. Thus far, no functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/rtl8139.c