From: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
To: linux-pci@vger.kernel.org, bhelgaas@google.com,
lorenzo.pieralisi@arm.com
Cc: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
Subject: [PATCH 1/1] PCI: mobiveil: fix multi function endpoint failures
Date: Mon, 5 Nov 2018 07:51:40 -0500 [thread overview]
Message-ID: <1541422301-29176-1-git-send-email-l.subrahmanya@mobiveil.co.in> (raw)
The fix enables mobiveil pcie controller to detect more than one
functions per device. Also increases the MSI interrupts.
Fixes: 1e913e58335f ("PCI: mobiveil: Add MSI support")
Fixes: 9af6bcb11e12 ("PCI: mobiveil: Add Mobiveil PCIe Host Bridge IP
driver")
Signed-off-by: Subrahmanya Lingappa <l.subrahmanya@mobiveil.co.in>
---
drivers/pci/controller/pcie-mobiveil.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pci/controller/pcie-mobiveil.c b/drivers/pci/controller/pcie-mobiveil.c
index 4d6c20e..113d56a 100644
--- a/drivers/pci/controller/pcie-mobiveil.c
+++ b/drivers/pci/controller/pcie-mobiveil.c
@@ -89,7 +89,7 @@
#define PAB_INTX_START 5
/* supported number of MSI interrupts */
-#define PCI_NUM_MSI 16
+#define PCI_NUM_MSI 256
/* MSI registers */
#define MSI_BASE_LO_OFFSET 0x04
@@ -172,7 +172,7 @@ static bool mobiveil_pcie_valid_device(struct pci_bus *bus, unsigned int devfn)
* Do not read more than one device on the bus directly
* attached to RC
*/
- if ((bus->primary == pcie->root_bus_nr) && (devfn > 0))
+ if ((bus->number == pcie->root_bus_nr) && (devfn > 0))
return false;
return true;
--
1.8.3.1
next reply other threads:[~2018-11-05 12:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-05 12:51 Subrahmanya Lingappa [this message]
2018-11-05 12:51 ` [PATCH v2] PCI: mobiveil: fix multi function endpoint failures Subrahmanya Lingappa
2018-11-06 14:24 ` Lorenzo Pieralisi
2018-11-07 6:10 ` Subrahmanya Lingappa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1541422301-29176-1-git-send-email-l.subrahmanya@mobiveil.co.in \
--to=l.subrahmanya@mobiveil.co.in \
--cc=bhelgaas@google.com \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.pieralisi@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).