All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane Reichert" <sreichert@sepro-group.com>
To: xenomai@xenomai.org
Subject: [Xenomai] TR: RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7)
Date: Fri, 17 Aug 2018 13:39:50 +0200 (CEST)	[thread overview]
Message-ID: <007001d4361f$01d02010$05706030$@sepro-group.com> (raw)
In-Reply-To: 

Hello Philippe,

I have noticed in the file fec.c that the function fec_enet_ioctl did not 
match the prototype of do_ioctl (it looks like "request" and "arg" 
parameters are switched). Is it a mistake ?

(I tried to switch these parameters but it didn't solved my problem as 
well).

Stephane


-----Message d'origine-----
De : Philippe Gerum [mailto:rpm@xenomai.org] Envoyé : vendredi 17 août 2018 
10:28 À : Stéphane Reichert; xenomai@xenomai.org Objet : Re: [Xenomai] 
RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7)

On 08/16/2018 03:23 PM, Stéphane Reichert wrote:
> Hello,
>
>
>
> We are trying to use the rt_fec driver for RTNet on a iMX6Q board.
>
>
>
> I have patched the KConfig to add this driver on buildroot and it
> compiles perfectly.
>
>
>
> But now, I am not able to use it on our board (it works when I “rtping”
> the loopback,
>
> but it doesn’t work if I try to ping an external board).

The fec driver does not seem to tell the stack about the carrier enable 
state. If so, you may want to try the following patch:

diff --git a/kernel/drivers/net/drivers/fec.c
b/kernel/drivers/net/drivers/fec.c
index 36870ba16..d94ec690f 100644
--- a/kernel/drivers/net/drivers/fec.c
+++ b/kernel/drivers/net/drivers/fec.c
@@ -1323,6 +1323,7 @@ fec_enet_open(struct rtnet_device *ndev)
 		return ret;
 	}
 	phy_start(fep->phy_dev);
+	rtnetif_carrier_on(ndev);
 	rtnetif_start_queue(ndev);
 	fep->opened = 1;
 	return 0;

--
Philippe.


  parent reply	other threads:[~2018-08-17 11:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-16 13:23 [Xenomai] RTNet - how to setup rt_fec on IMX6Q (Xenomai 3.0.7) Stéphane Reichert
2018-08-17  8:27 ` Philippe Gerum
2018-08-17 11:39   ` [Xenomai] TR: " Stéphane Reichert
2018-08-17 11:39   ` Stéphane Reichert [this message]
2018-08-21 21:19     ` Edouard Tisserant
2018-08-22  8:24       ` Stéphane Reichert
2018-08-23 21:09         ` Edouard Tisserant
2018-08-24  7:07           ` Stéphane Reichert
2018-09-10 15:24             ` Edouard Tisserant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='007001d4361f$01d02010$05706030$@sepro-group.com' \
    --to=sreichert@sepro-group.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.