linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: iproc: Remove redundant function number check for PAXC
@ 2016-01-28 23:37 Ray Jui
  2016-01-29 17:30 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Ray Jui @ 2016-01-28 23:37 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Bjorn Helgaas, Rafal Milecki, Hante Meuleman, Hauke Mehrtens,
	linux-kernel, bcm-kernel-feedback-list, linux-pci, Ray Jui

This patch removes the conditional check that limits the number of
functions to be supported by the internally emulated endpoint device
connected to PAXC. Investigation shows that the emulated PAXC endpoint
device can properly reject request for unsupported functions, which
makes this conditional check redundant

Signed-off-by: Ray Jui <rjui@broadcom.com>
---
 drivers/pci/host/pcie-iproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c
index 9ae43ed..b65185d 100644
--- a/drivers/pci/host/pcie-iproc.c
+++ b/drivers/pci/host/pcie-iproc.c
@@ -204,7 +204,7 @@ static void __iomem *iproc_pcie_map_cfg_bus(struct pci_bus *bus,
 	 * allows only one device and supports a limited number of functions.
 	 */
 	if (pcie->type == IPROC_PCIE_PAXC)
-		if (slot > 0 || fn >= MAX_NUM_PAXC_PF)
+		if (slot > 0)
 			return NULL;
 
 	/* EP device access */
-- 
1.9.1


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

end of thread, other threads:[~2016-01-29 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-28 23:37 [PATCH] PCI: iproc: Remove redundant function number check for PAXC Ray Jui
2016-01-29 17:30 ` Bjorn Helgaas
2016-01-29 17:53   ` Ray Jui
2016-01-29 19:42     ` Bjorn Helgaas

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).