Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1980662lqp; Tue, 16 Apr 2024 04:01:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQMatdP3zd3//4716uayqFAz379QMp+j5v1KsMb6eoeo1Ctu6NB88mF7Yfz8LrUTmkOfZ8Wt5bT6pYm9lMFf9Efy8LTUQdI8jlCcjHkw== X-Google-Smtp-Source: AGHT+IEOCKf1mfwfRmCJptckuGhVhg34Artdp9NSLG+p1LKBn8yG8hrm26bx9Bd1Na85MhTHMh8m X-Received: by 2002:a17:906:3e52:b0:a52:11c8:764e with SMTP id t18-20020a1709063e5200b00a5211c8764emr1270295eji.25.1713265293437; Tue, 16 Apr 2024 04:01:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713265293; cv=pass; d=google.com; s=arc-20160816; b=fChqczxluSXot4DOGIVXVAyRHifD6pCdXR2kVut74bd8nNjxWsyJBvtU3x0Fm+dvS/ U8vPgTncizAXqRH2miUDKlIimAZ9jmVyqSdTosp4n4mB4iKXFMnjAG7x53nOyyYhzdPV TBafMuAVGEOk8KiFaZQQXXeAcL1pq5AcNWUN+59qbG6XvPtj4JimfIY1PH+jvf437PcJ alFW9dhee/IxXJYxAuIQtajNzt5FYBexqaI5Yl3/8z29tFaFXeXj/cpLSM8YLyLH6pcO QIlDgcwkri2JrWKx89bpFlKvcRFKOJ2HM5xKci6TrMPZz/HGPO6Pio3feBGigL/YsA9P xVSA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ytr2gjGDi6MOUgYACZdiW0scYQdKsmNLgN4Zn17oOZo=; fh=+3I29d7Eq01SmU00Qf/J5INBCXgs+5mQj5yShjpYzHo=; b=jaOLgCDvzXPjQZkUHfu4RulsCLOHEvQEdZyirIdiu3FW4/aW6wd7CVmqz3iAdzREB2 R9uLE5WVSE536/Mn6Z6cUgJ1Eqbag46DhdzMxo3PWn79zO5oZMdH45A1GwWec2qOFSmb Uf/QMYHr4DPrZF94XEW6bGEILsYy6QTd3OPDJ+eVKaooQBCGw6eeShRh3J/vsCJXYo0c WylngckrBX5UKJ/LiE93QcPYEm464pFOdR2hiy9jvaq2l81m6ympRYLXEZumQxQUO9Lm hxP+M+c3YFGNTSBZwxCwt7MFb13LxOsKatY2TL2mMPRiscUWr2j3tvhTx6ndf5/Jk9T2 IsPw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UxyZdEl7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146681-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i1-20020a1709061cc100b00a51a99294a5si5392771ejh.944.2024.04.16.04.01.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UxyZdEl7; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-146681-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146681-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2EE391F21F49 for ; Tue, 16 Apr 2024 11:01:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6CB912838A; Tue, 16 Apr 2024 11:01:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UxyZdEl7" Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 492CA42A89; Tue, 16 Apr 2024 11:01:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265283; cv=none; b=N/nX+GVvYCbNl6nKyrpTHPVlLznDBA16ewPbnDYejssHoFqECHOMrovY/CC4LNpAmuWxBlmk8kPz7x1O304NXblpTfm90XCGGL3CKkg3Y6/H6evgeukznga4dylvrtb/pDLB66bti7b5hkB5dMDHFCfUCbYsuNooSHxg4/ooUe0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713265283; c=relaxed/simple; bh=rucFRDUwhz9mjFWRhohQGSaM+EbpELVZQbhGdj40ILk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ubSRILRC6Zhw7huEqGeWcpmQMvAcCTdadpEJcKVGK4boWTvxOPUWBlvS3d7XYL0YgxXcHTpv8c4Gv9fpHcDIn57V9NEB19sTBE+eHZr/fUwN3+uO7hoG4gbIhXAQTgcsvcDi+rLyVIgAYSRRzPoO7lxhFA8Y6wX4HFyCFamOZTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UxyZdEl7; arc=none smtp.client-ip=209.85.208.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2dae975d0dcso3122981fa.1; Tue, 16 Apr 2024 04:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713265280; x=1713870080; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=Ytr2gjGDi6MOUgYACZdiW0scYQdKsmNLgN4Zn17oOZo=; b=UxyZdEl7NDzGwciKNIenIAq/MWhrZHmVWyiL0lxtfHXuGuu8yU0GseWT5wzlcCz2Kc kQk4TGiPuP+0iU6MVizggTMQKep4FtuDN1qAl3e0H4QPGdmmuyv3r0yh9XUhUOUKK/BT Jq1hfbfUHNbBh6/6t0r/KEI1VO4zUC8SSl1z92jFOtSCXY7BbEWIPmmGVGNXp3A8//rf /05IVq5UGKw7uDlPfXesQkutpOgSPBZ1SxqC7x7b8xnHA5Rn3j9+kJKNU5Rtnv9ZTeao Z4zCOEyQPdgMhTXt5zFhqkgbL+aSXq+y34w+HbGLY4FaeaXtPdXA5m81a8Z7nuXhtU3d gkQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713265280; x=1713870080; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ytr2gjGDi6MOUgYACZdiW0scYQdKsmNLgN4Zn17oOZo=; b=oBwbczk/mZabC3J7xsb2EwPP3mVfoh2gdbJ6V6DuW9G/6zalHPhYPG/sM+233gq9H5 n7B2RI82Hwq38/hKMaKBKF5L3bD0OuYV7TybUu6zwFbUJSVApyLilN3wnuPdnc1ZWj9x Sk7iFYQ29DZSm3X3dolY0utM33by0pk7blWq5P8ZY1RejfGX9LRcAJgfXPgLnI1TLQSF Yn/TU1t2UQT+3L1vTvgdmIIbOx2g4fqo4Ke/KIBR4n6IS6HDfnmNPVJRfb1q/9q9okTh HSK/1l9UshID5oQxIMtgExmOjRKxl9PAqDYnMxQ3ngTPpNbguQVMDen8EEBI1Y9oUryj I+nw== X-Forwarded-Encrypted: i=1; AJvYcCWy0Hnq8yWfawHfRbc9qyvBK7h35xoiNG9rk307KMA73FEpVc/ey6HMHtwEhnZArP18tTiz3STJuV2rRpr+w4YqrTPjSYPb4gQGEeJazoPWOpghZm4ijGQv3ApC/kKjC/mtYwZX X-Gm-Message-State: AOJu0YzTxC3BwwaRvXucYmXo43QqM9HN5OSEfT5bAJTrCrhhIGi/LY+a 8OJu7+hi3gN6M4uzJujsyYmGwc46YYsOtO6OR98S7gZBuiYyW+4P X-Received: by 2002:a2e:7406:0:b0:2d9:f301:9771 with SMTP id p6-20020a2e7406000000b002d9f3019771mr654146ljc.5.1713265280208; Tue, 16 Apr 2024 04:01:20 -0700 (PDT) Received: from mobilestation ([213.79.110.82]) by smtp.gmail.com with ESMTPSA id e8-20020a2e8ec8000000b002d860a40f9dsm1535007ljl.136.2024.04.16.04.01.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 04:01:19 -0700 (PDT) Date: Tue, 16 Apr 2024 14:01:17 +0300 From: Serge Semin To: Paolo Abeni Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Russell King , Yanteng Si , Maxime Coquelin , Simon Horman , Huacai Chen , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 4/4] net: stmmac: Move MAC caps init to phylink MAC caps getter Message-ID: References: <20240412180340.7965-1-fancer.lancer@gmail.com> <20240412180340.7965-5-fancer.lancer@gmail.com> <9644a96d17152014c8e7f91e9786dde26f67d7a5.camel@redhat.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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <9644a96d17152014c8e7f91e9786dde26f67d7a5.camel@redhat.com> On Tue, Apr 16, 2024 at 12:27:29PM +0200, Paolo Abeni wrote: > On Fri, 2024-04-12 at 21:03 +0300, Serge Semin wrote: > > After a set of fixes the stmmac_phy_setup() and stmmac_reinit_queues() > > method have turned to having some duplicated code. Let's get rid from the > > duplication by moving the MAC-capabilities initialization to the PHYLINK > > MAC-capabilities getter. The getter is called during each network device > > interface open/close cycle. So the MAC-capabilities will be initialized in > > normal device functioning and in case of the Tx/Rx queues > > re-initialization as the original code semantics implies. > > > > Signed-off-by: Serge Semin > > This is a net-next follow-up for the previous 3 patches > targeting?'net', right? Right. The last patch in the series is a cleanup patch which gets rid from the duplicated code by moving it to the PHYLINK MAC-capability getter. > > If so, you should have posted this one separately after the other would > have been merged back into net-next. I thought about that initially. But since this patch content is connected with the rest of patches and the maintainers/reviewers may ask to do things differently than it's provided in the initial patches, I decided to submit the entire series as is but indicating that the last patch is intended for 'net-next'. > > We can apply the first 3 to 'net', but you will have to repost 4/4 > after ~Thu. Agreed. I'll repost 4/4 after the initial 3 patches get to be merged in. Thanks -Serge(y) > > Thanks, > > Paolo >