be2net: use eq-id to calculate cev-isr reg offset
Subsystems (2)
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...)
Signed-off-by Sathya Perla <[email protected]>
--- drivers/net/benet/be_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/benet/be_main.c +1 -1
@@ -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
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...)
Signed-off-by Sathya Perla <[email protected]>
Applied to net-2.6, thanks.