summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2015-01-23 18:34:41 -0500
committerDavid S. Miller <davem@davemloft.net>2015-01-27 00:05:56 -0800
commitb8665c6c16fee59540b14ef145363971dc6cb6c8 (patch)
treeedde0e9d7580f288e334f34f82580ce11446517f /drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
parentbb92ea5e352db0674dec77491ad44d81d7d9b2e2 (diff)
net: dsa/mv88e6352: make mv88e6352_wait generic
Some busy bits are available in the global register 1, such as the ATU Busy bit. We may want to use this function to wait for them to change, so add a new parameter to mv88e6352_wait() instead of hard-coding REG_GLOBAL2. In the meantime, since the REG_READ() macro already checks for error, remove the redundant check for ret < 0. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c')
0 files changed, 0 insertions, 0 deletions