Skip to contentSkip to conversation

be2net: use eq-id to calculate cev-isr reg offset

PATCH Applied Sathya Perla 2 participants 2 messages Jan 29, 2010 – Feb 2, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: use eq-id to calculate cev-isr reg offset

cev-isr reg offset for each function is better calculated using (any) eq-id alloted to that function instead of using pci-func number(which does not work in some configurations...)

---
 drivers/net/benet/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/benet/be_main.c +1 -1
index 90c5661..5ac053a 100644
@@ -1350,7 +1350,7 @@ static irqreturn_t be_intx(int irq, void *dev)
 	int isr;
 
 	isr = ioread32(adapter->csr + CEV_ISR0_OFFSET +
-			be_pci_func(adapter) * CEV_ISR_SIZE);
+		(adapter->tx_eq.q.id/ 8) * CEV_ISR_SIZE);
 	if (!isr)
 		return IRQ_NONE;
 
Signature · 1 line
1.6.3.3
maintainer Applied
#1 lore raw

From: Sathya Perla <[email protected]>
Date: Fri, 29 Jan 2010 12:38:36 +0530

Quoted 5 lines

cev-isr reg offset for each function is better calculated using (any) eq-id alloted to that function instead of using pci-func number(which does not work in some configurations...)

Applied to net-2.6, thanks.