diff options
author | Michal Kalderon <michal.kalderon@marvell.com> | 2020-01-27 15:26:18 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-27 14:35:32 +0100 |
commit | 6bc82d9b7e6371673992ed5e3897cf7fb8cc4f41 (patch) | |
tree | f691227fd00e3ceaee62d0ff14405b018cb12db3 /drivers/net/ethernet/qlogic/qed/qed_dev.c | |
parent | 8a52bbab39c9791480cbae86c69ad0d47f62972e (diff) | |
download | linux-stable-6bc82d9b7e6371673992ed5e3897cf7fb8cc4f41.tar.gz linux-stable-6bc82d9b7e6371673992ed5e3897cf7fb8cc4f41.tar.bz2 linux-stable-6bc82d9b7e6371673992ed5e3897cf7fb8cc4f41.zip |
qed: rt init valid initialization changed
The QM phase init tool can be invoked multiple times during
the driver lifetime. Part of the init comes from the runtime array.
The logic for setting the values did not init all values, basically
assuming the runtime array was all zeroes. But if it was invoked
multiple times, nobody was zeroing it after the first time.
In this change we zero the runtime array right after using it.
Signed-off-by: Ariel Elior <ariel.elior@marvell.com>
Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qed/qed_dev.c')
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_dev.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_dev.c b/drivers/net/ethernet/qlogic/qed/qed_dev.c index df97810b09b9..3fb73ce8c1d6 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_dev.c +++ b/drivers/net/ethernet/qlogic/qed/qed_dev.c @@ -2106,9 +2106,6 @@ int qed_qm_reconf(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) if (!b_rc) return -EINVAL; - /* clear the QM_PF runtime phase leftovers from previous init */ - qed_init_clear_rt_data(p_hwfn); - /* prepare QM portion of runtime array */ qed_qm_init_pf(p_hwfn, p_ptt, false); |