r8152: Factor out OOB link list waits
authorPrashant Malani <pmalani@chromium.org>
Tue, 1 Oct 2019 08:35:57 +0000 (01:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 16:14:37 +0000 (09:14 -0700)
commit5f71c84038d39def573744a145c573758f52a949
tree33a3dc978c6f510f5b755f83622c43a5a69d6bb4
parent02dc96ef6c25f990452c114c59d75c368a1f4c8f
r8152: Factor out OOB link list waits

The same for-loop check for the LINK_LIST_READY bit of an OOB_CTRL
register is used in several places. Factor these out into a single
function to reduce the lines of code.

Change-Id: I20e8f327045a72acc0a83e2d145ae2993ab62915
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Acked-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c