]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Add link state reporting to UMP firmware
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 2 May 2008 23:49:29 +0000 (16:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:49:29 +0000 (16:49 -0700)
commitc24a7b61b51c1ff97b14de414f63960a0fe35a42
tree09b0e14566d630f1b8d3225b6fda0c2a862519e9
parent0f672746e5ac656a2af89ec3c90de664ad6246e4
tg3: Add link state reporting to UMP firmware

All variants of the 5714, 5715, and 5780 offer a feature called the
"Universal Management Port".  This feature is implemented in firmware
and is largely transparent to the driver, except...

It turns out that the UMP firmware needs to know the current status
of the link.  Because the firmware cannot touch the PHY registers while
the driver is in control of the device, it needs the driver to report
link status changes through an additional handshaking mechanism.
Without this handshake, it has been observed in the field that the UMP
firmware will not operate correctly.

This patch implements the new handshake with the UMP firmware.  Since
the handshake uses the same mechanism ASF heartbeats use, code was
added to detect and wait for completion of a pending previous event.

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