U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RESEND PATCH v2 1/5] net: pch_gbe: Reset during probe
Date: Sun, 30 Apr 2017 21:57:05 +0200	[thread overview]
Message-ID: <20170430195710.19713-2-daniel.schwierzeck@gmail.com> (raw)
In-Reply-To: <20170430195710.19713-1-daniel.schwierzeck@gmail.com>

From: Paul Burton <paul.burton@imgtec.com>

Using the EG20T gigabit ethernet controller on the MIPS Boston board, we
find that we have to reset the controller in order for the RGMII link to
the PHY to become functional. Without doing so we constantly time out in
pch_gbe_mdio_ready.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
---

Changes in v2: None

 drivers/net/pch_gbe.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c
index d40fff0e48..4aac0f67a0 100644
--- a/drivers/net/pch_gbe.c
+++ b/drivers/net/pch_gbe.c
@@ -422,6 +422,7 @@ int pch_gbe_probe(struct udevice *dev)
 	struct pch_gbe_priv *priv;
 	struct eth_pdata *plat = dev_get_platdata(dev);
 	void *iobase;
+	int err;
 
 	/*
 	 * The priv structure contains the descriptors and frame buffers which
@@ -444,6 +445,10 @@ int pch_gbe_probe(struct udevice *dev)
 	pch_gbe_mdio_init(dev->name, priv->mac_regs);
 	priv->bus = miiphy_get_dev_by_name(dev->name);
 
+	err = pch_gbe_reset(dev);
+	if (err)
+		return err;
+
 	return pch_gbe_phy_init(dev);
 }
 
-- 
2.11.0

  reply	other threads:[~2017-04-30 19:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-30 19:57 [U-Boot] [RESEND PATCH v2 0/5] net/pch_gbe: updates for MIPS Boston board Daniel Schwierzeck
2017-04-30 19:57 ` Daniel Schwierzeck [this message]
2017-05-04 16:49   ` [U-Boot] [RESEND PATCH v2 1/5] net: pch_gbe: Reset during probe Simon Glass
2017-05-30 20:17   ` Joe Hershberger
2017-06-02 19:48   ` [U-Boot] " Joe Hershberger
2017-04-30 19:57 ` [U-Boot] [RESEND PATCH v2 2/5] net: pch_gbe: Fix rx descriptor buffer addresses Daniel Schwierzeck
2017-05-04 16:49   ` Simon Glass
2017-05-30 20:18   ` Joe Hershberger
2017-06-02 19:49   ` [U-Boot] " Joe Hershberger
2017-04-30 19:57 ` [U-Boot] [RESEND PATCH v2 3/5] net: pch_gbe: CPU accessible addresses are virtual Daniel Schwierzeck
2017-05-04 16:49   ` Simon Glass
2017-05-30 20:19   ` Joe Hershberger
2017-06-02 19:49   ` [U-Boot] " Joe Hershberger
2017-04-30 19:57 ` [U-Boot] [RESEND PATCH v2 4/5] net: pch_gbe: Add cache maintenance Daniel Schwierzeck
2017-05-04 16:49   ` Simon Glass
2017-05-30 20:20   ` Joe Hershberger
2017-06-02 19:49   ` [U-Boot] " Joe Hershberger
2017-04-30 19:57 ` [U-Boot] [RESEND PATCH v2 5/5] net: pch_gbe: Support PHY reset GPIOs Daniel Schwierzeck
2017-05-30 20:26   ` Joe Hershberger
2017-05-30 20:29 ` [U-Boot] [RESEND PATCH v2 0/5] net/pch_gbe: updates for MIPS Boston board Joe Hershberger
2017-05-31 12:45   ` Daniel Schwierzeck
2017-05-31 16:00     ` Joe Hershberger

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=20170430195710.19713-2-daniel.schwierzeck@gmail.com \
    --to=daniel.schwierzeck@gmail.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