]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[thunderx] Don't disable NIC when exiting from iPXE
authorKonrad Adamczyk <konrad.adamczyk@cavium.com>
Tue, 7 Feb 2017 11:20:19 +0000 (12:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 7 Feb 2017 12:05:00 +0000 (12:05 +0000)
According to ThunderX Errata G-17560, NIC_PF_CFG[ENA] bit should not
be cleared at exit.  This allows other drivers to access the NIC regs
correctly.

Signed-off-by: Konrad Adamczyk <konrad.adamczyk@cavium.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/thunderx.c

index 901ecba11247f2c6d2e688dd46f71bfb00510893..c9c246cb8ba868724fc39010cf76d273f0b71862 100644 (file)
@@ -1345,9 +1345,6 @@ static void txnic_pf_remove ( struct pci_device *pci ) {
        /* Remove from list of physical functions */
        list_del ( &pf->list );
 
-       /* Disable physical function */
-       writeq ( 0, ( pf->regs + TXNIC_PF_CFG ) );
-
        /* Unmap registers */
        iounmap ( pf->regs );