Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp409407pxf; Wed, 7 Apr 2021 02:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaJ8PgpppOShO8bNNNUbd9PmYfgebIRmtsS12EGs8rwjgvwOFfdhbWv/oPy/rHxcJF3Fuk X-Received: by 2002:a17:906:cc4d:: with SMTP id mm13mr2751179ejb.138.1617787896105; Wed, 07 Apr 2021 02:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617787896; cv=none; d=google.com; s=arc-20160816; b=SJuanwfWwXRikTfB4PANK6Aee41a9U1TBsYAzQdbYwSAhdHNuoyDtmZtvCVjqzQnmy 7S9euYiEjbu5Iu7KF8PanuSumHa+d+sZA2cFz5sPCCqJyJ3Swn07icoPok/cnSyxHyXe Fp9fmMaUmGoD899yByho8vrZQiJE05v7P31qYGcIgOqrI466KfG/k5crAQgHtMI1nrOq aM7xRk/VeG5pCNlfCNTa6L7pfHXwrg5WAfVqmROFcJvtAPexyApKtyrHuxYRMp/kzdVz D3p4woIvveV+RBhob88DJdvGxjrygsujChC4dSGz3ZeSCqAmaszuF4jAPozDqCZwT2jr hp7w== 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=AXncvn9RUFxD+lQAnKzzEHXhrMh27N/9YUKki6PLtsk=; b=0SrRvlIc0ow9xKkppPIwZnX/I7hl2bH5FLrW/w1+NksxUN5OPGISNy7vQeo/Edc4B4 Ldb7extt57C6VW6AKwuVyTdlnu3Ivt6Qw8JYIbJw5UJ10xeAnEs+j6Cdbor5ITYVyjj7 3yXZLjx3IWtyfxxfjGf369RiHnhgOnZH+mVkJqL3PFMiAootLxkqRkQsl0DBp4GKDury li/K4feP/TUI9CP6WbJF09RTRcXXElzgUHr197WbYczXI9n4G3WwDC8dZrc1dOcgv78p G+a1tZSj+t4BSUex6EHk6f3+nBfdf5Bn+EHIoZkqKB609RuIo4vMa6M2kfHmpe/lu7ma UFkw== 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 qt10si2099478ejb.256.2021.04.07.02.31.11; Wed, 07 Apr 2021 02:31:36 -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 S236912AbhDFQCu (ORCPT + 99 others); Tue, 6 Apr 2021 12:02:50 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:36116 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232350AbhDFQCq (ORCPT ); Tue, 6 Apr 2021 12:02:46 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1lTo9t-00F91t-0O; Tue, 06 Apr 2021 18:02:29 +0200 Date: Tue, 6 Apr 2021 18:02:28 +0200 From: Andrew Lunn To: Chun-Kuang Hu Cc: DENG Qingfang , "David S. Miller" , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Landen Chao , Matthias Brugger , Russell King , Sean Wang , Vivien Didelot , Vladimir Oltean , Rob Herring , Linus Walleij , Greg Kroah-Hartman , Sergio Paracuellos , linux-kernel , "moderated list:ARM/Mediatek SoC support" , linux-staging@lists.linux.dev, DTML , netdev@vger.kernel.org, Weijie Gao , Chuanhong Guo , =?iso-8859-1?Q?Ren=E9?= van Dorst Subject: Re: [RFC net-next 1/4] net: phy: add MediaTek PHY driver Message-ID: References: <20210406141819.1025864-1-dqfext@gmail.com> <20210406141819.1025864-2-dqfext@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 11:47:08PM +0800, Chun-Kuang Hu wrote: > Hi, Qingfang: > > DENG Qingfang 於 2021年4月6日 週二 下午10:19寫道: > > > > Add support for MediaTek PHYs found in MT7530 and MT7531 switches. > > The initialization procedure is from the vendor driver, but due to lack > > of documentation, the function of some register values remains unknown. > > > > Signed-off-by: DENG Qingfang > > --- > > drivers/net/phy/Kconfig | 5 ++ > > drivers/net/phy/Makefile | 1 + > > drivers/net/phy/mediatek.c | 109 +++++++++++++++++++++++++++++++++++++ > > 3 files changed, 115 insertions(+) > > create mode 100644 drivers/net/phy/mediatek.c > > > > diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig > > index a615b3660b05..edd858cec9ec 100644 > > --- a/drivers/net/phy/Kconfig > > +++ b/drivers/net/phy/Kconfig > > @@ -207,6 +207,11 @@ config MARVELL_88X2222_PHY > > Support for the Marvell 88X2222 Dual-port Multi-speed Ethernet > > Transceiver. > > > > +config MEDIATEK_PHY > > There are many Mediatek phy drivers in [1], so use a specific name. Those are generic PHY drivers, where as this patch is add a PHY driver. The naming used in this patch is consistent with other PHY drivers. So i'm happy with this patch in this respect. PHY drivers have been around a lot longer than generic PHY drivers. So i would actually say the generic PHY driver naming should make it clear they are generic PHYs, not PHYs. But lets not bike shed about this too much. Andrew