bnxt_en: Move function reset to bnxt_init_one().
authorMichael Chan <michael.chan@broadcom.com>
Wed, 7 Dec 2016 05:26:17 +0000 (00:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Dec 2016 15:59:25 +0000 (10:59 -0500)
commitaa8ed021ab515a93f2a052e9cc80320882889698
tree1f64dd350e2e717ac359072a27e265a2fb598d93
parent7809592d3e2ec79cd1feab0cc96169d22f6ffee1
bnxt_en: Move function reset to bnxt_init_one().

Now that MSIX is enabled in bnxt_init_one(), resources may be allocated by
the RDMA driver before the network device is opened.  So we cannot do
function reset in bnxt_open() which will clear all the resources.

The proper place to do function reset now is in bnxt_init_one().
If we get AER, we'll do function reset as well.

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h