Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp833565lqd; Wed, 24 Apr 2024 20:06:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYDa54IfF2M8r3rogKms/AFKcp0ZriFSlJnZin0tuz8jpVWadpQn+aF8RON1QQJJ/uAZebT0Bfgs2TEzE1QgMa3PGlEBEhpjtS/JHNpg== X-Google-Smtp-Source: AGHT+IFUTQDidcs8MBnm2LWenfZ/JY/4lbhlm092wnpjfEfkWndok2FrpdQwpE+Ngx/9xPINZ3sb X-Received: by 2002:a9d:7c99:0:b0:6ed:a5b4:b4a7 with SMTP id q25-20020a9d7c99000000b006eda5b4b4a7mr911945otn.24.1714014392446; Wed, 24 Apr 2024 20:06:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714014392; cv=pass; d=google.com; s=arc-20160816; b=aYNCZkUhNtG+uMpYHHjpFAEA513EbNjpSjMfbN42fGFf5VWiCFsbJZC929MlNI5Wvf jQPQAJbJreozTfEOLfOYzRwMLBqvfVQS6mPDEUkZyEJoXJ28VHX8mjvCF8ef3MuxGOjm +7ocBC2KUpqaEq4OUY7vFcIHyQtaJNtpP0b54ObIoJ2VAKEseL1xgVy6y7yyh6Y0Onui QjImrEh3vLU3BMK8/ZaZ1uoogPrBuh6o7UJLxT0GPjxgxV0GNt+us0fPinf1g/k9+6G7 VyTHQtz5X9gB1GBWznb2Vkk+68ztulyvSWaPb1khvF9647EmJgGnuqw57k++O3SVj6pt I33Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=JjNuZwdpUNRBh/I8SUva37k5rbG4PIOlDP+VOniuWv0=; fh=EPHeAB7sgYh/xLKPdQO+ewOdE/NGs8LGVC+Prk0uGYI=; b=M3Q+Q4XPQmwygalbvSWdjz8XLXJ6GpAPlPaxeu2rbpUcVZoEhSagRF4uJuIv6CuSPY iqmE/dePYwiBrrifJYUUO/4eJlzYGskxJIWL5CMaPqyz27uBpCmiAmJ8gFrm43jaCccL 4J8BVXtCOnphaQmxxCWcwXfW2hc5CgS49BuX/9adS3j8s6Kfwbt1BJj5HfB/ijVl5p5G n/C1m2HZKnoCh2jXRdZ1FDrhCxmsxoAeZaHZrUONzhaAZFyEOzGV1Knl+NnV8BiUyH9q Q2Jv/t+2Jif41m2w7QebCUGzUSJkBAOxRMLlvImuownoYQfas4qrvZF9wZDEMLG8hiKo d6FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-157952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157952-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s72-20020a63774b000000b005f7df327152si10610196pgc.526.2024.04.24.20.06.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 20:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-157952-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157952-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D8E672859FF for ; Thu, 25 Apr 2024 03:06:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8114A182CC; Thu, 25 Apr 2024 03:06:22 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26A50111AA; Thu, 25 Apr 2024 03:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714014382; cv=none; b=XwCqLTeXhtSrkmCC8D/2ShlmUGEv3Pr7Uj7sIf9nf9sf/mAyIGJ0Q2j7jfV9u7JFeN8vaRUbrnuycAQGsuLwS7aeqAYksoRGpFJNNkP4o1zw261yaVnxo2FyCdOWQMLd+7QAQREDLqsVD+iBKZbvPO/ZX54bsxB6wWJkNL3ebFk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714014382; c=relaxed/simple; bh=+oi7f7SGjmXMBqcHIf7Ga8+Wqc+wY2R+gJZ+srRQAdc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=T115c9ckg15t3Cf5ITe2M3ruNdDoEmJ4BRvTRVUDAwOaE8LiAuRyS0RLPaBpG4aOx9hZjjwNFcEt4bW39yhhNmvmKeWOde8qd6917msyOHsR55ZZaAk8Wj1lrHVDOSnDp0yIiNLLN0vG6//mugNxl/ZWsLDbv7KhUQz1KpL+4eI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.97.1) (envelope-from ) id 1rzpQt-000000000iK-0fH5; Thu, 25 Apr 2024 03:05:59 +0000 Date: Thu, 25 Apr 2024 04:05:55 +0100 From: Daniel Golle To: Sky Huang Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Qingfang Deng , Matthias Brugger , AngeloGioacchino Del Regno , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Steven Liu Subject: Re: [PATCH 0/3] net: phy: mediatek: Integrate mtk-phy-lib and add 2.5Gphy support Message-ID: References: <20240425023325.15586-1-SkyLake.Huang@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240425023325.15586-1-SkyLake.Huang@mediatek.com> Hi SkyLake, On Thu, Apr 25, 2024 at 10:33:22AM +0800, Sky Huang wrote: > From: "SkyLake.Huang" > > Re-organize MTK ethernet phy drivers and integrate common manipulations > into mtk-phy-lib. Also, add support for build-in 2.5Gphy on MT7988. I assume this should go to net-next. You should mention the target tree like [PATCH net-next 0/3] and so on, in this case it's pretty obvious though. Generally the series looks fine and I'm glad you factored-out common parts like the LED handling which is a great improvement also for the older PHYs found in MT7530 and MT7531 as well as MT7621 and MT7623N. Splitting the the 3rd patch into more atomic changes would make reviewing a bit easier. Also note that I've recently submitted some fixes for the LED support which now have already been accepted to the net tree, see https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=5b5f724b05c550e10693a53a81cadca901aefd16 So it might be the best to wait for the next round of rebase of net-next before dealing with your suggested changes to spare maintainers from having to deal with the merge conflicts otherwise. Generally it'd also be nice to add support for the NO_LINK rule to the netdev trigger, as it is supported by the hardware, but that can also be done later obviously. Cheers Daniel > > SkyLake.Huang (3): > net: phy: mediatek: Re-organize MediaTek ethernet phy drivers > net: phy: mediatek: Add mtk phy lib for token ring access & LED/other > manipulations > net: phy: mediatek: add support for built-in 2.5G ethernet PHY on > MT7988 > > MAINTAINERS | 7 +- > drivers/net/phy/Kconfig | 17 +- > drivers/net/phy/Makefile | 3 +- > drivers/net/phy/mediatek-ge.c | 111 ---- > drivers/net/phy/mediatek/Kconfig | 33 ++ > drivers/net/phy/mediatek/Makefile | 5 + > drivers/net/phy/mediatek/mtk-2p5ge.c | 399 +++++++++++++ > .../mtk-ge-soc.c} | 522 ++++++++---------- > drivers/net/phy/mediatek/mtk-ge.c | 191 +++++++ > drivers/net/phy/mediatek/mtk-phy-lib.c | 330 +++++++++++ > drivers/net/phy/mediatek/mtk.h | 97 ++++ > 11 files changed, 1277 insertions(+), 438 deletions(-) > delete mode 100644 drivers/net/phy/mediatek-ge.c > create mode 100644 drivers/net/phy/mediatek/Kconfig > create mode 100644 drivers/net/phy/mediatek/Makefile > create mode 100644 drivers/net/phy/mediatek/mtk-2p5ge.c > rename drivers/net/phy/{mediatek-ge-soc.c => mediatek/mtk-ge-soc.c} (79%) > create mode 100644 drivers/net/phy/mediatek/mtk-ge.c > create mode 100644 drivers/net/phy/mediatek/mtk-phy-lib.c > create mode 100644 drivers/net/phy/mediatek/mtk.h > > -- > 2.18.0 >