]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tg3: Fix INTx fallback when MSI fails
authorAndre Detsch <adetsch@br.ibm.com>
Mon, 26 Apr 2010 07:27:07 +0000 (07:27 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:02:53 +0000 (15:02 -0700)
commit4d3dbcf9153c50f485094fdc8c3edb9affb49be8
tree4662a1d4a5a3df34d04c4494c9ae9cbba7b0a713
parent023db2c37409af735e9eaee9bef89a1852e814fc
tg3: Fix INTx fallback when MSI fails

commit dc8bf1b1a6edfc92465526de19772061302f0929 upstream.

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>
Cc: Brandon Philips <bphilips@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/tg3.c