From: Ezequiel Garcia <ezequiel@collabora.com>
To: Peter Geis <pgwipeout@gmail.com>
Cc: Linux Kernel Network Developers <netdev@vger.kernel.org>,
"open list:ARM/Rockchip SoC..."
<linux-rockchip@lists.infradead.org>,
Jose Abreu <joabreu@synopsys.com>,
Heiko Stuebner <heiko@sntech.de>,
"David S . Miller" <davem@davemloft.net>,
Jakub Kicinski <kuba@kernel.org>,
David Wu <david.wu@rock-chips.com>,
kernel@collabora.com
Subject: Re: [PATCH net-next 3/3] net: stmmac: Add RK3566/RK3568 SoC support
Date: Wed, 14 Apr 2021 10:48:59 -0300 [thread overview]
Message-ID: <07eb0394bb98b8b4085f9febf6bcaad79a272f80.camel@collabora.com> (raw)
In-Reply-To: <CAMdYzYpyD1bTN+3Zaf4nGnN-O-c0u0koiCK45fLucL0T2+69+w@mail.gmail.com>
On Wed, 2021-04-14 at 07:03 -0400, Peter Geis wrote:
> On Tue, Apr 13, 2021 at 7:37 PM Ezequiel Garcia <ezequiel@collabora.com> wrote:
> >
> > On Tuesday, April 13, 2021 19:51 -03, Peter Geis <pgwipeout@gmail.com> wrote:
> >
> > > On Tue, Apr 13, 2021 at 5:03 PM Ezequiel Garcia <ezequiel@collabora.com> wrote:
> > > >
> > > > From: David Wu <david.wu@rock-chips.com>
> > > >
> > > > Add constants and callback functions for the dwmac present
> > > > on RK3566 and RK3568 SoCs. As can be seen, the base structure
> > > > is the same, only registers and the bits in them moved slightly.
> > > >
> > > > RK3568 supports two MACs, and RK3566 support just one.
> > >
> > > Tested this driver on the rk3566-quartz64.
> > > It fails to fully probe the gmac with the following error:
> > > [ 5.711127] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
> > > [ 5.714147] rk_gmac-dwmac fe010000.ethernet: no regulator found
> > > [ 5.714766] rk_gmac-dwmac fe010000.ethernet: clock input or output? (input).
> > > [ 5.715474] rk_gmac-dwmac fe010000.ethernet: TX delay(0x4f).
> > > [ 5.716058] rk_gmac-dwmac fe010000.ethernet: RX delay(0x25).
> > > [ 5.716694] rk_gmac-dwmac fe010000.ethernet: integrated PHY? (no).
> > > [ 5.718413] rk_gmac-dwmac fe010000.ethernet: clock input from PHY
> > > [ 5.724140] rk_gmac-dwmac fe010000.ethernet: init for RGMII
> > > [ 5.726802] rk_gmac-dwmac fe010000.ethernet: Version ID not available
> > > [ 5.727525] rk_gmac-dwmac fe010000.ethernet: DWMAC1000
> > > [ 5.728064] rk_gmac-dwmac fe010000.ethernet: DMA HW capability
> > > register supported
> > > [ 5.729026] rk_gmac-dwmac fe010000.ethernet: Normal descriptors
> > > [ 5.729624] rk_gmac-dwmac fe010000.ethernet: Ring mode enabled
> > > [ 5.731123] rk_gmac-dwmac fe010000.ethernet: Unbalanced pm_runtime_enable!
> > > [ 5.873329] libphy: stmmac: probed
> > > [ 5.905599] rk_gmac-dwmac fe010000.ethernet: Cannot register the MDIO bus
> > > [ 5.906335] rk_gmac-dwmac fe010000.ethernet: stmmac_dvr_probe: MDIO
> > > bus (id: 1) registration failed
> > > [ 5.914338] rk_gmac-dwmac: probe of fe010000.ethernet failed with error -5
> > >
> > > This is due to the lack of setting has_gmac4 = true.
> > >
> >
> > You are probably missing a "snps,dwmac-4.20a" in your compatible string, i.e.:
> > compatible = "rockchip,rk3566-gmac", "snps,dwmac-4.20a";
>
> Ah yes, I had disabled that because my variant took a different path.
> Thanks!
>
Is that a Tested-by :-) ?
Thanks,
Ezequiel
prev parent reply other threads:[~2021-04-14 13:49 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 21:02 [PATCH net-next 0/3] net: stmmac: RK3566/RK3568 Ezequiel Garcia
2021-04-13 21:02 ` [PATCH net-next 1/3] net: stmmac: Don't set has_gmac if has_gmac4 is set Ezequiel Garcia
2021-04-13 21:02 ` [PATCH net-next 2/3] net: stmmac: dwmac-rk: Check platform-specific ops Ezequiel Garcia
2021-04-13 21:02 ` [PATCH net-next 3/3] net: stmmac: Add RK3566/RK3568 SoC support Ezequiel Garcia
2021-04-13 22:51 ` Peter Geis
[not found] ` <1412-60762b80-423-d9eaa5@27901112>
2021-04-14 11:03 ` Peter Geis
2021-04-14 11:15 ` Heiko Stübner
2021-04-14 13:48 ` Ezequiel Garcia
2021-04-14 16:33 ` Chen-Yu Tsai
2021-04-14 16:35 ` Heiko Stübner
2021-04-14 16:44 ` Ezequiel Garcia
2021-04-14 13:48 ` Ezequiel Garcia [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=07eb0394bb98b8b4085f9febf6bcaad79a272f80.camel@collabora.com \
--to=ezequiel@collabora.com \
--cc=davem@davemloft.net \
--cc=david.wu@rock-chips.com \
--cc=heiko@sntech.de \
--cc=joabreu@synopsys.com \
--cc=kernel@collabora.com \
--cc=kuba@kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=netdev@vger.kernel.org \
--cc=pgwipeout@gmail.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 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).