net: bcmgenet: add umac_enable_set helper
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 Jul 2014 22:29:20 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2014 23:04:30 +0000 (16:04 -0700)
commite29585b8d8707686d3f8f66fdfd20d8c66fb5f6d
tree4a393563fbc53826e1f83ff8c83a8e47a808c791
parentef3d4f11dbb9d65ef2a70c7929467e3f0e7b8399
net: bcmgenet: add umac_enable_set helper

Factor the code touching the UniMAC RX/TX enable bits since we are going
to re-use it for implementing suspend/resume.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c