Commit c3c7b121 authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller

cxgb4: Don't call t4_slow_intr_handler when we're not the Master PF

Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0aac3f56
...@@ -724,7 +724,8 @@ static irqreturn_t t4_nondata_intr(int irq, void *cookie) ...@@ -724,7 +724,8 @@ static irqreturn_t t4_nondata_intr(int irq, void *cookie)
adap->swintr = 1; adap->swintr = 1;
t4_write_reg(adap, MYPF_REG(PL_PF_INT_CAUSE_A), v); t4_write_reg(adap, MYPF_REG(PL_PF_INT_CAUSE_A), v);
} }
t4_slow_intr_handler(adap); if (adap->flags & MASTER_PF)
t4_slow_intr_handler(adap);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
...@@ -2238,7 +2238,8 @@ static irqreturn_t t4_intr_msi(int irq, void *cookie) ...@@ -2238,7 +2238,8 @@ static irqreturn_t t4_intr_msi(int irq, void *cookie)
{ {
struct adapter *adap = cookie; struct adapter *adap = cookie;
t4_slow_intr_handler(adap); if (adap->flags & MASTER_PF)
t4_slow_intr_handler(adap);
process_intrq(adap); process_intrq(adap);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
...@@ -2253,7 +2254,8 @@ static irqreturn_t t4_intr_intx(int irq, void *cookie) ...@@ -2253,7 +2254,8 @@ static irqreturn_t t4_intr_intx(int irq, void *cookie)
struct adapter *adap = cookie; struct adapter *adap = cookie;
t4_write_reg(adap, MYPF_REG(PCIE_PF_CLI_A), 0); t4_write_reg(adap, MYPF_REG(PCIE_PF_CLI_A), 0);
if (t4_slow_intr_handler(adap) | process_intrq(adap)) if (((adap->flags & MASTER_PF) && t4_slow_intr_handler(adap)) |
process_intrq(adap))
return IRQ_HANDLED; return IRQ_HANDLED;
return IRQ_NONE; /* probably shared interrupt */ return IRQ_NONE; /* probably shared interrupt */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment