Skip to content

Commit bdad69b

Browse files
author
Jeff Garzik
committed
Merge branch 'e1000-7.0.38-k4' of git://lost.foo-projects.org/~ahkok/git/netdev-2.6 into upstream
2 parents 9528454 + 440c052 commit bdad69b

File tree

5 files changed

+104
-135
lines changed

5 files changed

+104
-135
lines changed

drivers/net/e1000/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################################################################################
22
#
33
#
4-
# Copyright(c) 1999 - 2003 Intel Corporation. All rights reserved.
4+
# Copyright(c) 1999 - 2006 Intel Corporation. All rights reserved.
55
#
66
# This program is free software; you can redistribute it and/or modify it
77
# under the terms of the GNU General Public License as published by the Free

drivers/net/e1000/e1000_ethtool.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -865,15 +865,15 @@ static int
865865
e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
866866
{
867867
struct net_device *netdev = adapter->netdev;
868-
uint32_t mask, i=0, shared_int = TRUE;
869-
uint32_t irq = adapter->pdev->irq;
868+
uint32_t mask, i=0, shared_int = TRUE;
869+
uint32_t irq = adapter->pdev->irq;
870870

871871
*data = 0;
872872

873873
/* Hook up test interrupt handler just for this test */
874-
if (!request_irq(irq, &e1000_test_intr, 0, netdev->name, netdev)) {
875-
shared_int = FALSE;
876-
} else if (request_irq(irq, &e1000_test_intr, SA_SHIRQ,
874+
if (!request_irq(irq, &e1000_test_intr, 0, netdev->name, netdev)) {
875+
shared_int = FALSE;
876+
} else if (request_irq(irq, &e1000_test_intr, SA_SHIRQ,
877877
netdev->name, netdev)){
878878
*data = 1;
879879
return -1;
@@ -889,22 +889,22 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
889889
/* Interrupt to test */
890890
mask = 1 << i;
891891

892-
if (!shared_int) {
893-
/* Disable the interrupt to be reported in
894-
* the cause register and then force the same
895-
* interrupt and see if one gets posted. If
896-
* an interrupt was posted to the bus, the
897-
* test failed.
898-
*/
899-
adapter->test_icr = 0;
900-
E1000_WRITE_REG(&adapter->hw, IMC, mask);
901-
E1000_WRITE_REG(&adapter->hw, ICS, mask);
902-
msec_delay(10);
903-
904-
if (adapter->test_icr & mask) {
905-
*data = 3;
906-
break;
907-
}
892+
if (!shared_int) {
893+
/* Disable the interrupt to be reported in
894+
* the cause register and then force the same
895+
* interrupt and see if one gets posted. If
896+
* an interrupt was posted to the bus, the
897+
* test failed.
898+
*/
899+
adapter->test_icr = 0;
900+
E1000_WRITE_REG(&adapter->hw, IMC, mask);
901+
E1000_WRITE_REG(&adapter->hw, ICS, mask);
902+
msec_delay(10);
903+
904+
if (adapter->test_icr & mask) {
905+
*data = 3;
906+
break;
907+
}
908908
}
909909

910910
/* Enable the interrupt to be reported in
@@ -923,7 +923,7 @@ e1000_intr_test(struct e1000_adapter *adapter, uint64_t *data)
923923
break;
924924
}
925925

926-
if (!shared_int) {
926+
if (!shared_int) {
927927
/* Disable the other interrupts to be reported in
928928
* the cause register and then force the other
929929
* interrupts and see if any get posted. If

0 commit comments

Comments
 (0)