Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp355940rdb; Thu, 5 Oct 2023 07:57:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaG1QJ5Y1ZpO3qJil1nNiqRn1UawiVNPkhudanphyESJJovuQOmoxqnu8JPUSkuZwMdysG X-Received: by 2002:a05:6a20:8402:b0:161:22c0:541 with SMTP id c2-20020a056a20840200b0016122c00541mr6414241pzd.25.1696517855308; Thu, 05 Oct 2023 07:57:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696517855; cv=none; d=google.com; s=arc-20160816; b=M05VMjWi7TDWrkoqnkKZsR8oKg5zbEUJqCqZ5deR4E2D6SNgvTauTKQ80czXz059Ne JnYYIICl2x82y/46ocb/1QiYjYqW84Cvl3mh7uQDU7QwB/yiwWtBAQKwiszvqctRHmFj 3uZcjFmf2O+ynYoMAlBDOlQtEHDd23oRlirLWqsEMjAcJYC3YyxmUHzj7I4E5hJBUoEB IgHOkmArqNXAmMTWa+J3emqjjTfcpFhevfpNsmYJFUZHennsjbUSUs+v3eaqMaOtG61F tJa1eWgexoFaUddAEY0vaXq0tI18uA+1DZGP+fjKkypi5ZLJOnzDBNNPNvsB8hh1bWkR Eu/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uQCzM5xbAuZl+/32wrxwrBNmw+5LgwY7U9nc7LghN6o=; fh=pcYPNdPBFfp6zvIyxkBfQtgzQb/tjEn6rlGoeiav0Xk=; b=K9S3bBCuyIizUfAg2gmrn/vL/BaRGb1a+ybF/5rx8xFLGeTfRM3HU49wZ4qTHCqyWb qQG4yHBqDzpLtnZGEYnD6u4fvsyoIgRxMlW+De4zFBQVrcLPZImaQJPEnQr0gcGSCs88 IqjFdb8Oteq3y0mT2tAiI3aZ3kpPQDOLM+SoS/kH3LVZrgAGZVoSev5teI/4p3f5W7PK Ec0aflSH+U3lP7wiCISanfnjVudNZ8yX8PXn6xgydMjfUoXMdhlkhr/hQGzhz1LaZE9N hwOgEJ2hs8hWMlZfCcnrP5PNZA/6My7hvLCGRxbE+kglqlgO7P8cIty94fO0Kf/S3akr uHIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X0ft9yf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id l17-20020a656811000000b00584d16c6439si1574005pgt.622.2023.10.05.07.57.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:57:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=X0ft9yf3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C2CB182F08F2; Thu, 5 Oct 2023 07:57:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237675AbjJEOmK (ORCPT + 99 others); Thu, 5 Oct 2023 10:42:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231479AbjJEOhv (ORCPT ); Thu, 5 Oct 2023 10:37:51 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E29F497A3; Thu, 5 Oct 2023 07:02:58 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D08F8C3278E; Thu, 5 Oct 2023 11:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696505644; bh=uQCzM5xbAuZl+/32wrxwrBNmw+5LgwY7U9nc7LghN6o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X0ft9yf36AQug4BLX5o8ln8sDmEA79VOqDZe1B3WKxylc0cjhwD8VeW/T9iPtoGN0 aP0r2Oy/ylZS+cNPV1HR+qwnj/Chq/JeYm33JfbMbvVxVu1cf/4uRTtLegDwib7EvM 66UeHSDD8BQgPGvA9cIE0qDRNj3Wl9poy06t6FFzv4DKh+4JbaA+ZlHB25E5Ed30y/ yFlf5KpW/RJJ2PhS0BvyvLR2aD0KsWoSQQiSWqcpkcqhmhGA4LprVP+gkCI1aQa/A/ kIMezW0l6WM+lk8PiTiLJrQuQvKmPGPKqrER+QXnmROlFg9xMZ6CZI4Xqpa2CO71N7 vfUF4l1FEcl+A== Date: Thu, 5 Oct 2023 13:34:01 +0200 From: Maxime Ripard To: Benedikt Spranger Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Stephen Boyd , Michael Turquette , Dinh Nguyen Subject: Re: [PATCH 1/1] clk: socfpga: gate: Fix of by factor 2 for serial console Message-ID: References: <20231005095927.12398-1-b.spranger@linutronix.de> <20231005095927.12398-2-b.spranger@linutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="prvu7vztqw3jsd37" Content-Disposition: inline In-Reply-To: <20231005095927.12398-2-b.spranger@linutronix.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:57:34 -0700 (PDT) --prvu7vztqw3jsd37 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Thu, Oct 05, 2023 at 11:59:27AM +0200, Benedikt Spranger wrote: > Commit 9607beb917df ("clk: socfpga: gate: Add a determine_rate hook") > introduce a specific determine_rate hook. As a result the calculated > clock for the serial IP is off by factor 2 after that i.e. if the system > configures a baudrate of 115200 it is set physicaly to 57600. Where is that factor 2 coming from? > Change the determine_rate hook to the reparent variant > __clk_mux_determine_rate() to fix the issue. It's also not clear to me why that would fix anything. This patch should only make the old behaviour explicit, could you expand a bit on what happens? Thanks! Maxime --prvu7vztqw3jsd37 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZR6fKQAKCRDj7w1vZxhR xWkXAP944YltL6lQ6PADz9Gi/tzH2kaECDaV1ZlxH1ROb0heXAD9FYCgSiGiA8Ol Q96Bcx34HvhWVd152+c2DCv2VNyF3gw= =G/z2 -----END PGP SIGNATURE----- --prvu7vztqw3jsd37--