]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:09:57 +0000 (13:09 -0500)
commitfd4d4e1aca1c84f8eadaf60f46154ac7bbc64411
treed08762e333cb4389a31efb0e126d8733cb23e123
parentb740a5154bf9079e25ccb3f1cd3dd72de979b3bd
bnxt_en: Move function reset to bnxt_init_one().

Orabug: 24567991

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>
(cherry picked from commit aa8ed021ab515a93f2a052e9cc80320882889698)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h