Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp132601rdb; Thu, 5 Oct 2023 20:39:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNdJjXkIqIs8zr/jeIeQB2b3EmRug3ZPkoTvIJbYPsw9r3hEtxc7gR0mWNY4ZSaXzE5Sz0 X-Received: by 2002:a05:6808:3025:b0:3a3:6cb2:d5bf with SMTP id ay37-20020a056808302500b003a36cb2d5bfmr8546870oib.4.1696563588711; Thu, 05 Oct 2023 20:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696563588; cv=none; d=google.com; s=arc-20160816; b=vv+YOXrtQ8UbqmCdpJjd8NCemejp7G2MrVhDEBXN89zGPwO/iRwIZ4nuG7bRyap5TH ZhfHrtUpi24HPOl2VkfQJIXXOleS7/BntNS6bffGfj+yfRFRhXe3oOz/0c0WwXvbnHqH uzytPZ3zMq4rQknVqRl02iLnEMTEWO1Z4kEN13GWFdER4VknjzG2r88BF2j0JIFUtxye oCI1BwyfZIKqtrLf29BGAJ6qJfoBHSwi0SbRarrGRySht+LU62G3aYYqh2JApEpDfnaw QBG8Ph/N3wPtnu2oFq0DF2AjHU8YqZbfiAVHcCv4p1F1vKp8PucRNnPZYvUBcFs6BFxI 0jFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :dkim-signature:dkim-signature:date; bh=Y8gM+5bxgcjLBwjx6eiNsY111P2+A8NBDT1mBtA5yyo=; fh=5lEW9mBWnjDlBKKCFRIpZVVVbKyaT2L5w4hieKrotd4=; b=q4xCNMcaDlOBw8M+FGB/46nqvfbd4mj7gDgbzkCHxx+F/TUGu50AsRiGNiEv3pMFiG fsQdzgv7BP2UYUYHCHqKlCigkbwlkWheTqqUTmzjSpU2j+WgIgtuBQ+05ZMwBy+rKFCc UCaz1Hk/SQqgP5lwEV0jblpwQzT0nPhyODVqYeiRCSWaI7tFDYpAX03M/wuDE2ZX3A6j fFk6MOJYJstOCMBfkLfG37vJLUNqgVuCU5L/K4uqJkk7k1IpEGWxeP+iGRbybVM7/Y/Z QkMYgZZHCZM6pTtcbMIbTvAM8YU5PGTWdiATWtPvJ5RhY/wLqof5cHxlrBhF0R+NVemt mEPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=KW1MHQI0; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id n20-20020a637214000000b00563e283786esi2774479pgc.104.2023.10.05.20.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 20:39:48 -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=@linutronix.de header.s=2020 header.b=KW1MHQI0; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 723F2838B3E4; Thu, 5 Oct 2023 20:39:25 -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 S229899AbjJFDjM (ORCPT + 99 others); Thu, 5 Oct 2023 23:39:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbjJFDjL (ORCPT ); Thu, 5 Oct 2023 23:39:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA7B3DB; Thu, 5 Oct 2023 20:39:09 -0700 (PDT) Date: Fri, 6 Oct 2023 05:39:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696563547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y8gM+5bxgcjLBwjx6eiNsY111P2+A8NBDT1mBtA5yyo=; b=KW1MHQI0yb22k6g0oHz61UQiSGNbsUYUSK0J/7eaMiIexsb9ZS2FwiXI8YSRDnFMzBn4MW cN22jQ9ok1sWEIWAHWFBQE2mzwVwvnSEbsj9dVurLd3x61gDNp8vevkAWsfo4aEVsj27zx Q/YXmlQLiSTgcVykKtQM1dz6/SCp2r4PJQU1c2wgnNanQYFoyQoY8HUjbD+bDrVFz2Ttn/ KyvhztZEfAt0TIWNa0wu9YdqQoP+vANkWEc52E1Wd7lHMjBHUbLnbg5gLeIQX1sIrDvnYV CemQDB/NyQM1V8/11uNVsPEr4MkX/nqk2VEvQQCiCNJ+9tMy6z0guo4xAWKRWA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696563547; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Y8gM+5bxgcjLBwjx6eiNsY111P2+A8NBDT1mBtA5yyo=; b=bNCmbpBIEcFp+V3vBpVGtEpl81sllI2MPzb45Hn/BpNWkqKPRuAFJJpTZB/ioxiYC6hsQf AtCjiG9GM8VybECQ== From: Benedikt Spranger To: Stephen Boyd Cc: Maxime Ripard , linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Michael Turquette , Dinh Nguyen Subject: Re: [PATCH 1/1] clk: socfpga: gate: Fix of by factor 2 for serial console Message-ID: <20231006053906.1bb2a7d8@mitra> In-Reply-To: <77d94f6a6a4b45f8ad711f52ca6ba86c.sboyd@kernel.org> References: <20231005095927.12398-1-b.spranger@linutronix.de> <20231005095927.12398-2-b.spranger@linutronix.de> <20231005203202.08b5d1cf@mitra> <77d94f6a6a4b45f8ad711f52ca6ba86c.sboyd@kernel.org> Organization: Linutronix GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 20:39:25 -0700 (PDT) On Thu, 05 Oct 2023 14:03:19 -0700 Stephen Boyd wrote: > What's your analysis? Commit 9607beb917df ("clk: socfpga: gate: Add a determine_rate hook") breaks serial console output and changing the determine_rate hook to __clk_mux_determine_rate() fix the issue. > Does this patch also fix it? > > ---8<--- > diff --git a/drivers/clk/socfpga/clk-gate.c > b/drivers/clk/socfpga/clk-gate.c index 8dd601bd8538..b3400d2d8128 > 100644 --- a/drivers/clk/socfpga/clk-gate.c > +++ b/drivers/clk/socfpga/clk-gate.c > @@ -173,6 +173,7 @@ void __init socfpga_gate_init(struct device_node > *node) if (init.num_parents < 2) { > ops->get_parent = NULL; > ops->set_parent = NULL; > + ops->determine_rate = NULL; > } > > init.parent_names = parent_name; No. serial console is broken too. Regards Benedikt Spranger