Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1266460imc; Sun, 17 Mar 2019 08:49:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDKsXydTwKEV8fxOWGyM97e7KK6hPbbOo9/eCe3hz3mnLIQ1v7NyxNvtRauxmmebFDF0cv X-Received: by 2002:a63:1cd:: with SMTP id 196mr13562003pgb.58.1552837770515; Sun, 17 Mar 2019 08:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552837770; cv=none; d=google.com; s=arc-20160816; b=W+XvDskCTqh8qxZALjNombnFmCRjXUxkjPRVPSnSF29kama2PafNaeKo8oiZe0EJzz qeVy5PXJtGdjj1A7X5evUih0ZZ5R4O7rjaTxuzrqBiaimmoF0/OePoHU8Gk8P8QHHooE O/FBeuhzz8bb/H6MpYpwQI3m2EqC4CVlVqzoiaLDqcO13Mx+sN/+qNx9zQ3mZgDnj2my 3eAIdZOL55/6tejyAPhaBEH4uxaT/etgkrT1ET+06i4QwxB4x6qWc8lRuJrEeZDwBtLs GOHB6jBV0iOi2+nHGEY/HnlBnJTIKFrBJItpgVEYD33I5JDvhCmeDfTse3+b3RUXxoAC 248g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=tBIhQIi4ZTn01iZjkTLI+q7SovrG/d/r+dxu3j6bFWw=; b=SvNyBCGNvctN2UNxvl9UMjMxjR9FOnT5e/OrK0UzcyEdbG1J7lt3m31OVjHkzQWap7 A3lb7DU9zi7IBN9qTCgI7glUiBK1PXgctVIkFhCjHLJh9vmB6PVeF8QtgRXWK9BdQXiK VQZEZRK6DLZqa6+fo4Lm9FaLSFNF0IT1aLY2jb0A3iDJ11FPrXP592+hU8SBMYWbsEG4 YAYTRh2kVgSL/BBUFc5xeh0uYRn1H53wqf7AWrxM4tUgGE+Bh5Z+ZCQRQ4P1dmoBdilz 2OGrufZamX7VW3YkrnuX/wF7t16NWIk/HdXcBV4pBxP4w46OmJ1oSikC4Z2Eb8O3twmI umXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=otd8Jp2T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si6664973pgt.559.2019.03.17.08.49.15; Sun, 17 Mar 2019 08:49:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=otd8Jp2T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727490AbfCQPsb (ORCPT + 99 others); Sun, 17 Mar 2019 11:48:31 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:56471 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727400AbfCQPs0 (ORCPT ); Sun, 17 Mar 2019 11:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tBIhQIi4ZTn01iZjkTLI+q7SovrG/d/r+dxu3j6bFWw=; b=otd8Jp2TWzGB0l0rUPiUMNr8Pi nkIAfy4eUKD8g3qd96ZYrX9WSDdiEg00NlzQidopMRH+uTkADGPU2IZxKf71wy2NbRuqUZvVigM9R vGr9AdB3tgUzVNj3eMCqOIvBfEXSGG8k/MzmgXcEs5I3a7fm846hnAjsgN+xW3cT2kPU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1h5Y1N-0005y3-B5; Sun, 17 Mar 2019 16:48:21 +0100 Date: Sun, 17 Mar 2019 16:48:21 +0100 From: Andrew Lunn To: Jerome Brunet Cc: Florian Fainelli , Heiner Kallweit , "David S. Miller" , Kevin Hilman , netdev@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 2/3] net: phy: add amlogic g12a mdio mux support Message-ID: <20190317154821.GA22226@lunn.ch> References: <20190314140135.19184-1-jbrunet@baylibre.com> <20190314140135.19184-3-jbrunet@baylibre.com> <20190316025448.GD29548@lunn.ch> <13432d537f671c8065693b7e53348f812e8bbc04.camel@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13432d537f671c8065693b7e53348f812e8bbc04.camel@baylibre.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 16, 2019 at 06:02:45PM +0100, Jerome Brunet wrote: > On Sat, 2019-03-16 at 03:54 +0100, Andrew Lunn wrote: > > On Thu, Mar 14, 2019 at 03:01:34PM +0100, Jerome Brunet wrote: > > > > +static int _g12a_enable_internal_mdio(struct g12a_mdio_mux *priv) > > > > You would generally use the _ prefix when you have a locked and an > > unlocked version. I don't see anything like this here. So please drop > > the _ . > > > > will do > > > Nice to see the generic clock framework being used. I just wonder if > > this is the correct place to have this clock code. Can it be made part > > of the SoC clock code? > > the PLL is local to this particular device. > > In 'Soc clock code' (driver/clk/meson in this case) we usually put clock > controllers. Those controllers feeds the different devices of the SoC but we > tends some more clock elements in the consumer device > > Usually, it is just a few mux, dividers and gates (like in > drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c) but in this case, we have > a PLL. IMO, it belongs here. Do you see a problem with this ? Hi Jerome Some maintainers like to have code in their directory structure. It would be good to check that the clock maintainer in happy with clock code under the network driver subtree. Also, the clock maintainer should also review this code. So please at least Cc: the clock maintainer and clock list on the next submission, as well as netdev. I personally don't know the clock code well enough to review such code. Andrew