* [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs.
@ 2011-07-07 13:16 nschichan
2011-07-07 14:10 ` [stable] " Greg KH
2011-07-08 16:21 ` Jeff Kirsher
0 siblings, 2 replies; 3+ messages in thread
From: nschichan @ 2011-07-07 13:16 UTC (permalink / raw)
To: Nicolas Schichan, Jeff Kirsher, Dirk Brandewie, netdev
Cc: Florian Fainelli, stable, Nicolas Schichan
From: Nicolas Schichan <nschichan@freebox.fr>
Interrupts about link lost or rx sequence errors are not reported by
the ce4100 hardware, leading to transitions from link UP to link DOWN
never being reported.
Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
---
drivers/net/e1000/e1000_main.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 76e8af0..a02333f 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -2357,13 +2357,16 @@ bool e1000_has_link(struct e1000_adapter *adapter)
struct e1000_hw *hw = &adapter->hw;
bool link_active = false;
- /* get_link_status is set on LSC (link status) interrupt or
- * rx sequence error interrupt. get_link_status will stay
- * false until the e1000_check_for_link establishes link
- * for copper adapters ONLY
+ /* get_link_status is set on LSC (link status) interrupt or rx
+ * sequence error interrupt (except on intel ce4100).
+ * get_link_status will stay false until the
+ * e1000_check_for_link establishes link for copper adapters
+ * ONLY
*/
switch (hw->media_type) {
case e1000_media_type_copper:
+ if (hw->mac_type == e1000_ce4100)
+ hw->get_link_status = 1;
if (hw->get_link_status) {
e1000_check_for_link(hw);
link_active = !hw->get_link_status;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [stable] [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs.
2011-07-07 13:16 [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs nschichan
@ 2011-07-07 14:10 ` Greg KH
2011-07-08 16:21 ` Jeff Kirsher
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2011-07-07 14:10 UTC (permalink / raw)
To: nschichan; +Cc: Jeff Kirsher, Dirk Brandewie, netdev, stable, Florian Fainelli
On Thu, Jul 07, 2011 at 03:16:57PM +0200, nschichan@freebox.fr wrote:
> From: Nicolas Schichan <nschichan@freebox.fr>
>
> Interrupts about link lost or rx sequence errors are not reported by
> the ce4100 hardware, leading to transitions from link UP to link DOWN
> never being reported.
>
> Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
> ---
> drivers/net/e1000/e1000_main.c | 11 +++++++----
> 1 files changed, 7 insertions(+), 4 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs.
2011-07-07 13:16 [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs nschichan
2011-07-07 14:10 ` [stable] " Greg KH
@ 2011-07-08 16:21 ` Jeff Kirsher
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Kirsher @ 2011-07-08 16:21 UTC (permalink / raw)
To: nschichan@freebox.fr
Cc: Brandewie, Dirk J, netdev@vger.kernel.org, Florian Fainelli,
stable@kernel.org
[-- Attachment #1: Type: text/plain, Size: 529 bytes --]
On Thu, 2011-07-07 at 06:16 -0700, nschichan@freebox.fr wrote:
> From: Nicolas Schichan <nschichan@freebox.fr>
>
> Interrupts about link lost or rx sequence errors are not reported by
> the ce4100 hardware, leading to transitions from link UP to link DOWN
> never being reported.
>
> Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
> ---
> drivers/net/e1000/e1000_main.c | 11 +++++++----
> 1 files changed, 7 insertions(+), 4 deletions(-)
Thank you for the patch. I have added the patch to my queue.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-08 16:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 13:16 [PATCH] e1000: always call e1000_check_for_link() on e1000_ce4100 MACs nschichan
2011-07-07 14:10 ` [stable] " Greg KH
2011-07-08 16:21 ` Jeff Kirsher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).