Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1623873 > unrolled thread

[PATCH 3/7] PCI: call pcie_flr from reset_chelsio_generic_dev

Started byChristoph Hellwig <hch@lst.de>
First post2017-04-14 21:20 +0200
Last post2017-04-14 21:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3/7] PCI: call pcie_flr from reset_chelsio_generic_dev Christoph Hellwig <hch@lst.de> - 2017-04-14 21:20 +0200

#1623873 — [PATCH 3/7] PCI: call pcie_flr from reset_chelsio_generic_dev

FromChristoph Hellwig <hch@lst.de>
Date2017-04-14 21:20 +0200
Subject[PATCH 3/7] PCI: call pcie_flr from reset_chelsio_generic_dev
Message-ID<tweVd-50g-29@gated-at.bofh.it>
Instead of copy & pasting and old version of the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
---
 drivers/pci/quirks.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 8195ca294ee5..715ed8c08fa3 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -3750,20 +3750,7 @@ static int reset_chelsio_generic_dev(struct pci_dev *dev, int probe)
 				      PCI_MSIX_FLAGS_ENABLE |
 				      PCI_MSIX_FLAGS_MASKALL);
 
-	/*
-	 * Start of pcie_flr() code sequence.  This reset code is a copy of
-	 * the guts of pcie_flr() because that's not an exported function.
-	 */
-
-	if (!pci_wait_for_pending_transaction(dev))
-		dev_err(&dev->dev, "transaction is not cleared; proceeding with reset anyway\n");
-
-	pcie_capability_set_word(dev, PCI_EXP_DEVCTL, PCI_EXP_DEVCTL_BCR_FLR);
-	msleep(100);
-
-	/*
-	 * End of pcie_flr() code sequence.
-	 */
+	pcie_flr(dev);
 
 	/*
 	 * Restore the configuration information (BAR values, etc.) including
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web