tg3: Add macro for SMDSP toggling
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 20 Apr 2011 07:57:42 +0000 (07:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2011 00:05:59 +0000 (17:05 -0700)
commit1d36ba450bf8c88eda57deb028370880d09a14bc
tree3a994c46a984d7d42e3d2b5277b07c826886953e
parentb4bd292933537e19107c3e151b27a15fefa5f8d0
tg3: Add macro for SMDSP toggling

A common AUX CTRL operation in the driver is to enable and disable the
SMDSP.  This patch consolidates the code so that the details of the
operation are in one place.  This patch also adds code to make sure the
SMDSP is enabled before executing code that relies on it.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c