From patchwork Wed Mar 20 14:57:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 781364 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp346352wrj; Wed, 20 Mar 2024 07:57:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWepa5v03taLJtNap4FM0Hq7UCrIHsgIz64pR1URlOTtV+hhDPbPKahxU+DFw89mVLChJS8UR5L3YEY8mHohFJr X-Google-Smtp-Source: AGHT+IEkGknjeCgYiUOVTsiP7RJQ30WzeWDJ9BR7VrEdlDxe1OUIys860tpjVef6Ky1DhbBYHXKb X-Received: by 2002:adf:fcc4:0:b0:341:9d8f:d582 with SMTP id f4-20020adffcc4000000b003419d8fd582mr1743869wrs.5.1710946673943; Wed, 20 Mar 2024 07:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710946673; cv=none; d=google.com; s=arc-20160816; b=ysTalVCim/AKmMLYJSiRV2Kt1tjb0AomPlx+jS6hsjNVoSZKRNMcJiudMfp44n0h/5 qGhQS28c9qx97YddPBaYsxZi39hrOu5AwNipVru7uHKsCGSVc/Fh5K/1nYr3++PV7wqm L9NOnign3u8C4IPjCCD4R0vIxBQcbuammFCDB1jSYHtycHu/vLkAebgwptO2Dm9p8ZWZ Hv/gakaNee4mEYxd6k6Jn23bcnR9fmqRmECNzL3a3O4kvBrGCaCLVSsK2m5kXiFZ64H+ wtrB2kN3VxWf6eessHXpjw9Y9f+aMxfEBy8M70M2AyXALion8lHFPvEm523qStLfInKF vYCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=oFmODt990ad8kjLTTOpTYnAwB7mre5Em7KQhg5E3z/E=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=ccp8L/VxnkIGVKQ+dPFxXRuX53XCyP77SeYMS2hxgPbanSB59L9FGoj2fzlO4KTvSE hnBHuU0U1KWmTeUVbrP44qYuR1+3Rbo8jfXeMPaJJqper8Ttzn/rEOIHulIklA8ttVwS azt04JzlNBKKv13uGGzn3X6uhVMcgANT1wS1x/X+A9joQSK8BaTBgHawZ7/jfDCl3/DU J8+APeXzNoE+gldiBKixAw6iXRyCS5fnagT8a8TaSJygQpDuvyPYYBSpZZYqFCbyzkGS WFTyZ1Gp3cY+0btv8tSVmPi/r3aAVWDg1AkBTKSXWqLW6cbcGdOQ+E4KgsjEqo/KUb6z dLjg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HHCC4aHc; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id du16-20020a0560000d5000b0033d06a73d8fsi7201822wrb.691.2024.03.20.07.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HHCC4aHc; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8D068880AB; Wed, 20 Mar 2024 15:57:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="HHCC4aHc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0FF5E87DF8; Wed, 20 Mar 2024 15:57:16 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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 EDE8B88047 for ; Wed, 20 Mar 2024 15:57:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-414701303f7so259475e9.2 for ; Wed, 20 Mar 2024 07:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710946633; x=1711551433; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oFmODt990ad8kjLTTOpTYnAwB7mre5Em7KQhg5E3z/E=; b=HHCC4aHcJ1bvGiVxgLtIeVHqKDvXi1t8gFRJ9FwIdoYNZDNcC3k0WlLLcTwvFcIb9G ZEL+Q7ODQAPMkY9fPlQiryCJI+hbl2FjPVFLvrNYhYmTHa92hpB+lnPnhxgLhGDSD2PJ qWIGGo/mySorlq9htM7c37xn3ia1kGKRRoTl97Ab9JzyZFbX+BRx+ESSg0FCC+a7117p D+eeCbyfQ7tnmAYxooMVfqr7Wdxms1v/DyGkAu50l7eDILZeUn1AtOFDjJSivqIp9SrU +im/kNNSKIJoQ1tHk+3XcDWfp6UpV9/SCwmOftuiUfoKldYrZxQSEr6g1nHvAn5Arzpg w8Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710946633; x=1711551433; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oFmODt990ad8kjLTTOpTYnAwB7mre5Em7KQhg5E3z/E=; b=F8TEV55mZkov9EP8IpFDYjamLjiweqnOS0/MuAnb06Hk0Fxhu1VejjsQFC7HHxC0W3 lNoeWtJqSDUwvmjZUC4rXJ/VrRzouEFeBC3USDHCFPHCFE185faiUN+TdOQ+pWCmvUnE mh5d/+vw1wp6+taryNRYfliZOxb/9vIIyFZ2WWu9ijdx0SnMno8REcguVTFYy0bk2qYe VddaqFHXewdAy0V1qFxwsN532PLsQMjpxBRWh0tGM8w7UOXimJxjKWALRw9QT6xD2MR2 pqJLI41Ml+NuncYi6cBw3vKjOrn+Sds1vP95fa67ISo1VTAIZke6O7RxX5SEGiq0wkjk 6n/w== X-Gm-Message-State: AOJu0Yw7dKpP+YoA1kHC1iumZzp+O/Uas/nEYqSXLHdrJ9SkwTpiooWz 1d4vtRQt01AGIDINSL3/xUSLHEehybskhRf1xPKKbHXTU6KkLHaNFWqwOWSQA5k= X-Received: by 2002:a05:600c:35c8:b0:413:feed:b309 with SMTP id r8-20020a05600c35c800b00413feedb309mr12164123wmq.6.1710946633497; Wed, 20 Mar 2024 07:57:13 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id bi16-20020a05600c3d9000b0041468f79fd5sm2461268wmb.16.2024.03.20.07.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:57:12 -0700 (PDT) From: Caleb Connolly Date: Wed, 20 Mar 2024 14:57:07 +0000 Subject: [PATCH v4 04/14] mach-snapdragon: disable power-domains for pre-reloc drivers MIME-Version: 1.0 Message-Id: <20240320-b4-qcom-livetree-v4-4-d867ab1f06c2@linaro.org> References: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org> In-Reply-To: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2212; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=lNaop02wGgSTfoA1P61dU8gqi6TppeaoShUOEotMpkk=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRfPx0j2LKlgic8cBeVPdodG2bVZBzyYnbU0o0P2jKYV F5cdvnTUcrCIMjBICumyCJ+Ypll09rL9hrbF1yAmcPKBDKEgYtTACay8gLDP8trW3RP3ZrmObO+ y/v59Jsbb+SVLQhysz8WpROQWFfqoMfwV0DERfnm5M8VicFaWiYeFtWP+7PmeSyPsM40kfk47aL hOQA= X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 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.8 at phobos.denx.de X-Virus-Status: Clean Some devices like the UART and clock controller reference an RPM(h) power domain. We don't support this device in U-Boot, so add DM_FLAG_DEFAULT_PD_CTRL_OFF to tell DM core not to try and enable the power domain. Reviewed-by: Sumit Garg Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-qcom.c | 2 ++ drivers/clk/qcom/clock-sdm845.c | 2 +- drivers/serial/serial_msm_geni.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/clock-qcom.c b/drivers/clk/qcom/clock-qcom.c index 7a5938a06a34..6303dcbf8461 100644 --- a/drivers/clk/qcom/clock-qcom.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -226,8 +226,9 @@ U_BOOT_DRIVER(qcom_clk) = { .id = UCLASS_CLK, .ops = &msm_clk_ops, .priv_auto = sizeof(struct msm_clk_priv), .probe = msm_clk_probe, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, }; int qcom_cc_bind(struct udevice *parent) { @@ -410,5 +411,6 @@ U_BOOT_DRIVER(qcom_power) = { .name = "qcom_power", .id = UCLASS_POWER_DOMAIN, .ops = &qcom_power_ops, .probe = qcom_power_probe, + .flags = DM_FLAG_PRE_RELOC, }; diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index 36ffee79d966..babd83119e2c 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -182,6 +182,6 @@ U_BOOT_DRIVER(gcc_sdm845) = { .name = "gcc_sdm845", .id = UCLASS_NOP, .of_match = gcc_sdm845_of_match, .bind = qcom_cc_bind, - .flags = DM_FLAG_PRE_RELOC, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, }; diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index e5c3dcffc1c6..4aa0bc8c72bc 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -602,9 +602,9 @@ U_BOOT_DRIVER(serial_msm_geni) = { .of_to_plat = msm_serial_ofdata_to_platdata, .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops = &msm_serial_ops, - .flags = DM_FLAG_PRE_RELOC, + .flags = DM_FLAG_PRE_RELOC | DM_FLAG_DEFAULT_PD_CTRL_OFF, }; #ifdef CONFIG_DEBUG_UART_MSM_GENI