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 733C6C636CB for ; Sat, 28 Jan 2023 22:14:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 493CE8573B; Sat, 28 Jan 2023 23:14:22 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=blueri.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 6C3B18574B; Sat, 28 Jan 2023 23:14:20 +0100 (CET) Received: from ams.blueri.se (ams.blueri.se [46.23.91.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 40346856DD for ; Sat, 28 Jan 2023 23:14:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=blueri.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=patrick@blueri.se Received: from windev.fritz.box (pc19f8f98.dip0.t-ipconnect.de [193.159.143.152]) by ams.blueri.se (OpenSMTPD) with ESMTPSA id bcd092db (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 28 Jan 2023 23:14:17 +0100 (CET) Date: Sat, 28 Jan 2023 23:14:01 +0100 From: Patrick Wildt To: Marek Vasut , Stefano Babic , Fabio Estevam , Peng Fan Cc: u-boot@lists.denx.de, "Lukas F. Hartmann" Subject: [PATCH] imx: power-domain: enable parent power domain Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 The PCIe power domains are dependant on each other, which is why the device tree makes both PCIe controllers reference the PCIe1 power domain, which then depends on the PCIe2 power domain. Enabling the parent power domain used to be part of the driver, but got partially lost in the rewrite. Add the enable call back to be able to power up PCIe2. Signed-off-by: Patrick Wildt --- drivers/power/domain/imx8m-power-domain.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index 145f6ec0cd..d8e9ce3291 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -330,6 +330,9 @@ static int imx8m_power_domain_on(struct power_domain *power_domain) u32 pgc; int ret; + if (pdata->has_pd) + power_domain_on(&pdata->pd); + if (pdata->clk.count) { ret = clk_enable_bulk(&pdata->clk); if (ret) { -- 2.39.1