Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2714277pxb; Tue, 13 Apr 2021 08:28:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwparM+KQudjEQEl+DSkcckeaFA5cDsWd5nj/cSQBG0AzhTZNvGnzWmGMkCDJ2LPGiv54M X-Received: by 2002:a17:906:2da9:: with SMTP id g9mr31671097eji.100.1618327724616; Tue, 13 Apr 2021 08:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618327724; cv=none; d=google.com; s=arc-20160816; b=FEGQbJpe3/jCixiQD6VyWq7Zx+GgO0w3cwfCH7Izql4wnl53v/4d4n1oPNclY1pOT7 /rXYSWs6kgP5LkO9uOd3iGCQ/FkGLZhssQftCIi9lvS5oV97UH12911YnpBTQl3e+ar5 YzdZ81gR85fJ0aXMM7Q9vrwGaTgbV9Er2Svhb8dh4iH51ykq/o81SGWLhOxArEdPNe+I 0FVbPBzevGzPmceMsuaRve6Bf/hexs40ttdtpNXwoSSl1JM31hpLdMN2PeoXmd+8jk89 zCP/rz1xBvZ+ZGEljBe7HYKhix5StWCh7w/QuITKrYEbn5LW0NursSK/Af7/JL0wd3Tn gPlQ== 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; bh=OJ3naQA9oL9+r/Ygj5zTv3fmNh2eDanKKAA+/DciIHI=; b=thr66cYteuEarzKl+0P20sUx5Ya28eF77CYy95MkBQnjy6w7r9+n/+yewLlxJHE/6l mosC9psgDbqmkTdX6I2vG7adBrJFDVDv7soW4frWN3AgJ3GOTtrhk1o21FIGI0hLv0Y2 GgMmW4Zdg/L/lFIIrXpnev1Th0fG8nNceVPyXSngml+h6Tve+ND7KsBFOAxEpbjAZqnR pK7xD2qEFpso5aeoGUvg/z1AGhU3Pox/2L2hj0kgqy50IAP8xzd2f4tgYAuepQaE/9VE lMNu06VuuZMfh9gj2UZPPNBz9TlPZu/tsw8FYlk2dfl9k0v+OoaED3owwj0u4k2QMCxn yL1w== 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 e15si10210624edz.11.2021.04.13.08.28.20; Tue, 13 Apr 2021 08:28:44 -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 S1345987AbhDMNbC (ORCPT + 99 others); Tue, 13 Apr 2021 09:31:02 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48300 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231682AbhDMNbC (ORCPT ); Tue, 13 Apr 2021 09:31:02 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lWJ7l-00GTjP-9q; Tue, 13 Apr 2021 15:30:37 +0200 Date: Tue, 13 Apr 2021 15:30:37 +0200 From: Andrew Lunn To: Christian Herber Cc: "Radu-nicolae Pirea (OSS)" , "hkallweit1@gmail.com" , "linux@armlinux.org.uk" , "davem@davemloft.net" , "kuba@kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: 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> <111528aed55593de83a17dc8bd6d762c1c5a3171.camel@oss.nxp.com> <82741edede173f50a5cae54e68cf51f6b8eb3fe3.camel@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 13, 2021 at 08:56:30AM +0200, Christian Herber wrote: > Hi Andrew, > > On 4/12/2021 6:52 PM, Andrew Lunn wrote: > > > > So what you are say is, you don't care if the IP is completely > > different, it all goes in one driver. So lets put this driver into > > nxp-tja11xx.c. And then we avoid all the naming issues. > > > > Andrew > > > > As this seems to be a key question, let me try and shed some more light on > this. > The original series of BASE-T1 PHYs includes TJA110, TJA1101, and TJA1102. > They are covered by the existing driver, which has the unfortunate naming > TJA11xx. Unfortunate, because the use of wildcards is a bit to generous. Yes, that does happen. Naming is difficult. But i really think nxp-c45.c is much worse. It gives no idea at all what it supports. Or in the future, what it does not support, and you actually need nxp-c45-ng.c. Developers are going to look at a board, see a tja1XYZ chip, see the nxp-tja11xx.c and enable it. Does the chip have a big C45 symbol on it? Anything to give the idea it should use the nxp-c45 driver? Maybe we should actually swing the complete opposite direction. Name it npx-tja1103.c. There are lots of drivers which have a specific name, but actually support a lot more devices. The developer sees they have an tja1XYZ, there are two drivers which look about right, and enable them both? Andrew