public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dario <dario86@tutamail.com>
To: u-boot@lists.denx.de
Subject: Partial fix for RTL8211CL connectivity issue
Date: Fri, 24 Apr 2020 19:19:17 +0200 (CEST)	[thread overview]
Message-ID: <M5hBpwN--3-2@tutamail.com> (raw)

Hello,

My A20-OLinuXino-LIME2 has a RTL8211CL network adapter and is affected by the same issue described for RTL8211F_PHY_FORCE_EEE_RXC_ON. In u-boot/drivers/net/phy/realtek.c I copied ?phydev->flags |= PHY_RTL8211F_FORCE_EEE_RXC_ON;? inside rtl8211b_probe() and the following portion of code enabled by the fix at the beginning of rtl8211x_config():

if (phydev->flags & PHY_RTL8211F_FORCE_EEE_RXC_ON) {
??? unsigned int reg;

??? reg = phy_read_mmd(phydev, MDIO_MMD_PCS, MDIO_CTRL1);
??? reg &= ~MDIO_PCS_CTRL1_CLKSTOP_EN;
??? phy_write_mmd(phydev, MDIO_MMD_PCS, MDIO_CTRL1, reg);
}

When rebooting from GNU/Linux in Das U-Boot, issuing ?dhcp? gives me this:

=> dhcp
ethernet at 1c50000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet at 1c50000
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC de:ad:be:ef:00:01
HOST MAC de:ad:be:ef:00:00
RNDIS ready
The remote end did not respond in time.

If I issue the same command once again immediately after, it will instantly report the device as connected, with no delay at all, as if it was already connected the first time, but the driver failed to report the device as connected.

If you have no clue for a proper fix, I will try to set up a GDB environment to see what's going on. I am no expert though.

                 reply	other threads:[~2020-04-24 17:19 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=M5hBpwN--3-2@tutamail.com \
    --to=dario86@tutamail.com \
    --cc=u-boot@lists.denx.de \
    /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