From: Giuseppe CAVALLARO <peppe.cavallaro@st.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: netdev@vger.kernel.org,
Shiraz Hashim <shiraz.linux.kernel@gmail.com>,
Alexandre Torgue <alexandre.torgue@st.com>,
linux-arm-kernel@lists.infradead.org,
Viresh Kumar <vireshk@kernel.org>
Subject: Re: stmmac still supporting spear600 ?
Date: Mon, 3 Apr 2017 08:16:50 +0200 [thread overview]
Message-ID: <0468e2fb-5a7d-97ec-c51c-2436a13dda69@st.com> (raw)
In-Reply-To: <20170402233028.60acf612@free-electrons.com>
Hi Thomas
I tested the SMSC on other platform (+ stmmac), not on SPEAr.
ok for reset, keep the radar on clock. Hmm, can you attach a piece of
log file to see the failure?
Regards
Peppe
On 4/2/2017 11:30 PM, Thomas Petazzoni wrote:
> Hello,
>
> On Thu, 23 Mar 2017 11:33:23 +0100, Giuseppe CAVALLARO wrote:
>
>>> Further research has revealed that everything is working fine on a
>>> platform with a Gigabit PHY connected via GMII.
>>>
>>> However, on a different platform (which I'm using) with a 10/100 PHY
>>> connected via MII, DMA_RESET never clears, and networking doesn't work.
>>> The SMSC PHY LAN8700 is also supposed to be providing the clock through
>>> its TX_CLK pin. I double checked, and both the MAC and PHY are in MII
>>> mode, but still no luck so far.
>>>
>>> Of course, if you have any suggestion or hint, I'm all ears :)
>> I can just you to keep the focus on clock configuration. I tested the
>> SMSC PHY LAN8700
>> w/o any issues on several platform. In MII both rx/tx_clk are provided
>> by PHY and if you
>> have an external oscillator this should be safe enough, indeed.
>> Another check you can do is about the reset time! Maybe you need to
>> change something
>> when reset the SMSC transceiver, try to increase the delay (if you use
>> GPIO to reset it).
> On which platform did you test with the LAN8700 PHY ? Was it on a
> SPEAr600 based platform ?
>
> If you tested on SPEAr600, what is the GMAC clock configuration (i.e
> the value of the GMAC_CFG_CTR and GMAC_CFG_SYNT registers) ?
>
> Regarding the PHY reset time, our PHY reset pin is not connected to a
> GPIO, but to the system reset logic, so Linux cannot reset the PHY with
> a GPIO.
>
> Thanks!
>
> Thomas
next prev parent reply other threads:[~2017-04-03 6:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 8:34 stmmac still supporting spear600 ? Thomas Petazzoni
2017-03-09 9:09 ` Giuseppe CAVALLARO
2017-03-09 9:19 ` Viresh Kumar
2017-03-09 9:32 ` Thomas Petazzoni
2017-03-09 14:56 ` Giuseppe CAVALLARO
2017-03-21 14:50 ` Thomas Petazzoni
2017-03-23 10:33 ` Giuseppe CAVALLARO
2017-04-02 21:30 ` Thomas Petazzoni
2017-04-03 6:16 ` Giuseppe CAVALLARO [this message]
2017-04-12 13:05 ` Thomas Petazzoni
2017-04-20 20:01 ` Thomas Petazzoni
2017-04-27 9:49 ` Thomas Petazzoni
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=0468e2fb-5a7d-97ec-c51c-2436a13dda69@st.com \
--to=peppe.cavallaro@st.com \
--cc=alexandre.torgue@st.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=netdev@vger.kernel.org \
--cc=shiraz.linux.kernel@gmail.com \
--cc=thomas.petazzoni@free-electrons.com \
--cc=vireshk@kernel.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 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).