* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 8:50 ` Stefano Babic
@ 2013-05-31 10:16 ` Ruud Commandeur
2013-05-31 12:54 ` Ruud Commandeur
2013-05-31 14:19 ` Wolfgang Denk
2 siblings, 0 replies; 23+ messages in thread
From: Ruud Commandeur @ 2013-05-31 10:16 UTC (permalink / raw)
To: u-boot
Stefano, Wolfgang,
Thanks for your comments. The CONFIG_ARP_TIMEOUT was not set, so it will
take the default of 5 seconds. This is also the time it takes for the
first timeout. If I add a
#define CONFIG_ARP_TIMEOUT 200UL
to my board config, I see the ARP request succeed after 2 to 4 attempts.
I always see only one ARP request in Wireshark. Apparently it takes 200
- 600 msecs for the phy to wake up and respond (as Wolfgang assumes as
possible and very plausible cause).
Increasing the ARP_TIMEOUT to some high value like 15000UL has no use,
the 5 seonds tftp timeout comes in earier and a new ARP request is sent
(which is answered as before).
So adding this timeout define will speed things up, and I guess I should
either also increase the CONFIG_NET_RETRY_COUNT or set the ARP_TIMEOUT
to 400 to prevent exceeding the retry count.
But of course it would be nicer to fix the actual cause. I could try and
find a way to keep the phy alive or at least try to proof that it is the
phy (the LAN8720A) that causes this. To be continued...
Regards,
Ruud
> -----Oorspronkelijk bericht-----
> Van: Stefano Babic [mailto:sbabic at denx.de]
> Verzonden: vrijdag 31 mei 2013 10:50
> Aan: Ruud Commandeur
> CC: U-Boot list; sbabic at denx.de
> Onderwerp: Re: TFTP timeouts, i.mx fec problem?
>
> On 31/05/2013 08:56, Ruud Commandeur wrote:
> > Hi everyone,
> >
>
> Hi Ruud,
>
> > When tracing the code, it could see that fec_send is called
> for the 1st
> > ARP request and also the return value indicates that
> sending should have
> > been succeeded (fec_send: status 0xc00 index 0 ret 0). But
> no package is
> > actually sent. My first guess would be that it has
> something to do with
> > the TBD / DMA part. The fec_tbd_init also shows some note
> about a rare
> > hardware condition regarding the WRAP bit (all in
> > drivers/net/fec_mxc.c). Could it be that there is still
> another issue
> > regarding the chip that causes this? If I do a tftp
> transfer from linux
> > on the same board and in the same network, it does start
> immediately.
>
> At first glance the problem should be with the set up of the phy. It
> could take longer as expected, or there are some issues with the
> specific PHY of the board. An issue in general code of FEC
> driver is not
> probable, because the same code runs on most of i.MXes
> without problems.
> From your report, it looks like that the link of the phy is not yet
> active when the fec_send is called, and then no ARP message is sent.
> Could you try setting #define CONFIG_ARP_TIMEOUT to some high value
> (when it is set, the value is often 200mS) to check if the issue
> disappears ?
>
> Best regards,
> Stefano Babic
>
> --
> =====================================================================
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
> =====================================================================
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 8:50 ` Stefano Babic
2013-05-31 10:16 ` Ruud Commandeur
@ 2013-05-31 12:54 ` Ruud Commandeur
2013-05-31 14:19 ` Wolfgang Denk
2 siblings, 0 replies; 23+ messages in thread
From: Ruud Commandeur @ 2013-05-31 12:54 UTC (permalink / raw)
To: u-boot
No real success here yet. By using a scope I did see that at least the
MAC is trying to send the 1st packet (activity on RMII TXD part). On the
Phy, the clock is running, LED's are blinking, but the 1st packet
doesn't come out. Although: occasionally it does. Also no clues found in
the datasheet of the phy.
For now, I have set the ARP Timeout to 200 msecs and the retries to 15.
Maybe next week I give it another try with some fresh thoughts.
Regards,
Ruud
> -----Oorspronkelijk bericht-----
> Van: Ruud Commandeur
> Verzonden: vrijdag 31 mei 2013 12:17
> Aan: 'Stefano Babic'
> CC: U-Boot list; 'Wolfgang Denk'
> Onderwerp: RE: TFTP timeouts, i.mx fec problem?
>
> Stefano, Wolfgang,
>
> Thanks for your comments. The CONFIG_ARP_TIMEOUT was not set,
> so it will take the default of 5 seconds. This is also the
> time it takes for the first timeout. If I add a
>
> #define CONFIG_ARP_TIMEOUT 200UL
>
> to my board config, I see the ARP request succeed after 2 to
> 4 attempts. I always see only one ARP request in Wireshark.
> Apparently it takes 200 - 600 msecs for the phy to wake up
> and respond (as Wolfgang assumes as possible and very
> plausible cause).
>
> Increasing the ARP_TIMEOUT to some high value like 15000UL
> has no use, the 5 seonds tftp timeout comes in earier and a
> new ARP request is sent (which is answered as before).
>
> So adding this timeout define will speed things up, and I
> guess I should either also increase the
> CONFIG_NET_RETRY_COUNT or set the ARP_TIMEOUT to 400 to
> prevent exceeding the retry count.
>
> But of course it would be nicer to fix the actual cause. I
> could try and find a way to keep the phy alive or at least
> try to proof that it is the phy (the LAN8720A) that causes
> this. To be continued...
>
> Regards,
>
> Ruud
>
>
>
>
> > -----Oorspronkelijk bericht-----
> > Van: Stefano Babic [mailto:sbabic at denx.de]
> > Verzonden: vrijdag 31 mei 2013 10:50
> > Aan: Ruud Commandeur
> > CC: U-Boot list; sbabic at denx.de
> > Onderwerp: Re: TFTP timeouts, i.mx fec problem?
> >
> > On 31/05/2013 08:56, Ruud Commandeur wrote:
> > > Hi everyone,
> > >
> >
> > Hi Ruud,
> >
> > > When tracing the code, it could see that fec_send is called
> > for the 1st
> > > ARP request and also the return value indicates that
> > sending should have
> > > been succeeded (fec_send: status 0xc00 index 0 ret 0). But
> > no package is
> > > actually sent. My first guess would be that it has
> > something to do with
> > > the TBD / DMA part. The fec_tbd_init also shows some note
> > about a rare
> > > hardware condition regarding the WRAP bit (all in
> > > drivers/net/fec_mxc.c). Could it be that there is still
> > another issue
> > > regarding the chip that causes this? If I do a tftp
> > transfer from linux
> > > on the same board and in the same network, it does start
> > immediately.
> >
> > At first glance the problem should be with the set up of the phy. It
> > could take longer as expected, or there are some issues with the
> > specific PHY of the board. An issue in general code of FEC
> > driver is not
> > probable, because the same code runs on most of i.MXes
> > without problems.
> > From your report, it looks like that the link of the phy is not yet
> > active when the fec_send is called, and then no ARP message is sent.
> > Could you try setting #define CONFIG_ARP_TIMEOUT to some high value
> > (when it is set, the value is often 200mS) to check if the issue
> > disappears ?
> >
> > Best regards,
> > Stefano Babic
> >
> > --
> >
> =====================================================================
> > DENX Software Engineering GmbH, MD: Wolfgang Denk &
> Detlev Zundel
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194
> Groebenzell, Germany
> > Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email:
> sbabic at denx.de
> >
> =====================================================================
> >
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 8:50 ` Stefano Babic
2013-05-31 10:16 ` Ruud Commandeur
2013-05-31 12:54 ` Ruud Commandeur
@ 2013-05-31 14:19 ` Wolfgang Denk
2013-05-31 14:36 ` Ruud Commandeur
2013-05-31 15:46 ` Stefano Babic
2 siblings, 2 replies; 23+ messages in thread
From: Wolfgang Denk @ 2013-05-31 14:19 UTC (permalink / raw)
To: u-boot
Dear Stefano Babic,
In message <51A86445.3040703@denx.de> you wrote:
>
> At first glance the problem should be with the set up of the phy. It
> could take longer as expected, or there are some issues with the
> specific PHY of the board. An issue in general code of FEC driver is not
> probable, because the same code runs on most of i.MXes without problems.
Well, we do have this first-ARP-failing problem on a number of boards,
and especially the i.MX based boards appear to be affected - just
check which boards set CONFIG_ARP_TIMEOUT in their board configs:
mx31ads
mx35pdk
mx51evk
mx53ard
mx53evk
mx53loco
mx53smd
mx6qarm2
mx6qsabre
qong
woodburn
Actually these are only_ i.MX based boards!
> From your report, it looks like that the link of the phy is not yet
> active when the fec_send is called, and then no ARP message is sent.
The question is if there is no better way to wait for the PHY to
become (really) ready?
> Could you try setting #define CONFIG_ARP_TIMEOUT to some high value
> (when it is set, the value is often 200mS) to check if the issue
> disappears ?
Indeed, this should help. But it remains just a workaround, it ain't
a real fix.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I can't say I've ever been lost, but I was bewildered once for three
days. - Daniel Boone (Attributed)
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 14:19 ` Wolfgang Denk
@ 2013-05-31 14:36 ` Ruud Commandeur
2013-05-31 15:40 ` Stefano Babic
2013-05-31 15:46 ` Stefano Babic
1 sibling, 1 reply; 23+ messages in thread
From: Ruud Commandeur @ 2013-05-31 14:36 UTC (permalink / raw)
To: u-boot
Dear Wolfgang, Stefano,
I'm pretty sure I found the cause:
For each tftp transfer the ethernet part is re-initialised. This means
that also fec_init is called. And in fec_init this piece of code
resides:
#ifndef CONFIG_PHYLIB
if (fec->xcv_type != SEVENWIRE)
miiphy_restart_aneg(dev);
#endif
This means (in this case) that miiphy_restart_aneg() is called. And here
the phy gets a software reset and autonegotiation restart command, wich
can take up to 500 msces according to the datasheet. So when we would
like to send out the 1st ARP request, the phy is busy with restart and
negotiation. If I skip these commands, any tftp transfer is fast as
lightning! About 150 msecs between pressing enter and the completion of
a small file (68 bytes).
Of course, re-initialisation of all parts for each transfer sounds like
the safest solution. But perhaps the phy could only be reset /
initialised once after start-up. Would this be an option?
Regards,
Ruud
> -----Oorspronkelijk bericht-----
> Van: Wolfgang Denk [mailto:wd at denx.de]
> Verzonden: vrijdag 31 mei 2013 16:19
> Aan: Stefano Babic
> CC: Ruud Commandeur; U-Boot list
> Onderwerp: Re: [U-Boot] TFTP timeouts, i.mx fec problem?
>
> Dear Stefano Babic,
>
> In message <51A86445.3040703@denx.de> you wrote:
> >
> > At first glance the problem should be with the set up of the phy. It
> > could take longer as expected, or there are some issues with the
> > specific PHY of the board. An issue in general code of FEC
> driver is not
> > probable, because the same code runs on most of i.MXes
> without problems.
>
> Well, we do have this first-ARP-failing problem on a number of boards,
> and especially the i.MX based boards appear to be affected - just
> check which boards set CONFIG_ARP_TIMEOUT in their board configs:
>
> mx31ads
> mx35pdk
> mx51evk
> mx53ard
> mx53evk
> mx53loco
> mx53smd
> mx6qarm2
> mx6qsabre
> qong
> woodburn
>
> Actually these are only_ i.MX based boards!
>
> > From your report, it looks like that the link of the phy is not yet
> > active when the fec_send is called, and then no ARP message is sent.
>
> The question is if there is no better way to wait for the PHY to
> become (really) ready?
>
> > Could you try setting #define CONFIG_ARP_TIMEOUT to some high value
> > (when it is set, the value is often 200mS) to check if the issue
> > disappears ?
>
> Indeed, this should help. But it remains just a workaround, it ain't
> a real fix.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
> I can't say I've ever been lost, but I was bewildered once for three
> days. - Daniel Boone (Attributed)
>
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 14:36 ` Ruud Commandeur
@ 2013-05-31 15:40 ` Stefano Babic
2013-05-31 18:56 ` Wolfgang Denk
0 siblings, 1 reply; 23+ messages in thread
From: Stefano Babic @ 2013-05-31 15:40 UTC (permalink / raw)
To: u-boot
Hi Ruud,
On 31/05/2013 16:36, Ruud Commandeur wrote:
> Dear Wolfgang, Stefano,
>
> I'm pretty sure I found the cause:
>
> For each tftp transfer the ethernet part is re-initialised. This means
> that also fec_init is called. And in fec_init this piece of code
> resides:
>
> #ifndef CONFIG_PHYLIB
> if (fec->xcv_type != SEVENWIRE)
> miiphy_restart_aneg(dev);
> #endif
>
Indeed, this is wanted. As design, U-Boot should not touch any interface
that is not needed and must close/reset the interface after usage. The
main reason is that the kernel is expecting a fresh powered on system,
and we get a lot of cases (USB, for instance) when the kernel cannot go
on because the bootloader let the controller in an unknown status.
> This means (in this case) that miiphy_restart_aneg() is called. And here
> the phy gets a software reset and autonegotiation restart command, wich
> can take up to 500 msces according to the datasheet. So when we would
> like to send out the 1st ARP request, the phy is busy with restart and
> negotiation. If I skip these commands, any tftp transfer is fast as
> lightning! About 150 msecs between pressing enter and the completion of
> a small file (68 bytes).
>
> Of course, re-initialisation of all parts for each transfer sounds like
> the safest solution.
We discussed this issue many times, yes.
> But perhaps the phy could only be reset /
> initialised once after start-up. Would this be an option?
I know that there is an exception using netconsole - if the FEC driver
stops after each packet, it could not work. But again, letting the
controller in a well known status should be a must before booting the
kernel. In current code, eth_halt() is called before booting linux only
if NETCONSOLE is activated (common/cmd_bootm.c).
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 15:40 ` Stefano Babic
@ 2013-05-31 18:56 ` Wolfgang Denk
0 siblings, 0 replies; 23+ messages in thread
From: Wolfgang Denk @ 2013-05-31 18:56 UTC (permalink / raw)
To: u-boot
Dear Stefano,
[Joe added to Cc: list]
In message <51A8C479.6010309@denx.de> you wrote:
>
> > This means (in this case) that miiphy_restart_aneg() is called. And here
> > the phy gets a software reset and autonegotiation restart command, wich
> > can take up to 500 msces according to the datasheet. So when we would
> > like to send out the 1st ARP request, the phy is busy with restart and
> > negotiation. If I skip these commands, any tftp transfer is fast as
> > lightning! About 150 msecs between pressing enter and the completion of
> > a small file (68 bytes).
> >
> > Of course, re-initialisation of all parts for each transfer sounds like
> > the safest solution.
>
> We discussed this issue many times, yes.
I still wonder if we should not be able to wait until the PHY has
complete auto-negotiation, before we send the first packet. There
should be some status bit available we could poll for, rathr than
relying on a delay (which will always have to be tuned for the worst
case)?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Quote from a recent meeting: "We are going to continue having these
meetings everyday until I find out why no work is getting done."
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 14:19 ` Wolfgang Denk
2013-05-31 14:36 ` Ruud Commandeur
@ 2013-05-31 15:46 ` Stefano Babic
2013-05-31 16:00 ` Fabio Estevam
2013-05-31 18:58 ` Wolfgang Denk
1 sibling, 2 replies; 23+ messages in thread
From: Stefano Babic @ 2013-05-31 15:46 UTC (permalink / raw)
To: u-boot
Hi Wolfgang,
>
>> From your report, it looks like that the link of the phy is not yet
>> active when the fec_send is called, and then no ARP message is sent.
>
> The question is if there is no better way to wait for the PHY to
> become (really) ready?
The phy is reinitialized after each transaction - the safiest condition
to boot afterwards the kernel. Or we need a way to stop the phy only
before booting, letting it on for the whole time. But again, this opens
other issues, because we cannot get as in linux if the lan cable is
removed (or worse, if it is connected to another switch with a different
speed).
>
>> Could you try setting #define CONFIG_ARP_TIMEOUT to some high value
>> (when it is set, the value is often 200mS) to check if the issue
>> disappears ?
>
> Indeed, this should help. But it remains just a workaround, it ain't
> a real fix.
Right ;-(
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 15:46 ` Stefano Babic
@ 2013-05-31 16:00 ` Fabio Estevam
2013-05-31 18:58 ` Wolfgang Denk
1 sibling, 0 replies; 23+ messages in thread
From: Fabio Estevam @ 2013-05-31 16:00 UTC (permalink / raw)
To: u-boot
Hi Stefano,
On Fri, May 31, 2013 at 12:46 PM, Stefano Babic <sbabic@denx.de> wrote:
> The phy is reinitialized after each transaction - the safiest condition
> to boot afterwards the kernel. Or we need a way to stop the phy only
> before booting, letting it on for the whole time. But again, this opens
> other issues, because we cannot get as in linux if the lan cable is
> removed (or worse, if it is connected to another switch with a different
> speed).
In the kernel we can reset the fec phy, so that we can always
guarantee it is on a known-state.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 15:46 ` Stefano Babic
2013-05-31 16:00 ` Fabio Estevam
@ 2013-05-31 18:58 ` Wolfgang Denk
2013-05-31 19:09 ` Troy Kisky
1 sibling, 1 reply; 23+ messages in thread
From: Wolfgang Denk @ 2013-05-31 18:58 UTC (permalink / raw)
To: u-boot
Dear Stefano Babic,
In message <51A8C5DA.3090605@denx.de> you wrote:
>
> > The question is if there is no better way to wait for the PHY to
> > become (really) ready?
>
> The phy is reinitialized after each transaction - the safiest condition
> to boot afterwards the kernel. Or we need a way to stop the phy only
Yes, that is clear, we fully agree on that.
But can we not test for "autoneogitation completed, link up and
running" before we send the first packet?
Or rather - why do we have this issue appearently only on i.MX? We
don't see this on other ARM or on PowerPC?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The use of anthropomorphic terminology when dealing with computing
systems is a symptom of professional immaturity. -- Edsger Dijkstra
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 18:58 ` Wolfgang Denk
@ 2013-05-31 19:09 ` Troy Kisky
2013-06-01 9:18 ` Ruud Commandeur
0 siblings, 1 reply; 23+ messages in thread
From: Troy Kisky @ 2013-05-31 19:09 UTC (permalink / raw)
To: u-boot
On 5/31/2013 11:58 AM, Wolfgang Denk wrote:
> Dear Stefano Babic,
>
> In message <51A8C5DA.3090605@denx.de> you wrote:
>>> The question is if there is no better way to wait for the PHY to
>>> become (really) ready?
>> The phy is reinitialized after each transaction - the safiest condition
>> to boot afterwards the kernel. Or we need a way to stop the phy only
> Yes, that is clear, we fully agree on that.
>
> But can we not test for "autoneogitation completed, link up and
> running" before we send the first packet?
>
> Or rather - why do we have this issue appearently only on i.MX? We
> don't see this on other ARM or on PowerPC?
>
> Best regards,
>
> Wolfgang Denk
>
Think of this as incentive to convert to the board to PHYLIB.
Troy
^ permalink raw reply [flat|nested] 23+ messages in thread
* [U-Boot] TFTP timeouts, i.mx fec problem?
2013-05-31 19:09 ` Troy Kisky
@ 2013-06-01 9:18 ` Ruud Commandeur
0 siblings, 0 replies; 23+ messages in thread
From: Ruud Commandeur @ 2013-06-01 9:18 UTC (permalink / raw)
To: u-boot
In fact, it does wait for the link-up bit in miiphy_wait_aneg( ), which is called from fec_open. So after the init and before starting to send the first packet, you notice a delay for about half as second (enabled some debug printing) waiting for this bit to get set and then the phy should be up and running. I tried adding to wait for the the auto-neg complete bit as well, but this doesn't solve it. For some reason, the phy needs like 200 - 600 msecs extra in most cases before the 1st packet can be sent.
Some other remark: I get the idea of starting the kernel with a "virgin-like" phy and mac, which I will not argue about. But in fact the phy is reset and initialised bef?re each transfer. After the transfer, the mac is halted, but the phy is not reset again. Also, I am pretty sure (sorry, I'm not at the office right now), that the phy is reset if the kernel starts. I know this because I did some tweaking to the evk dts, where the phy reset pulse can be configured:
mac0: ethernet at 800f0000 {
phy-mode = "rmii";
pinctrl-names = "default";
pinctrl-0 = <&mac0_pins_a>;
phy-supply = <®_fec_3v3>;
phy-reset-gpios = <&gpio4 13 0>;
phy-reset-duration = <100>;
status = "okay";
};
Regards,
Ruud
-----Oorspronkelijk bericht-----
Van: Troy Kisky [mailto:troy.kisky at boundarydevices.com]
Verzonden: vr 31-5-2013 21:09
Aan: Wolfgang Denk
CC: Stefano Babic; Ruud Commandeur; U-Boot list
Onderwerp: Re: [U-Boot] TFTP timeouts, i.mx fec problem?
On 5/31/2013 11:58 AM, Wolfgang Denk wrote:
> Dear Stefano Babic,
>
> In message <51A8C5DA.3090605@denx.de> you wrote:
>>> The question is if there is no better way to wait for the PHY to
>>> become (really) ready?
>> The phy is reinitialized after each transaction - the safiest condition
>> to boot afterwards the kernel. Or we need a way to stop the phy only
> Yes, that is clear, we fully agree on that.
>
> But can we not test for "autoneogitation completed, link up and
> running" before we send the first packet?
>
> Or rather - why do we have this issue appearently only on i.MX? We
> don't see this on other ARM or on PowerPC?
>
> Best regards,
>
> Wolfgang Denk
>
Think of this as incentive to convert to the board to PHYLIB.
Troy
^ permalink raw reply [flat|nested] 23+ messages in thread