From: Dinh Nguyen <dinguyen@opensource.altera.com>
To: Marek Vasut <marex@denx.de>, <netdev@vger.kernel.org>
Cc: <peppe.cavallaro@st.com>, <alexandre.torgue@st.com>,
Matthew Gerlach <mgerlach@opensource.altera.com>,
"David S . Miller" <davem@davemloft.net>
Subject: Re: [PATCH V2] net: stmmac: socfpga: Remove re-registration of reset controller
Date: Thu, 21 Apr 2016 09:52:00 -0500 [thread overview]
Message-ID: <5718E910.10409@opensource.altera.com> (raw)
In-Reply-To: <5718BEDB.4010303@denx.de>
On 04/21/2016 06:51 AM, Marek Vasut wrote:
>>>>
>>>> if you modify the patch to call stmmac_dvr_probe() before calling
>>>> socfpga_dwmac_init(), then you would already have the reset control
>>>> information.
>>>
>>> I was under the impression that you must call socfpga_dwmac_init()
>>> before stmmac_dvr_probe() for whatever hardware-related reason. If
>>> you are absolutely certain this is not necessary, then that's just
>>> perfect and the patch can be simplified even further -- just remove
>>> the call to socfpga_dwmac_init() from probe altogether , the dwmac
>>> core code will call plat_dat->init at the end of probe .
>>>
>>> So shall we do that ? I am happy to spin V3 like that if you confirm
>>> that it's legal to do things in the aforementioned order.
>>>
>>
>> AFAICT, I don't see any reason why the socfpga_dwmac_init() has to go
>> before the stmmac_dvr_probe(). I tested this by using U-Boot to put the
>> PHY modes in the system manager into a different mode, and put the
>> ethernet IP into reset. Linux was able to use ethernet just fine with
>> the aformentioned order.
>
> Ha, the dwmac code does not call the ->init, so you have to call it from
> the socfpga-dwmac probe afterall. I will send a V3 now and do
> it just like you suggested. I will send a RFC for calling ->init and
> ->exit from the stmmac common code too.
>
Yes, I saw this too. Was going to wait until after this patch to
follow-up. Looks like you already did! Thanks!
Dinh
prev parent reply other threads:[~2016-04-21 14:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-20 0:05 [PATCH V2] net: stmmac: socfpga: Remove re-registration of reset controller Marek Vasut
2016-04-20 2:04 ` Dinh Nguyen
2016-04-20 9:04 ` Marek Vasut
2016-04-20 21:17 ` Dinh Nguyen
2016-04-20 22:27 ` Marek Vasut
2016-04-21 2:44 ` Dinh Nguyen
2016-04-21 11:51 ` Marek Vasut
2016-04-21 14:52 ` Dinh Nguyen [this message]
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=5718E910.10409@opensource.altera.com \
--to=dinguyen@opensource.altera.com \
--cc=alexandre.torgue@st.com \
--cc=davem@davemloft.net \
--cc=marex@denx.de \
--cc=mgerlach@opensource.altera.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
/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.