]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ea0d358ddf5fe1b552648d877c217cf0a451b02
tree3a994c46a984d7d42e3d2b5277b07c826886953e
parent3a60c26df14bda0e3c6e058ea1eae4089131f239
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