netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: netdev@vger.kernel.org
Subject: Fw: [Bug 212299] New: RK3288-RTL8211E ethernet driver error
Date: Tue, 16 Mar 2021 08:46:19 -0700	[thread overview]
Message-ID: <20210316084619.40d673fb@hermes.local> (raw)



Begin forwarded message:

Date: Tue, 16 Mar 2021 06:39:54 +0000
From: bugzilla-daemon@bugzilla.kernel.org
To: stephen@networkplumber.org
Subject: [Bug 212299] New: RK3288-RTL8211E ethernet driver error


https://bugzilla.kernel.org/show_bug.cgi?id=212299

            Bug ID: 212299
           Summary: RK3288-RTL8211E ethernet driver error
           Product: Networking
           Version: 2.5
    Kernel Version: 5.11.6
          Hardware: ARM
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: stephen@networkplumber.org
          Reporter: msubair@hotmail.com
        Regression: No

RK3288 board which has RTL8211E ethernet chip and ACT8846 PMU controller.
The dts file has following info, and it includes rk3288.dtsi
----------------------------------------------------------------------------
&gmac {
        assigned-clocks = <&cru SCLK_MAC>;
        assigned-clock-parents = <&ext_gmac>;
        clock_in_out = "input";
        pinctrl-names = "default";
        pinctrl-0 = <&rgmii_pins>, <&phy_rst>, <&phy_pmeb>, <&phy_int>;
        phy-supply = <&vcc_lan>;
        phy-mode = "rgmii";
        snps,reset-active-low;
        snps,reset-delays-us = <0 10000 100000>;
        snps,reset-gpio = <&gpio4 RK_PB0 GPIO_ACTIVE_LOW>;
        tx_delay = <0x30>;
        rx_delay = <0x10>;
        status = "okay";
};
----------------------------------------------------------------------------
The ethernet never comes up and giving below error.

root@LXCNAME:~# dmesg | grep eth
[    2.519105] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    2.526163] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    2.532916] rk_gmac-dwmac ff290000.ethernet: phy regulator is not available
yet, deferred probing
[    2.574228] usbcore: registered new interface driver cdc_ether
[    3.358577] rk_gmac-dwmac ff290000.ethernet: IRQ eth_lpi not found
[    3.358633] rk_gmac-dwmac ff290000.ethernet: PTP uses main clock
[    3.358851] rk_gmac-dwmac ff290000.ethernet: clock input or output? (input).
[    3.358857] rk_gmac-dwmac ff290000.ethernet: TX delay(0x30).
[    3.358861] rk_gmac-dwmac ff290000.ethernet: RX delay(0x10).
[    3.358868] rk_gmac-dwmac ff290000.ethernet: integrated PHY? (no).
[    3.358895] rk_gmac-dwmac ff290000.ethernet: cannot get clock clk_mac_speed
[    3.358898] rk_gmac-dwmac ff290000.ethernet: clock input from PHY
[    3.363906] rk_gmac-dwmac ff290000.ethernet: init for RGMII
[    3.364096] rk_gmac-dwmac ff290000.ethernet: User ID: 0x10, Synopsys ID:
0x35
[    3.364104] rk_gmac-dwmac ff290000.ethernet:         DWMAC1000
[    3.364107] rk_gmac-dwmac ff290000.ethernet: DMA HW capability register
supported
[    3.364111] rk_gmac-dwmac ff290000.ethernet: RX Checksum Offload Engine
supported
[    3.364114] rk_gmac-dwmac ff290000.ethernet: COE Type 2
[    3.364118] rk_gmac-dwmac ff290000.ethernet: TX Checksum insertion supported
[    3.364121] rk_gmac-dwmac ff290000.ethernet: Wake-Up On Lan supported
[    3.364157] rk_gmac-dwmac ff290000.ethernet: Normal descriptors
[    3.364160] rk_gmac-dwmac ff290000.ethernet: Ring mode enabled
[    3.364164] rk_gmac-dwmac ff290000.ethernet: Enable RX Mitigation via HW
Watchdog Timer
[    8.156632] rk_gmac-dwmac ff290000.ethernet eth0: validation of rgmii with
support 0000000,00000000,00006280 and advertisement 0000000,00000000,00006280
failed: -22
[    8.157755] rk_gmac-dwmac ff290000.ethernet eth0: stmmac_open: Cannot attach
to PHY (error: -22)
root@LXCNAME:~# dmesg | grep sdmmac
root@LXCNAME:~# dmesg | grep stmmac
[    3.466622] libphy: stmmac: probed
[    3.490765] mdio_bus stmmac-0:00: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:00, irq=POLL)
[    3.504573] mdio_bus stmmac-0:01: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:01, irq=POLL)
[    3.567118] mdio_bus stmmac-0:02: attached PHY driver [unbound]
(mii_bus:phy_addr=stmmac-0:02, irq=POLL)
[    3.577736] mdio_bus stmmac-0

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are the assignee for the bug.

                 reply	other threads:[~2021-03-16 15:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210316084619.40d673fb@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=netdev@vger.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).