netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] pds_core: remove redundant pci_clear_master()
@ 2023-08-16  1:38 Yu Liao
  2023-08-16  6:38 ` Leon Romanovsky
  2023-08-16 14:02 ` Nelson, Shannon
  0 siblings, 2 replies; 7+ messages in thread
From: Yu Liao @ 2023-08-16  1:38 UTC (permalink / raw)
  To: netdev, davem, edumazet, kuba, pabeni; +Cc: liaoyu15, liwei391

pci_disable_device() involves disabling PCI bus-mastering. So remove
redundant pci_clear_master().

Signed-off-by: Yu Liao <liaoyu15@huawei.com>
---
 drivers/net/ethernet/amd/pds_core/main.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/amd/pds_core/main.c b/drivers/net/ethernet/amd/pds_core/main.c
index 672757932246..ffe619cff413 100644
--- a/drivers/net/ethernet/amd/pds_core/main.c
+++ b/drivers/net/ethernet/amd/pds_core/main.c
@@ -374,7 +374,6 @@ static int pdsc_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	return 0;
 
 err_out_clear_master:
-	pci_clear_master(pdev);
 	pci_disable_device(pdev);
 err_out_free_ida:
 	ida_free(&pdsc_ida, pdsc->uid);
@@ -439,7 +438,6 @@ static void pdsc_remove(struct pci_dev *pdev)
 		pci_release_regions(pdev);
 	}
 
-	pci_clear_master(pdev);
 	pci_disable_device(pdev);
 
 	ida_free(&pdsc_ida, pdsc->uid);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-08-17  1:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16  1:38 [PATCH net-next] pds_core: remove redundant pci_clear_master() Yu Liao
2023-08-16  6:38 ` Leon Romanovsky
2023-08-16  9:39   ` Yu Liao
2023-08-16 10:39     ` Leon Romanovsky
2023-08-17  1:07       ` Yu Liao
2023-08-16 14:02 ` Nelson, Shannon
2023-08-17  1:11   ` Yu Liao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).