Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp2056672lqp; Tue, 16 Apr 2024 06:21:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVe4lDDbBLHkJQKjPtEwL3fgApeaF6cu3d0M1hVURFjR0MD8ruxVSO3zARpvxm2nvZWNlQ8+/oAjKq4s6JjQfKI65gJhZSNbu9uMMPKGw== X-Google-Smtp-Source: AGHT+IH3BdALtedgAmRyTJIvzUq3kRZvzVdRW8+SakzRtiBJkyTb3ubry4ttojLDlmkw39ExxyG4 X-Received: by 2002:a05:6214:4a5b:b0:69b:7f66:ea8d with SMTP id ph27-20020a0562144a5b00b0069b7f66ea8dmr4936252qvb.5.1713273682231; Tue, 16 Apr 2024 06:21:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713273682; cv=pass; d=google.com; s=arc-20160816; b=t4Y+r92KA6EdX6Sx8QnzznCmqyt+TRIT52GWgy/pq6+cJWcWCrJ2CBtgXRR5fKpuwf Hh9Pwgc0k8QiuJcYkKlid8rJJzcngPGHntJk9HYLJLaldV1laLv/as/CLjbLS2gfVQaC /WPRLsX1Z4gq+N5Ip8s1Oc2877FUQmIg/nJ2+9R7Y6E9vswOa6zU6gy89joos6yOJejA aDxEFJFht9qqMziWEasucZPDIw2SUhgNsl0Oxojhf32d81OZjHJrI6mE9r1asT57emuG oJ3S47fMWkvz/zaju0gyEPN4u9zJZVxmr5ho5Tj3aTN0RTMC/lsiglZNSOmhsHu9x9k1 75SQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=WCnKnoSsQoEAYv75BNn3l7B7yy2mGKGbl/sOd184mU0=; fh=nFQjTMkUzpYx0xFEzIlAXN8fMvEQ3+DKAawquu7MB8s=; b=FcPbeGIb2K0vy0reXwNCXj5/GqWJloU09HKi5QIV7LuyZBIsySMGHzi4vwU4pL5+CS kt3Bl4Eh+2CoFffTY5TxXaZ2YNQ3NzZm1QRZsXeCpQF55Lhc+ak2V9D12RcDMpEaSdUZ ECW8fERBJdW1fmjaOBmM7Hb93UE9GGq1gByG5ma7HJn+/7Gta34/D6C+C2A2lynwHOJl G+pgGtOS+SVA+74aW1vSVD7RFjkz6ZhRQArb+EO1Pxr0/HAZvq7vo1IHW7NmN5sMrrtb o48Eby2iEEpPYidE9rnluo5dy7OpEI4esuuau7o21STGwnCFPumeraehe721pxRHnQ5G Iorg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jprFcJrV; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-146865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fn14-20020ad45d6e000000b0069b60b6cf90si9788809qvb.529.2024.04.16.06.21.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 06:21:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=jprFcJrV; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-146865-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146865-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id BF0F01C21B85 for ; Tue, 16 Apr 2024 13:21:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 83E3E12C48A; Tue, 16 Apr 2024 13:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="jprFcJrV" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (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 A9BE912C466; Tue, 16 Apr 2024 13:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713273672; cv=none; b=fJpjmMBbtfMLnJfwQPq9SesjKsP7cITAzTavnkCHRZ7kFrCNptjHXBfkrL36eRUSo74fDr1Ytn5Yw3PfxcqxWfhhwGR2povoFRodoWz0UcwhbKL34lWwrnn3gOMqjUPmRwWbm8qrAKbAt0KUZlS5k80x3AmYEGE1TIpN/7VCOhU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713273672; c=relaxed/simple; bh=H9XJnECG+rehggPZBwMJ2UcoWV6pit0iZcc8APFEx6U=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=Gs2NZyAShD60MZjb3M9o5UIaKuyT6bwpaDegDMYHXpeGlGijaNWyX5oVLTvH/xSkR+i+uGAmgxv+V6i9LiThD/BBEJVBnyXV2rhNDTW/atbWbZAIjx881OojUl0rN/qYxq00xhXTAF/tBISIlJrJ6X9g01PtdYRdXIOTO1K82VM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=jprFcJrV; arc=none smtp.client-ip=217.70.178.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from relay4-d.mail.gandi.net (unknown [217.70.183.196]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 979BEC699F; Tue, 16 Apr 2024 13:21:03 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 1F9ABE0003; Tue, 16 Apr 2024 13:20:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713273656; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WCnKnoSsQoEAYv75BNn3l7B7yy2mGKGbl/sOd184mU0=; b=jprFcJrVd9rSnrTiyxix2blgTrCU/Qlp+tzngtuXlZLiieDwzkoOldUgEDp5yVLsbulKIZ CzSEXc5zzaQHSVsTI5W6AOCIkga+IsG1oFTjYI+JU7a3nor22PG5eIgHIbgpmXTpUzBalM mCn64ex2Hn2WUlBRAFWl2qzVao7CKHpEBs+ucgOXjh4GH4LmArUBjbOWczTwHYK7ShMHNl KmqTxXL6PM1QSO34cOPfhY+Nfw1c63wJjVcxyoZ6Vh/+Qj5UH4M+GBNyfiDllwmnsAfBBo Il45EZNbkMeX3HOTXI5P3oxAe/GyR4f2LJuUEWuXGSighZKeZw4vOiEL7rntOA== Date: Tue, 16 Apr 2024 15:21:30 +0200 (CEST) From: Romain Gantois To: Serge Semin cc: Romain Gantois , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , 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 In-Reply-To: Message-ID: <8ffb6634-6d57-8df8-90c3-aecc585395e5@bootlin.com> References: <20240412180340.7965-1-fancer.lancer@gmail.com> <20240412180340.7965-5-fancer.lancer@gmail.com> <714199e5-edf2-dcbb-216b-563431d70488@bootlin.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 X-GND-Sasl: romain.gantois@bootlin.com On Tue, 16 Apr 2024, Serge Semin wrote: > So I don't think that changing it to something different would be a > good alternative. What could be a better option is to rename the > stmmac_ops::phylink_get_caps() callback and > stmmac_mac_phylink_get_caps() macro-function to something like: > > stmmac_ops::link_update_caps() > stmmac_mac_link_update_caps() > > especially seeing the callback no longer sets the phylink MAC > capabilities directly. What do you think? This seems like a good solution to me. Thanks, -- Romain Gantois, Bootlin Embedded Linux and Kernel engineering https://bootlin.com