Message ID | 20240415-b4-msm-serial-bitrate-v1-1-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 y10csp1884946wrm; Mon, 15 Apr 2024 05:44:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXv8zvZTTVg8XRabkVHQpUPooaspzlO7F5OUWhRp6Gw3bH519Shvnk952AMn+BZh13N+DL8fCzlAX1yOk0UmDHT X-Google-Smtp-Source: AGHT+IHa86lpVfNezsFIf/TJcYBQB59lxehbtt7F1hCKYmtz1Rx0QBkdG8ZeNi5QIyG7k6ESeS0M X-Received: by 2002:a2e:959a:0:b0:2da:b1fc:8095 with SMTP id w26-20020a2e959a000000b002dab1fc8095mr50970ljh.7.1713185084967; Mon, 15 Apr 2024 05:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1713185084; cv=none; d=google.com; s=arc-20160816; b=tS7NjsrMxIbjBkKYb4KnLHb3pcwGxJrRQkHUqaoSuzAw2D5eipQslOEpRaFeXFCxza JLeXMDAS6iIEd8PisAc0w6GZy2LRY9/cMoNLEYyo5UBMKG5jt7PX7KA8D/L9Yrp2ABpl Xd5WXhKgnE65+IaEQ3U9hO3d6SQV5I5E/aYiMIOzZQNXIx9jVkceDSsD8RgG/6s+5uOs 6O61GOC6JKchMIpKw5WTBDENQOGGc2iu4Q7wvE9V9IOJ5dMBcUvhWMU2PJN7IViUERDs h2cRWK4OLDYrtnbXmrwCLW6rA5jyp3yxzKd7u/FtbRAzsk0izdUwkYIR6tP+VX1Uxosk OjEg== 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=h/blv1jhNMGdp3y04vVVIazZY+yEsnljwxhnc5rTng0=; fh=4fpI3BFqU8AkVs3Zgc647qbdg3gWZrfcSFQmHIhN9Qc=; b=bVrP1CR0l1x+7/Uh1N4V1liWzVO1ddDLmmj09io39sTx8iqxb1yerBvGeNAV6lzAfK p9swHTV/eb4LdXmY/7W8Ztefpdyb/p73m1dO/AvY9hJ73felwpFiJ4wxe3AvEj38vRBP LxVlHXhQWhaVqQBmxeJtav7Aff8rab2YK6VU8+fKY7FefbDgzIVzNZxd6F564vOMnlUt AhGO2Go7ydLUR2V+d0Emi+bmcNt0BUfliQJVjFfbIxH7YXmefB7x0p4izKxC+60DHSM+ X5EATV7V6I97VAWcuK3iX8AeiaI9YTaCuQ82fpAQjQZGwnLYITh1AJNxtcb4szZNRP5R 1PEA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l92+fTZC; 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 fi3-20020a170906da0300b00a4a346bd0b4si4528187ejb.279.2024.04.15.05.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 05:44:44 -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=l92+fTZC; 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 6650588207; 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="l92+fTZC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A19D68823E; 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=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 49A35881FE for <u-boot@lists.denx.de>; Mon, 15 Apr 2024 14:44:33 +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-x42c.google.com with SMTP id ffacd0b85a97d-346b09d474dso3052448f8f.2 for <u-boot@lists.denx.de>; Mon, 15 Apr 2024 05:44:33 -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=h/blv1jhNMGdp3y04vVVIazZY+yEsnljwxhnc5rTng0=; b=l92+fTZCMX2IfvGEFPkZQX/8/Jnx50Xtu4d1LuMtTNhAPWcrWZAFfI5TqR+x85l6nJ GcJzZ+88E64CdUn09xg3W1zUbYv4/ZAZDyILJ6o2Ztc2yFipbvo92oG4QL37QSvcv3YT CwCZGLmk5yX2RS1NpxcIWEYTDZ31oso72LgkcYmbklfgS4YmvyAP6x7kcahj5PJWebWr x/zx9E0NzbNEUkdrZ/8HhGQh09Dkkd7VRzKmPjladFdjPWqmtdABS/za5V/4Vb38S4Lo GpdeJPUH9Wo3Kkshcy1CzwDIb+g1qo7rw5gPjPSkbFelVGevudnChxzJkHVLn3Oy4GnN PoPg== 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=h/blv1jhNMGdp3y04vVVIazZY+yEsnljwxhnc5rTng0=; b=gGy/e6VT4WRdbcNyNZPYmfT6a6PwYxcAfRihA0ldJhI0MxLrjH72NqBa+yduxVGABc i1O4f3TV7KAFmW6EPyrmhcqYt8Nt6ZWef1QAhh4qOy4szPtyyvc8vFogo2bfv62U9Obt eoVbpKxuy5N6OGTiUvNYhPJVvRUGjroyzMCoKOiRcJNk9EUqJXwAlWzriHOdpylkQBqz GPVjuFrwfman0GdZroJMoO6bU2/y3yKpSiXqw+M0uvRnkG3tecL8RuFCKypssbXGQ4yL 8Gm8vSR2opO89LyAMvIPOj5ZJTRLhI0Kx9OqNx4TBLe6KXPJvh8bEeUEx71jZUedfKjf /6yA== X-Forwarded-Encrypted: i=1; AJvYcCVDgAmBvb5RsufgU8x1BTAxTCfQfhgtoPkZTg3ruiOnhlycjaRB38Vyn8nS5ZmNfgSLgJHgKOLJlPoAKm05TMVQGgIezQ== X-Gm-Message-State: AOJu0Yzb51arRbpadiPFAxyKuXTHBnuGYHQvyStzKXMFMYRtzI/L6CVH QPYowIlEoTHEOyXVCoXdFnp2RnQZDERe62yaBZIswERPvK6D6nNbN9EzGGNU9Qg= X-Received: by 2002:a05:6000:1a8b:b0:347:9e5a:3078 with SMTP id f11-20020a0560001a8b00b003479e5a3078mr3937197wry.1.1713185072731; Mon, 15 Apr 2024 05:44:32 -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:32 -0700 (PDT) From: Caleb Connolly <caleb.connolly@linaro.org> Date: Mon, 15 Apr 2024 13:44:20 +0100 Subject: [PATCH 1/3] clk/qcom: apq8016: 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-1-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=920; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=z+mdt6z8O9e9zBFdjcbWdLQu5FVirlaHaG+3os0axxg=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjRZRb0d3LdXCW2bNdOk5/undYlPL01obZ76l8tU8/ud2 9oSt6Rmd5SyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJaF5gZFi8MP/mD3UGx1t8 ZmdmHM07dHf+ollRZ16fP6904G7LHsHrjAyr/Po/lHQy6m/41jZ976MPXlMXBNeZRiT/nqv3o2n G76XyAA== 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-apq8016.c b/drivers/clk/qcom/clock-apq8016.c index 5a5868169c89..6210fba87984 100644 --- a/drivers/clk/qcom/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -99,10 +99,10 @@ static ulong apq8016_clk_set_rate(struct clk *clk, ulong rate) case GCC_SDCC2_APPS_CLK: /* SDC2 */ return clk_init_sdc(priv, 1, rate); break; case GCC_BLSP1_UART2_APPS_CLK: /* UART2 */ - return apq8016_clk_init_uart(priv->base); - break; + apq8016_clk_init_uart(priv->base); + return 7372800; default: return 0; } }
The clk_init_uart() helper always returns 0, but we're meant to return a real clock rate. Given that we hardcode 115200 baud, just return the clock rate that we set. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> --- drivers/clk/qcom/clock-apq8016.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)