Skip to contentSkip to conversation

eth: fbnic: don't disable the PCI device twice

PATCH Applied Jakub Kicinski 3 participants 3 messages Nov 15, 2024 – Nov 19, 2024

Subsystems (3)
lore
Share & tools
lore

Jakub Kicinski

author maintainer
#0 lore raw

PATCH 1/1 eth: fbnic: don't disable the PCI device twice

We use pcim_enable_device(), there is no need to call pci_disable_device().

Fixes 546dd90be979 ("eth: fbnic: Add scaffolding for Meta's NIC driver")

---
CC: [email protected]
CC: [email protected]

---
 drivers/net/ethernet/meta/fbnic/fbnic_pci.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/ethernet/meta/fbnic/fbnic_pci.c +0 -2
index e110c2ceafcf..32702dc4a066 100644
@@ -334,7 +334,6 @@ static int fbnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 free_irqs:
 	fbnic_free_irqs(fbd);
 free_fbd:
-	pci_disable_device(pdev);
 	fbnic_devlink_free(fbd);
 
 	return err;
@@ -367,7 +366,6 @@ static void fbnic_remove(struct pci_dev *pdev)
 	fbnic_fw_disable_mbx(fbd);
 	fbnic_free_irqs(fbd);
 
-	pci_disable_device(pdev);
 	fbnic_devlink_free(fbd);
 }
 
Signature · 1 line
2.47.0
#2 lore raw
In reply to Jakub Kicinski
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 9 lines · On Thu, 14 Nov 2024 17:48:09 -0800 you wrote:

We use pcim_enable_device(), there is no need to call pci_disable_device().

Fixes 546dd90be979 ("eth: fbnic: Add scaffolding for Meta's NIC driver")

---
CC: [email protected]
CC: [email protected]

[...]

Here is the summary with links:
- [net] eth: fbnic: don't disable the PCI device twice

    https://git.kernel.org/netdev/net/c/62e9c00ea868

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html