cxgb4: Allow for backward compatibility with new VPD scheme.
authorSantosh Rastapur <santosh@chelsio.com>
Fri, 8 Mar 2013 03:35:29 +0000 (03:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2013 09:33:12 +0000 (05:33 -0400)
commit47ce9c4821fa41ef72c1004e1a362d08334cd717
tree0b014080dcc8c52731ad9bc5bc842808766c2682
parent7c6baa304b841673d3a55ea4fcf9a5cbf7a1674b
cxgb4: Allow for backward compatibility with new VPD scheme.

New scheme calls for 3rd party VPD at offset 0x0 and Chelsio VPD at offset
0x400 of the function.  If no 3rd party VPD is present, then a copy of
Chelsio's VPD will be at offset 0x0 to keep in line with PCI spec which
requires the VPD to be present at offset 0x0.

Signed-off-by: Santosh Rastapur <santosh@chelsio.com>
Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c