tg3: Fix INTx fallback when MSI fails
authorAndre Detsch <adetsch@br.ibm.com>
Mon, 26 Apr 2010 07:27:07 +0000 (07:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2010 18:15:49 +0000 (11:15 -0700)
commitdc8bf1b1a6edfc92465526de19772061302f0929
tree540352807d398aee08c4180cc50d088e15c547ec
parent6443bb1fc2050ca2b6585a3fa77f7833b55329ed
tg3: Fix INTx fallback when MSI fails

tg3: Fix INTx fallback when MSI fails

MSI setup changes the value of irq_vec in struct tg3 *tp.
This attribute must be taken into account and restored before
we try to do a new request_irq for INTx fallback.

In powerpc, the original code was leading to an EINVAL return within
request_irq, because the driver was trying to use the disabled MSI
virtual irq number instead of tp->pdev->irq.

Signed-off-by: Andre Detsch <adetsch@br.ibm.com>
Acked-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c