summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorKonrad Adamczyk2017-02-07 12:20:19 +0100
committerMichael Brown2017-02-07 13:05:00 +0100
commit30f96c9f41f2596493c6ca18060bebaaaf44415b (patch)
tree60e9db894ce0ab92b47e83296f1b53236e265c85 /src/drivers
parent[thunderx] Fix hardware deinitialization (diff)
downloadipxe-30f96c9f41f2596493c6ca18060bebaaaf44415b.tar.gz
ipxe-30f96c9f41f2596493c6ca18060bebaaaf44415b.tar.xz
ipxe-30f96c9f41f2596493c6ca18060bebaaaf44415b.zip
[thunderx] Don't disable NIC when exiting from iPXE
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>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/net/thunderx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/drivers/net/thunderx.c b/src/drivers/net/thunderx.c
index 901ecba1..c9c246cb 100644
--- a/src/drivers/net/thunderx.c
+++ b/src/drivers/net/thunderx.c
@@ -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 );