mirror of https://gitee.com/openkylin/linux.git
bnx2x: Read chip ID
Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
af2464011f
commit
5a40e08e66
|
@ -6975,7 +6975,7 @@ static void __devinit bnx2x_get_common_hwinfo(struct bnx2x *bp)
|
||||||
id |= ((val & 0xf) << 12);
|
id |= ((val & 0xf) << 12);
|
||||||
val = REG_RD(bp, MISC_REG_CHIP_METAL);
|
val = REG_RD(bp, MISC_REG_CHIP_METAL);
|
||||||
id |= ((val & 0xff) << 4);
|
id |= ((val & 0xff) << 4);
|
||||||
REG_RD(bp, MISC_REG_BOND_ID);
|
val = REG_RD(bp, MISC_REG_BOND_ID);
|
||||||
id |= (val & 0xf);
|
id |= (val & 0xf);
|
||||||
bp->common.chip_id = id;
|
bp->common.chip_id = id;
|
||||||
bp->link_params.chip_id = bp->common.chip_id;
|
bp->link_params.chip_id = bp->common.chip_id;
|
||||||
|
|
Loading…
Reference in New Issue