Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1748107pxb; Mon, 12 Apr 2021 06:00:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2ggl+5Ld5EU1nkVyR/rZAN7n1jVLu38kUWC53JGkjNVNzoiRwFR6X3g/gPkiOOBYNXpYY X-Received: by 2002:aa7:c1c8:: with SMTP id d8mr14670707edp.236.1618232400176; Mon, 12 Apr 2021 06:00:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618232400; cv=none; d=google.com; s=arc-20160816; b=D0kcFONqT9lq0ylvyqsSWSoN562ADvEPlv+SiVh3GSp7X37TX+pTqr9N70+qU221yt iL4D1GjKAlwnHNSJ2Z8bUi5N7w2H60ENkVFwgwxaoYLlwrHZaVNs7XE9OvoV3+Eoq7qa oI31uFIrJEFYHSJfHN3h8cEv4zlgN93BZfqO2XtkQtjw7BlkWYfrST5yxOhonJiLFQva VMTbkbZir7tGrmbAxOHxdMAuhmZqySGKxtLa1sx8kDd9fbH0+IWb9MTvGSb22RCmZDGC qTtYZN6oLSR2mRIyOOKmHIsN4iPmIxrnwE4yQ7Ehs1aF9BbKB6iUTrLLl4ZL0Wr65o2D ArRw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Ip6O3giNHzAnNoWTi3JPIQ7Jt/53MWbHDW/JFi1xrzE=; b=xhcxVeLmr7ndBgmJGFcS6sMPTS7/wU7GjDhHKtCoq/mmchWYDQC3tPD3xZKNA2E/4P hsDbUwLx4Ng6y3/EUipLik4dqJHud5rdMhiKu+W58AZI9/9/t23JrdIBAHi99Qw5AJRK nCqqPrF9Lr4LbSPJk9HOm74joESJ5x64AuRVKwXvKS5sW2XFy0nQBMxSTiLiXGc8G/5/ 5SupFYqirKm3AozbNlXfnVJaMxDvAtptUT4CymQ7QgkIh9qmbgY7PBLSEQ3WgNZWO9uA gfGXklFZcc2v3KJtdL0wD0Gp3AMPzNlhZBGR0mR1Zih6EYatqXE/uEmBjlO1juvGtReL JXCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hd34si7812959ejc.197.2021.04.12.05.59.37; Mon, 12 Apr 2021 06:00:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241556AbhDLM5z (ORCPT + 99 others); Mon, 12 Apr 2021 08:57:55 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45404 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241506AbhDLM5x (ORCPT ); Mon, 12 Apr 2021 08:57:53 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lVw85-00GGXV-JZ; Mon, 12 Apr 2021 14:57:25 +0200 Date: Mon, 12 Apr 2021 14:57:25 +0200 From: Andrew Lunn To: "Radu Nicolae Pirea (NXP OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] phy: nxp-c45: add driver for tja1103 Message-ID: References: <20210409184106.264463-1-radu-nicolae.pirea@oss.nxp.com> <64e44d26f45a4fcfc792073fe195e731e6f7e6d9.camel@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <64e44d26f45a4fcfc792073fe195e731e6f7e6d9.camel@oss.nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 12, 2021 at 01:02:07PM +0300, Radu Nicolae Pirea (NXP OSS) wrote: > On Fri, 2021-04-09 at 21:36 +0200, Andrew Lunn wrote: > > On Fri, Apr 09, 2021 at 09:41:06PM +0300, Radu Pirea (NXP OSS) wrote: > > > Add driver for tja1103 driver and for future NXP C45 PHYs. > > > > So apart from c45 vs c22, how does this differ to nxp-tja11xx.c? > > Do we really want two different drivers for the same hardware? > > Can we combine them somehow? > It looks like the PHYs are the same hardware, but that's not entirely > true. Just the naming is the same. TJA1103 is using a different IP and > is having timestamping support(I will add it later). Is the IP very different? You often see different generations of a PHY supported by the same driver, if the generations are similar. Does it support C22 or it is purely a C45 device? > TJA is also not an Ethernet PHY series, but a general prefix for media > interfaces including also CAN, LIN, etc. > > > > > +config NXP_C45_PHY > > > +???????tristate "NXP C45 PHYs" > > > > This is also very vague. So in the future it will support PHYs other > > than the TJA series? > Yes, in the future this driver will support other PHYs too. Based on the same IP? Or different IP? Are we talking about 2 more PHYs, so like the nxp-tja11xx.c will support 3 PHYs. And then the tja1106 will come along and need a new driver? What will you call that? I just don't like 'NXP C45 PHYs", it gives no clue as to what it actually supports, and it gives you problems when you need to add yet another driver. At minimum, there needs to be a patch to add tja1102 to the help for the nxp-tja11xx.c driver. And this driver needs to list tja1103. Andrew