From patchwork Mon Mar 27 10:45:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667390 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029459wrt; Mon, 27 Mar 2023 03:46:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpVUW556hHzSOKqdxeu5YpzDg+uH12civ44P7mPIFLt33gwnAJD6A9UX3mha0uQxQFv6vF X-Received: by 2002:a17:90b:3811:b0:23b:3d6e:1ed with SMTP id mq17-20020a17090b381100b0023b3d6e01edmr12204727pjb.13.1679914006942; Mon, 27 Mar 2023 03:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914006; cv=none; d=google.com; s=arc-20160816; b=EkUHv3eEH8EjvX2jeXTJAfuUbJh5M0OTAZ0i1ntG9vvaTD6FrhUGYS+5jU/L3ehGtI gNVHXgrISv8lHfdaXZ1wLBwq+bsJErrMPVIBztS8K9ZRb5gRtqIvUsIC3xJAVRDXNt9I EGQFFrTvRBrK8aXCKhSZLOdmw7/Ac5bWkWnSj6IoV7+3iD0eisJaE/+b24r5qgsc+5f+ NTrPVBpOhrk1ZVgyHQicPoYKEwv+YvxG+YHv3psfwasWJzDicdla8oj37+fUnrCgAUaw ttjL9NfAFJ/UOGhDsg7XpCpKAN1RAuFJeixtYRRSG3QgiuYWBeaTlB+DJyaTURZLkc1T jXog== 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=HAxQ7gEhy9XVjzwempdbUtn2UE8agUKoS6rKmfNXSMmd7Uy8TdE/xoejAIHUP0ZVGK bYKt3efTUCybEBcmzOYd6IH99+hMjif4IA9YC+52RMp6Vl4joZh6Q+ptzDuNZTiLkc0p t3CdFXV1oLFmlqYhd2ZcoRwMdJlgGRFnQLYysfBri5dcJiPiVWLZLE8lknflNoESa4HG rfUSGCd5Sgg+D5QgAKCgx4gdZQZwjjc3X7jBfCclDNrycr6HaX6Mgs6hlAO5Foft7x22 hZHrmZok0V3IQVN7xPkuqpuyCmQ+RHEqwp6MkUuAqxSMufNIlbqsK8tNIC9O7N/hKEQ2 P66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B9CD7ZTP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id fy7-20020a17090b020700b0023cfda36390si5652614pjb.121.2023.03.27.03.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B9CD7ZTP; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 3A9638609C; Mon, 27 Mar 2023 12:46:25 +0200 (CEST) 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="B9CD7ZTP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA3E785D3A; Mon, 27 Mar 2023 12:45:25 +0200 (CEST) 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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 358908545E for ; Mon, 27 Mar 2023 12:45:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=konrad.dybcio@linaro.org Received: by mail-lj1-x236.google.com with SMTP id by8so8433263ljb.12 for ; Mon, 27 Mar 2023 03:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913916; 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=B9CD7ZTP+m/g2CmZuVnY0+BonD5QGhcClP6ZLkshYToEgvV0KX194GBgBEwYKTZzpG PEaQypUh1EOBgWCwzdMPB15X0cnPN6OIl+Ww18zOh5AsnJ1Kxos2tEusIvKmMyw4AkTT BA0YPeJewWPZNSkkx5urcK/5XLfWrxZRyG+CJZdI57O/4lXUJDaFO40XjxeVNygn9yd2 j2RHDCtphiTqKhvGdE5dgvzgMbVKgbRCsjcT1AUesoVqp2NzcbGL0tVY3Z9fq98fSNvn PImKkIrC5V13Utde7M7y2Yh/y8HO/gQP+sEQeWpYHW/h1sYD/9y2J8TRzyW1niEroKkH 4iZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913916; 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=HBbLqY35uB7bal9OuQ6Y61WLOSsiGSyzCL0gCauCzzR1/u/tyUYJPNmxhOQW/nCSnX wUZWUNS5PJ7TdS6OilDonxMespAfVx4yujPnsMCk1fdRe5yZSNvCPSOY86D+UrLVw1b5 epkX4T7RMgvL9wUySxrIGQEDN0cC1AacFi+yxWU8+yd33I8zZVZDC3yuTSkoipyqmIwM f5KEqyWdYdOKESoiQ+SKHRi6POSE/MEciAhsL9gsq6kr8b0kFWoawDRakj0KQRDoyWSc k2qEepGqgZnUejU+TXxDoTz9XMhgVwD4/rXQ4159ThT4kj/Qle45+lKM7cgvNqqz1YBX yDRg== X-Gm-Message-State: AAQBX9fu6MyLRdAo0YXG4I/A2ioYnlLPWklu9xYWNs4I74NiOjUQUU1s tstgzoNITlmULaPbIIXVjuu23w== X-Received: by 2002:a2e:740d:0:b0:2a1:17f8:e904 with SMTP id p13-20020a2e740d000000b002a117f8e904mr3236225ljc.4.1679913916622; Mon, 27 Mar 2023 03:45:16 -0700 (PDT) Received: from [192.168.1.101] (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id y22-20020a2e95d6000000b0029bfcbeac09sm3715904ljh.41.2023.03.27.03.45.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:16 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:02 +0200 Subject: [PATCH v2 4/9] serial: msm: Always bind before relocation MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-4-9a80cc563c76@linaro.org> References: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> In-Reply-To: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> To: Ramon Fried , Peng Fan , Jaehoon Chung , Mark Kettenis , Sumit Garg Cc: Bhupesh Sharma , Dzmitry Sankouski , Marijn Suijten , u-boot@lists.denx.de, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679913910; l=2378; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DfbgKPOWGNfctqQzsRqbt+D5q9CD7UHooPa53Ca7hKc=; b=apBSKCQdMpujte/z6LTptnD3JpZdtGpmsylk2rtbox6ZTmkCWLHd0yer194Uadf6sYS2+Z9urunf XKQVQMM2DcoOmtWRnVOa16OlfSMB/Xb9qsvpuiDU+akvJ13BNGWP X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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 In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard820c-uboot.dtsi | 4 ---- arch/arm/dts/qcom-ipq4019.dtsi | 1 - arch/arm/dts/qcs404-evb-uboot.dtsi | 4 ---- drivers/serial/serial_msm.c | 1 + 5 files changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index e4fecaa19e64..1d7b31d7e267 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -25,10 +25,6 @@ qcom,gcc@1800000 { u-boot,dm-pre-reloc; }; - - serial@78b0000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi index 2270ac73bfca..5db30b5fb076 100644 --- a/arch/arm/dts/dragonboard820c-uboot.dtsi +++ b/arch/arm/dts/dragonboard820c-uboot.dtsi @@ -24,10 +24,6 @@ clock-controller@300000 { u-boot,dm-pre-reloc; }; - - serial@75b0000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index dee3159e5893..22a4e059f057 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -90,7 +90,6 @@ clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>; bit-rate = <0xFF>; status = "disabled"; - u-boot,dm-pre-reloc; }; blsp1_spi1: spi@78b5000 { diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi index c73d71e8c7c1..d77ae0fa930e 100644 --- a/arch/arm/dts/qcs404-evb-uboot.dtsi +++ b/arch/arm/dts/qcs404-evb-uboot.dtsi @@ -16,10 +16,6 @@ clock-controller@1800000 { u-boot,dm-pre-reloc; }; - - serial@78b1000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 9c370cac323f..59a2cf27aaf1 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -251,4 +251,5 @@ U_BOOT_DRIVER(serial_msm) = { .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops = &msm_serial_ops, + .flags = DM_FLAG_PRE_RELOC, };