From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B840BC4332F for ; Thu, 15 Dec 2022 21:25:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CF9E985338; Thu, 15 Dec 2022 22:25:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bANsNwzf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E444E84EC2; Thu, 15 Dec 2022 15:43:44 +0100 (CET) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C8BE285279 for ; Thu, 15 Dec 2022 15:43:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=boerge.struempfel@gmail.com Received: by mail-ej1-x62a.google.com with SMTP id n20so52777047ejh.0 for ; Thu, 15 Dec 2022 06:43:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d1jXJ3XJ9p2tp3/uL5ncI3h9iCNr13jk/4eSAJQGBY0=; b=bANsNwzfqHMX2rfz2GFqNZeyZ4Tjj9ZNBt5D8Lq9NrPZkOxq5X43IlQrZI8DqJ9Mvb NvFyqRlghoYrESR5kBVYNbQVdxjHiN/4Z9hL29QVOn/MeHqvi87nCVvdMYhtTSk3l7nI kXZU3buYJsaDH3AY/VNU2lByAgjK7pLjCMvs4O3/Fr755ihBUmA/jsyB6BVVphFmeevY nTWYdVqPPNRTs8o/MmYfV7bLjfF8K+vWJ+jFAbNY3B1tGi5O/DVq5ojW32+0fNp2tY7B EeD2p/rW4Y07WWLNP+R42sHwnrGhCudZTNhQL00a5CI6mo4gj1wGfoPfovuCoh4nebD8 ZtJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d1jXJ3XJ9p2tp3/uL5ncI3h9iCNr13jk/4eSAJQGBY0=; b=ELR6ZX31V3UXvbJtCDDUQ6t9vFZoSCHm/13TB1ccxBXIAN9StKK/ZIph3MWEr2dr09 ffs0CWjzkuSOHaQQ2/30r7TZ98gcPZ5HRIqAwCAwoM03FNclxNUOUHTcbpzLHqzjRMgO NvPBarYc4GuSDS3aQNMavE2aS+JwGlA/8Gb4oaBuDQDivAjQevYPEEuPKOeG2+d6Xzpv elaYLNG4PUjP6dAbMZpU+BtFBTv7CBls8vTmwUTxqO6QtNhihS63vfin++M2RQCeK2kK dxn5B4AiaR0YQb4N0t9/HJ96GsjhIB6EHvYQ4R0cGFogbD2Cxie1DsFyhYS4l88dSPHs qjIw== X-Gm-Message-State: ANoB5pkPmrRMTpwpYf5KPm00BVI7Nuz8BUTYrWQUPa4JU6zv4/ef6DS/ fNhQ9kHVg7A4GzqHE/rj4VGnmu7ZGbr3Ow== X-Google-Smtp-Source: AA0mqf5reKMU25yXn9zzm+lqdI12MgOm42Ptm27TO1An/v7QQGhLS56VV3/Hnzy277RLvQr7TJwEbg== X-Received: by 2002:a17:906:3a59:b0:7be:e831:2b4b with SMTP id a25-20020a1709063a5900b007bee8312b4bmr22626705ejf.23.1671115422161; Thu, 15 Dec 2022 06:43:42 -0800 (PST) Received: from wslxew193.ultratronik.de (mail.ultratronik.de. [82.100.224.114]) by smtp.gmail.com with ESMTPSA id u1-20020a1709064ac100b007c08091ad7esm6983347ejt.208.2022.12.15.06.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 06:43:41 -0800 (PST) From: "=?UTF-8?q?B=C3=B6rge=20Str=C3=BCmpfel?=" X-Google-Original-From: =?UTF-8?q?B=C3=B6rge=20Str=C3=BCmpfel?= To: u-boot@lists.denx.de Cc: marex@denx.de, jh80.chung@samsung.com, peng.fan@nxp.com, =?UTF-8?q?B=C3=B6rge=20Str=C3=BCmpfel?= Subject: [RFC] [PATCH] imx8mp: power-domain: force usb powerdomain off on startup Date: Thu, 15 Dec 2022 15:43:22 +0100 Message-Id: <20221215144322.42895-1-bstruempfel@ultratronik.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 15 Dec 2022 22:25:24 +0100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean 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 --- 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