提交 ec164008 编写于 作者: D Dimitris Michailidis 提交者: David S. Miller

cxgb4: do not read the clock frequency from VPD

No need to read the clock frequency from VPD, we already get it a bit
later from FW, after any potential adjustments.
Signed-off-by: NDimitris Michailidis <dm@chelsio.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ef306b50
...@@ -370,7 +370,7 @@ int t4_seeprom_wp(struct adapter *adapter, bool enable) ...@@ -370,7 +370,7 @@ int t4_seeprom_wp(struct adapter *adapter, bool enable)
static int get_vpd_params(struct adapter *adapter, struct vpd_params *p) static int get_vpd_params(struct adapter *adapter, struct vpd_params *p)
{ {
int i, ret; int i, ret;
int ec, sn, v2; int ec, sn;
u8 vpd[VPD_LEN], csum; u8 vpd[VPD_LEN], csum;
unsigned int vpdr_len; unsigned int vpdr_len;
const struct t4_vpd_hdr *v; const struct t4_vpd_hdr *v;
...@@ -408,10 +408,8 @@ static int get_vpd_params(struct adapter *adapter, struct vpd_params *p) ...@@ -408,10 +408,8 @@ static int get_vpd_params(struct adapter *adapter, struct vpd_params *p)
FIND_VPD_KW(ec, "EC"); FIND_VPD_KW(ec, "EC");
FIND_VPD_KW(sn, "SN"); FIND_VPD_KW(sn, "SN");
FIND_VPD_KW(v2, "V2");
#undef FIND_VPD_KW #undef FIND_VPD_KW
p->cclk = simple_strtoul(vpd + v2, NULL, 10);
memcpy(p->id, v->id_data, ID_LEN); memcpy(p->id, v->id_data, ID_LEN);
strim(p->id); strim(p->id);
memcpy(p->ec, vpd + ec, EC_LEN); memcpy(p->ec, vpd + ec, EC_LEN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册