Message ID | 20240415-b4-msm-serial-bitrate-v1-2-5a89f84fd9e7@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp1885013wrm; Mon, 15 Apr 2024 05:44:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU0vY7a2JDWQSrTzmvhi0pLgJsHu6F6TF2Vq0a5rn3rv7hxKhf0JLoGiCXoWmjaXrd3d0u9A9NsLVDEbHKaRIUu X-Google-Smtp-Source: AGHT+IFVjvyMvXi6RZoOX2I973bwaTPHPTbQ+ivNDhN1YqExERmCUq5xHebhbIXZn+uhx0/AgrB2 X-Received: by 2002:a17:906:37c7:b0:a51:ab81:6062 with SMTP id o7-20020a17090637c700b00a51ab816062mr10059397ejc.30.1713185095755; Mon, 15 Apr 2024 05:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713185095; cv=none; d=google.com; s=arc-20160816; b=gPc/hCrexFnkv6U17UC/Q2JNJM/R8L0qMV8CH9QXyEH+xx4e8AKaH7+mtzPh2AA9R4 ibGWqPIZLroOCUhsoPpQfvjW5qqC83ZebY30D7Ceu7sI7q6odPdrPVu6rBmGiRnzPxEP OndogHQ3WyNJhyRcE6l3NQDdC971wjYCchUFkauiI00MwU6KsCyJeLhV6o9jBTLLRzl8 V1pxyWjRB0X8pmB5ya0ieAw5m7AHQwmle1PrULvg2O9ahUwjlN0tjSbiiBRtVl9OHLSu zSJf37N92ZzOKdD7rw9jMxHK7k5itjUaxjF2Yt7JKLdNYzKIOv0+aZLcNe/dJny17wxa /cgw== 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=75JeNrH2fm9Dj7m4XrOpiemG5n9ITOmRPsU5m9vbyek=; fh=NUUNJJl/YJo7iuqXsGXQuuqqe5OpjLYih7RYbUR8JPA=; b=gxSqWTfmPdo7mqBbY55lbryoPEBs4Vh1Rt0h3rnjP4u9p9ru6HxDOPbTcZf7ZPvoiP VxRCJGKShs0YnLSJ3JPdXXoS2OI/AACqnN8fBTZSk23B2crlkcPnrCopbTcTVp8avEkx 5ky1NugELJrz465K0NUvm2RCRksQ1axzCyHHsX5chS2epemFOJC9GYOVyy4f4svbO8XH ghtKGK+kE9M0eKbcjQaN0c1oKbzXlkq5QnWTwzTddxyZ6WRjTlBGCsgbmSRQaMntLFww n4YE79HC/svVd0bVKGZvbrg/BsFDCk5RSSM9p5mXfjPlf/nYHH3HdTORrQUR202RjTDY gqPg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eF14+iIH; 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id g4-20020a056402320400b0057009e44e52si2843151eda.582.2024.04.15.05.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:44:55 -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=eF14+iIH; 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 B93D588223; Mon, 15 Apr 2024 14:44:37 +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="eF14+iIH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BA75D881FE; Mon, 15 Apr 2024 14:44:36 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 135D288223 for <u-boot@lists.denx.de>; Mon, 15 Apr 2024 14:44:34 +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=caleb.connolly@linaro.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-344047ac7e4so2425482f8f.0 for <u-boot@lists.denx.de>; Mon, 15 Apr 2024 05:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713185073; x=1713789873; 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=75JeNrH2fm9Dj7m4XrOpiemG5n9ITOmRPsU5m9vbyek=; b=eF14+iIHtywBWaDDb1YDbe35aRhTjJ1VxMCWq/CfmXjSJgQk+ee3CUzCnozn8k61Tj cio9ryLDbbDRPyH0CShPfftKc3M1Wy0KAV5PvQly5pQya9jsW/0PkOPnyw4zdAnJPdaz hxZXxJ3oYv5JMDGUfAVKVWjSMXcvZH+PVwC+7gPWKrHVvRjwr8lCvDkFa104SzJWh67b mrnEmRkq84yS7Xv1fnmpxwykZ11m2k7sBjWNmhvYNkdlxQk886TyWyIwKKMyPk7iAMpW 8bWa5vRfsUt2bAS5285pY7bR5gEdOE1D3qEsdguXsN8cqO625OuSnOQDckmyVq3LwnL4 ugBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713185073; x=1713789873; 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=75JeNrH2fm9Dj7m4XrOpiemG5n9ITOmRPsU5m9vbyek=; b=vvdIssG2dQX9pxz6HnJzaEzmov92Hvoh9vouiOEbvRlEMN3vLJorn6T3b/vY28W5pe byNnicjmc1vSfY93TWMyRBSFhwckJs5cm8tXjeZGUwOQtuxEJjEsrP84nSW28augghyI wvdZEf/MsB3OlTICSGjs7RYw0hs4l7inLvEm7pDa5keTvwsP0Qi78V3gfZWVoVWP5SWf frXE08s5bwq/TKgG7+Q80vEerSz1kiLd87CaD7FP0Lqp+FD97BFDBfy0rR8ld2viCWgu T9vH7LXOZvM9D8R13it/+nnR/SYPZ1Fhl3ZpxJAzDKrYv1wvmcf7+j+Glvnv3IeF3qy8 fJTQ== X-Forwarded-Encrypted: i=1; AJvYcCXAyPvdDDm8KsGnn5YROUidQNRTsRrgLLNS8eRRXnkbw+v+9iLsAHWgDO0BEtS8CgcNg6hTs9L/HfgKFfPbRmlxSFnZMw== X-Gm-Message-State: AOJu0YzUc3Qh4sNkgwCOoaZxlKs7CuAcBcRTdBjHbGbSZ071l+yrMOtQ Bb5Guo39ZuDqG1hQID9ePRem4NvsidsF2Yz+GKbRnqQlgAy86lgPD5KROVfXQUE= X-Received: by 2002:a5d:4248:0:b0:343:39a6:93bc with SMTP id s8-20020a5d4248000000b0034339a693bcmr7667782wrr.11.1713185073639; Mon, 15 Apr 2024 05:44:33 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id g13-20020a5d488d000000b00347321735a6sm7931517wrq.66.2024.04.15.05.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:44:33 -0700 (PDT) From: Caleb Connolly <caleb.connolly@linaro.org> Date: Mon, 15 Apr 2024 13:44:21 +0100 Subject: [PATCH 2/3] clk/qcom: ipq4019: return valid rate when setting UART clock MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240415-b4-msm-serial-bitrate-v1-2-5a89f84fd9e7@linaro.org> References: <20240415-b4-msm-serial-bitrate-v1-0-5a89f84fd9e7@linaro.org> In-Reply-To: <20240415-b4-msm-serial-bitrate-v1-0-5a89f84fd9e7@linaro.org> To: Lukasz Majewski <lukma@denx.de>, Sean Anderson <seanga2@gmail.com>, Caleb Connolly <caleb.connolly@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, Sumit Garg <sumit.garg@linaro.org>, Tom Rini <trini@konsulko.com> Cc: Robert Marko <robert.marko@sartura.hr>, u-boot-qcom@groups.io, u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=979; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=jbE4uxM05hys6K6aPZcowyfpb9rgLC2loD8Pu1qX1Mc=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjRZRf3ST2ca1/PWLnhWfufwFE2d4u0ndYNPxZdfbeb/q a0RYnmqo5SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAEzEXpSRoZ2hPXbC2/gt67xP 5f6acfnp9JJL/m/KRG699Ir59/jJs6kM/+OFm7VYlZjMCpZeU594L2Beg7ws574FRe3yNtyKS/v fNAAA 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
qcom: serial_msm: calculate UARTDM_CSR automatically
|
expand
|
diff --git a/drivers/clk/qcom/clock-ipq4019.c b/drivers/clk/qcom/clock-ipq4019.c index d693776d339d..72f235eab212 100644 --- a/drivers/clk/qcom/clock-ipq4019.c +++ b/drivers/clk/qcom/clock-ipq4019.c @@ -20,9 +20,9 @@ static ulong ipq4019_clk_set_rate(struct clk *clk, ulong rate) { switch (clk->id) { case GCC_BLSP1_UART1_APPS_CLK: /*UART1*/ /* This clock is already initialized by SBL1 */ - return 0; + return 1843200; default: return -EINVAL; } }
clk_set_rate() should return the clock rate that was set. The IPQ4019 clock driver doesn't set any rates yet but it should still return the expected value so that drivers can work properly. For a baud rate of 115200 with an expected bit clock divisor of 16, the clock rate should be 1843200 so return that frequency. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> --- drivers/clk/qcom/clock-ipq4019.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)