Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1905493lqp; Tue, 16 Apr 2024 00:56:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhAMlXGZB4rvr5yA5td+b6YM9f/NIoSFvRDzPw049f8uG4ZxeoYat+05rnnOAe1OvS4QVgTNntx08Md/rF5r8kYpbx9ZmWU4abDBsacg== X-Google-Smtp-Source: AGHT+IGGN53e4OdcaOr4BsEKjEMRZls5vW9tWVC5d0VcjwEZLcWQQbfdVL39sCdtkC0VW10dqxp2 X-Received: by 2002:a05:6870:4728:b0:22e:72ff:acd4 with SMTP id b40-20020a056870472800b0022e72ffacd4mr15362431oaq.8.1713254182439; Tue, 16 Apr 2024 00:56:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713254182; cv=pass; d=google.com; s=arc-20160816; b=TgxPFpQe8SDV88FW8mtsixDlOCY4YXUU/jk3lHnwUC5Tp9c6OXaQ712spIztVfIJht 7zYRz5KHIH1E7zf15XKng2WddFffrEgnkmK1K+GyT2TYsfMdsKHQL9+Sj8XwENHrmeb/ Yw7DxCTpjsOGPxWPdZASIe2OXzf7i83NQfLPPlshpZKSoTQu888KOy6N1PK04YNkEByC WJ/+FAhUwbOYBFvhIvNZYamKqX3Km9l+KlL/jLKnzdLG70hIqoQaN/A25Bvo/UdvjPaa ydeCQh0cX+oIeWTRSC3KS7M3GKrYvl8KpNQzQ9yltKFkMc0fZVfHRILyZDwIgoR3YKtM gMhQ== 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=MNHJECVaeH5Bqcxn+tWmMLACctSfkhVXpwFzee2HMAk=; fh=VccVcqz9+USf4hsF+jJesCpN/jr+sLPSJ/Xd64hN9Bw=; b=shzM2ztCvpLMc8Y2WOSJnAEzSuUZaD2EPeAacyIgWPRB8MeBFzhte56arzbYR17zVq zC0NrkPU/ykQa0nl6G6T3r3SoFHFESAOlp39r5KDOZ26hoTLk80tEhkS1opKO+gROfxd MVB5CGhy+Xd8SK8UYEAV340WAgFc+XqEtbIZzfcldzryq0vmfipIrKZoN6aXVDeyrznx rurKqDOtOeOkik09mQHwxZDbILjS+KZ4chcPqv+Rs1mSIEW5D4QalYvVuKSns+jfeifo p9XzgXPmVF80lSuFMozzSYuMW81ZYN95g42QBbdyziXBAlEW2d+TuKcUuROGtq0hIXv8 7UcQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LtugVChy; 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-146453-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s184-20020a635ec1000000b005f3e0556e31si9615089pgb.863.2024.04.16.00.56.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 00:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146453-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=LtugVChy; 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-146453-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146453-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 191D4284996 for ; Tue, 16 Apr 2024 07:56:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7855127B77; Tue, 16 Apr 2024 07:56:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="LtugVChy" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 AD24184DFC; Tue, 16 Apr 2024 07:55:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713254160; cv=none; b=bApw1S4hDRpQefYqV/yPKrrcnMYO/eUEVZ4onME97n+2CbjuNQ7f7Z/v5e2nIy08244Z8wIGkXclAvVqynwW/PJtMXd2h6HMPNljesusjIFXpdtB9TCd4cjX50d5gQtxaDk66ivEP0ayGeboAaY9+Xs1v45F8VPf7d1NNarSiz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713254160; c=relaxed/simple; bh=FNHbQiBBP8Y9Z4UhDHB1kGtf1vaeV2YhdLHMFkJwVuo=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=SpZxrvs72TJ8ElumHN3AvMjJbEQfvAaSdomwcPY24DF2P2r079ipZRiZ9ZA3BivYqAswkfaPm/YWbM4UvU6NA7/nCLST8IWsTBlK511lx2HvKlm+r1SgCeBiUWilV37KiI9wENR2EOGcySMizCO/JT8rp4ze6IoOjJhooSeduI8= 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=LtugVChy; arc=none smtp.client-ip=217.70.183.199 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: by mail.gandi.net (Postfix) with ESMTPSA id 5B3FEFF802; Tue, 16 Apr 2024 07:55:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713254157; 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=MNHJECVaeH5Bqcxn+tWmMLACctSfkhVXpwFzee2HMAk=; b=LtugVChyoDxebpXTrApSPFU1i07DT8qK9YJEwMwn/0JmI6ndkLuG22gdGgU0V+VI9K923L CK6F7wKZ7kaniEyTR5uvoEug6BjcnL1a/xdRTo1RsS1ZyHpnWZ8z14QKM7oMhRF+mWiy92 vWxP33Z9hLCY2jjTfrGbZRZ5gTmEdY8bEl7vj1HjfNZ8dF685mQdeRCVSdB/IHcemRbh/s 3xvMTWwNHqrUJxfAw7f5LSxNhnI4n+aw+YjU/IwJxsHyFLkYUsvcULOiA2MmqKyVkTCXZj QblLIhQt69FkaNO52lwcj+uADa+0o9vJMWZ7Sx51X+/M7rkz+wjyn/uqUU4ozQ== Date: Tue, 16 Apr 2024 09:56:32 +0200 (CEST) From: Romain Gantois To: Serge Semin cc: 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: <20240412180340.7965-5-fancer.lancer@gmail.com> Message-ID: <714199e5-edf2-dcbb-216b-563431d70488@bootlin.com> References: <20240412180340.7965-1-fancer.lancer@gmail.com> <20240412180340.7965-5-fancer.lancer@gmail.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 Hi Serge, On Fri, 12 Apr 2024, Serge Semin wrote: > +static unsigned long stmmac_mac_get_caps(struct phylink_config *config, > + phy_interface_t interface) > +{ > + struct stmmac_priv *priv = netdev_priv(to_net_dev(config->dev)); > + > + /* Get the MAC-specific capabilities */ > + stmmac_mac_phylink_get_caps(priv); This is a bit of a nitpick, but the terminology is quite confusing between stmmac_mac_phylink_get_caps() and stmmac_mac_get_caps(). Ideally, we could just get rid of the whole stmmac_do_void_callback() complexity and just call phylink_get_caps() directly. In the meantime, maybe renaming this to stmmac_mac_core_get_caps() would be acceptable? Please let me know what you think. Thanks, -- Romain Gantois, Bootlin Embedded Linux and Kernel engineering https://bootlin.com