* [PATCH] s2io: fixing a ethtool test that is broken
@ 2009-11-10 19:44 leitao
2009-11-12 18:59 ` Sivakumar Subramani
2009-11-14 3:57 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: leitao @ 2009-11-10 19:44 UTC (permalink / raw)
To: netdev; +Cc: sreenivasa.honnur, Breno Leitao
Due commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff, it is not more
possible to pci_restore_state() more than once without calling
pci_save_state() in the middle.
Actually running a ethtool test on s2io makes the card inactive,
and it needs to unload/reload the module to fix.
This patch just save the state just after it restore in order to
keep the old behaviour
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
drivers/net/s2io.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index ddccf5f..0dd7839 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -3494,6 +3494,7 @@ static void s2io_reset(struct s2io_nic *sp)
/* Restore the PCI state saved during initialization. */
pci_restore_state(sp->pdev);
+ pci_save_state(sp->pdev);
pci_read_config_word(sp->pdev, 0x2, &val16);
if (check_pci_device_id(val16) != (u16)PCI_ANY_ID)
break;
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* RE: [PATCH] s2io: fixing a ethtool test that is broken
2009-11-10 19:44 [PATCH] s2io: fixing a ethtool test that is broken leitao
@ 2009-11-12 18:59 ` Sivakumar Subramani
2009-11-14 3:36 ` David Miller
2009-11-14 3:57 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: Sivakumar Subramani @ 2009-11-12 18:59 UTC (permalink / raw)
To: leitao, netdev; +Cc: Sreenivasa Honnur, Ramkrishna Vepa
[Siva] Reviewed the patch. Please accept it.
Acked-by: Sivakumar Subramani <sivakumar.subramani@neterion.com>
-----Original Message-----
From: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org]
On Behalf Of leitao@linux.vnet.ibm.com
Sent: Tuesday, November 10, 2009 11:44 AM
To: netdev@vger.kernel.org
Cc: Sreenivasa Honnur; Breno Leitao
Subject: [PATCH] s2io: fixing a ethtool test that is broken
Due commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff, it is not more
possible to pci_restore_state() more than once without calling
pci_save_state() in the middle.
Actually running a ethtool test on s2io makes the card inactive,
and it needs to unload/reload the module to fix.
This patch just save the state just after it restore in order to
keep the old behaviour
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
---
drivers/net/s2io.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c
index ddccf5f..0dd7839 100644
--- a/drivers/net/s2io.c
+++ b/drivers/net/s2io.c
@@ -3494,6 +3494,7 @@ static void s2io_reset(struct s2io_nic *sp)
/* Restore the PCI state saved during initialization. */
pci_restore_state(sp->pdev);
+ pci_save_state(sp->pdev);
pci_read_config_word(sp->pdev, 0x2, &val16);
if (check_pci_device_id(val16) != (u16)PCI_ANY_ID)
break;
--
1.6.0.2
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] s2io: fixing a ethtool test that is broken
2009-11-12 18:59 ` Sivakumar Subramani
@ 2009-11-14 3:36 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-11-14 3:36 UTC (permalink / raw)
To: Sivakumar.Subramani; +Cc: leitao, netdev, Sreenivasa.Honnur, Ramkrishna.Vepa
From: "Sivakumar Subramani" <Sivakumar.Subramani@neterion.com>
Date: Thu, 12 Nov 2009 13:59:53 -0500
> [Siva] Reviewed the patch. Please accept it.
>
> Acked-by: Sivakumar Subramani <sivakumar.subramani@neterion.com>
Please use reasonable mechanisms to reply to patches when you review
them. Something in your mail client software or elsewhere has messed
with the Message-Id and other elements of the email headers, and
therefore the threading of messages so that patchwork and other tools
can attach your reply to the patch posting itself simply do not work.
This makes more work for me and I am not going to go searching for
your replies by hand.
So you should fix this because otherwise your review reply ACKs
will get lost.
Also you have this very non-standard way to attributing your content
by adding these "[Name]" tags. Please don't do that, it is
non-standard and therefore most people don't understand it at all.
The normal email reply quoting mechanisms of your email client will
let us know exactly what parts are written by you, and what parts are
said by other people in quoted text.
Thank you.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] s2io: fixing a ethtool test that is broken
2009-11-10 19:44 [PATCH] s2io: fixing a ethtool test that is broken leitao
2009-11-12 18:59 ` Sivakumar Subramani
@ 2009-11-14 3:57 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2009-11-14 3:57 UTC (permalink / raw)
To: leitao; +Cc: netdev, sreenivasa.honnur
From: leitao@linux.vnet.ibm.com
Date: Tue, 10 Nov 2009 14:44:23 -0500
> Due commit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff, it is not more
> possible to pci_restore_state() more than once without calling
> pci_save_state() in the middle.
>
> Actually running a ethtool test on s2io makes the card inactive,
> and it needs to unload/reload the module to fix.
>
> This patch just save the state just after it restore in order to
> keep the old behaviour
>
> Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-14 3:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-10 19:44 [PATCH] s2io: fixing a ethtool test that is broken leitao
2009-11-12 18:59 ` Sivakumar Subramani
2009-11-14 3:36 ` David Miller
2009-11-14 3:57 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox