tg3: Add support for extended VPD blocks
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Apr 2011 11:05:08 +0000 (11:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2011 00:10:08 +0000 (17:10 -0700)
commitc3e945006ab2295e9a3f4327aa74a502ad123fe6
tree06bb8b4e44ea7db96f3c6c751a39020ad3d76b47
parent4852a8614f63999e38539ad16615054dcd20a05d
tg3: Add support for extended VPD blocks

In some devices, the VPD block is relocated to a different area in
NVRAM.  The original location can still contain old, but still valid VPD
data.  This patch changes the code to look for an extended VPD block in
NVRAM.  If one is found, that block is used for all VPD operations
instead.

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