All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Börge Strümpfel" <boerge.struempfel@gmail.com>
To: u-boot@lists.denx.de
Cc: marex@denx.de, jh80.chung@samsung.com, peng.fan@nxp.com,
	"Börge Strümpfel" <bstruempfel@ultratronik.de>
Subject: [RFC] [PATCH] imx8mp: power-domain: force usb powerdomain off on startup
Date: Thu, 15 Dec 2022 15:43:22 +0100	[thread overview]
Message-ID: <20221215144322.42895-1-bstruempfel@ultratronik.de> (raw)

This patch fixes a bug, where usb-ether is not usable, after an imx8mp
board has been booted using the uuu tool. In order to solve this, the usb
power domain is turned off during the probe of the imx8mp-hsiomix driver.
Thereby the usb controller is reset during startup and can operate
normally thereafter.

This was tested on an imx8mp-evk.

Signed-off-by: Boerge Struempfel <bstruempfel@ultratronik.de>
---
 drivers/power/domain/imx8mp-hsiomix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/power/domain/imx8mp-hsiomix.c b/drivers/power/domain/imx8mp-hsiomix.c
index 6a721a934a..a87595b8eb 100644
--- a/drivers/power/domain/imx8mp-hsiomix.c
+++ b/drivers/power/domain/imx8mp-hsiomix.c
@@ -116,6 +116,7 @@ static int imx8mp_hsiomix_probe(struct udevice *dev)
 	ret = power_domain_get_by_name(dev, &priv->pd_usb, "usb");
 	if (ret < 0)
 		goto err_pd_usb;
+	power_domain_off(&priv->pd_bus);
 
 	ret = power_domain_get_by_name(dev, &priv->pd_usb_phy1, "usb-phy1");
 	if (ret < 0)
-- 
2.25.1


             reply	other threads:[~2022-12-15 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-15 14:43 Börge Strümpfel [this message]
2022-12-16 16:36 ` [RFC] [PATCH] imx8mp: power-domain: force usb powerdomain off on startup Börge Strümpfel

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=20221215144322.42895-1-bstruempfel@ultratronik.de \
    --to=boerge.struempfel@gmail.com \
    --cc=bstruempfel@ultratronik.de \
    --cc=jh80.chung@samsung.com \
    --cc=marex@denx.de \
    --cc=peng.fan@nxp.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 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.