Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2683463imw; Wed, 6 Jul 2022 10:00:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u0q0JIB0OvAvakIEfJ0y1sar6pvnIivzfJREwch+F57VygRArCl/QkJEEitU0fPPKWLAcY X-Received: by 2002:a63:d018:0:b0:412:b2e8:bb86 with SMTP id z24-20020a63d018000000b00412b2e8bb86mr81455pgf.544.1657126809613; Wed, 06 Jul 2022 10:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657126809; cv=none; d=google.com; s=arc-20160816; b=dR4KUFbe6JneULMEQagcOQPxFOKjbnP4H8awjkbv+gRjj+oHG+NPhTqxqH++RYnVFQ 4s5UabSaagB4lY8dRwxLG0UPbBR0B45/C68n8Fnjt+bJFEUGpYRNqpBNeYkCM9DAsP1T YAJ1p1tFzN6hK1NIMceFXttZk/VJSdqlDpVCkd0dMMarP/5qQcO7CLepmDDqflx2PALx yBCTPKlP+MSSwQ9we2SnzSwkEnWjKlqOeN3GbsQUbxgg0mIx8Mqs0V+xsbK0RUIKTM90 qjBDG6ihPWJje0hPAnAb9Fyg3fuhBbi1+TGaOCmDNotmxKwdCEXndwW7hlNZlYofw5/K 46Sg== 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=Lyy4PcMsS+cqwpjDVYYycGwSUIy+r8XwAJruhGD/Zu0=; b=ZkkMsVvKb4AOtf8kvFidQu/4duXFInLcEsg3roSIuRiirVZv10dyLMEVpDwukQ5dnn Zkh8LqnAqiggCcHxBHqmPaUm2pAYVCjQfrvac31P8bcm0jPy+HWrhXKVnAJcuLAWDpeQ eskdm5hq9jsmSDL42jSYTI94pQtmRvzq0Mlb0+5UPf3NylxyQwDjtUur3F0O4mgfkw3z eoe4aB5poFO5fPFLNiP73aP1gv7+FqGOS2aJvDo10ne0gKfg4x5gT46SaGCL8O/t8LMJ HM/c1Z6Nlp1pgJpM2hd4b6Wd2D8Zcc5B8EukAeZsIauWBdKyroRG/buwLa783bTD1qAK l5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B7UfPWR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pl2-20020a17090b268200b001dc4320e6bcsi30177869pjb.146.2022.07.06.09.59.56; Wed, 06 Jul 2022 10:00:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B7UfPWR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232988AbiGFQ6x (ORCPT + 99 others); Wed, 6 Jul 2022 12:58:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233758AbiGFQ6i (ORCPT ); Wed, 6 Jul 2022 12:58:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31A3B2A728; Wed, 6 Jul 2022 09:57:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BA35261DAD; Wed, 6 Jul 2022 16:57:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 555C8C3411C; Wed, 6 Jul 2022 16:57:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657126630; bh=GF/aKIAzhOdpyO5Xdb1pXVqwDvZ44YUeDjQ86DdLEVU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B7UfPWR6H7wHVWrVGgUXtsz5mVegP0uqNRm7Rl0GaG6lSk3/XF0bJ1dRDz910/nrw ArJlrBbcmQVUkXNEozaNrykOgZ0XjbILwzH8Eig5ZPcPfEFKMTk1JzxGSdij9yq67/ xOtgyfqkH+q2ZHp2h9BXhpi1JfDk6uKgD51fVcSVBFpqrBwKzY7rLXfVsxlhUhgZM9 CMDchWma018hV0+3hZpxLL5P198TNxnQukwCj8zo74rOMxLjpft0GWboEFVGfNRYBH dVp5s+/IxNrMQyMbS6/mLBlKrb3ESTrf8ZNrF6Lyz4CJD9yebEDJ5ftpznp9zNLEc9 NUsajuj6c/aKA== Date: Wed, 6 Jul 2022 22:27:05 +0530 From: Vinod Koul To: Sean Anderson Cc: "David S . Miller" , Jakub Kicinski , Madalin Bucur , netdev@vger.kernel.org, Russell King , Paolo Abeni , linux-arm-kernel@lists.infradead.org, Eric Dumazet , linux-kernel@vger.kernel.org, Ioana Ciornei , Jonathan Corbet , Kishon Vijay Abraham I , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-phy@lists.infradead.org Subject: Re: [PATCH net-next v2 04/35] [RFC] phy: fsl: Add Lynx 10G SerDes driver Message-ID: References: <20220628221404.1444200-1-sean.anderson@seco.com> <20220628221404.1444200-5-sean.anderson@seco.com> <431a014a-3a8f-fdc7-319e-29df52832128@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <431a014a-3a8f-fdc7-319e-29df52832128@seco.com> X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 05-07-22, 11:29, Sean Anderson wrote: > >> + /* TODO: wait for the PLL to lock */ > > > > when will this be added? > > I'm not sure. I haven't had any issues with this, and waiting on the lock bit is > only mentioned in some datasheets for this SerDes. On the LS1046A for example, > there is no mention of waiting for lock. okay maybe remove the comment then? > >> +static const struct clk_ops lynx_pll_clk_ops = { > >> + .enable = lynx_pll_enable, > >> + .disable = lynx_pll_disable, > >> + .is_enabled = lynx_pll_is_enabled, > >> + .recalc_rate = lynx_pll_recalc_rate, > >> + .round_rate = lynx_pll_round_rate, > >> + .set_rate = lynx_pll_set_rate, > >> +}; > > > > right, this should be a clk driver > > Well, it is a clock driver, effectively internal to the SerDes. There are a few > examples of this already (e.g. the qualcomm and cadence phys). It could of course > be split off, but I would prefer that they remained together. I would prefer clk driver is split and we maintain clean split b/w phy and clk -- ~Vinod