Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp542952lqd; Wed, 24 Apr 2024 09:34:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVa4siVNvyvcsR1SghWNd67xLI+AC5fVxvUN2LkixW2sWsZQX9EyHyJ54MryTP0HfyHjmLIhXyisU6MP6rLR2L2r3XnmyhUwJoBTiUJdA== X-Google-Smtp-Source: AGHT+IFjqyvUfBqp9DXzCW+WVJ5Tpl6RCwSQwjR8PweKvo9RBH7KnoLsDX8kFMMHkdqrjwTXUsN6 X-Received: by 2002:a17:902:b702:b0:1e0:a1f4:95f with SMTP id d2-20020a170902b70200b001e0a1f4095fmr3276392pls.14.1713976480148; Wed, 24 Apr 2024 09:34:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713976480; cv=pass; d=google.com; s=arc-20160816; b=bJEkcr8NBFq/ZSSp1xHyjtgmgVA9pEX79s3gpBv4oFLqPoQsDapc9Lr2wWAnMeOHya w2GSnYyODv4kM2vc9CO0W1ZIHKXr/4IGkfmjwRQD4bpqLlc0052AhO+CgdzIvvPOV4jQ BPVk8gBKTzVOUcEjnXHoYzBFTiwcdwWwR3YaEWmqMxJFonf6Q2Zd2uwbcyxp8CmO7nNH Zix3uYIrwGp8uU0eVcll3gPe3E0tY4AOzxEKEkDDO5rR8VqNhKd7jACYWyhowsboiCaA b5LLewQhveRgL0628LSdKF9Z8TCpFsvDZ0GLYCYTQx5AFltYkhUrm0Kt7SuDeg51PIm/ 9kxA== 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=nVfX6CunHv0QJSiX7CwyfL7fs8TD4zil05zPYCaSh6k=; fh=zDr1zfLW7dANddorYgAlpoOPvLTnUUY2fk05D+Deilo=; b=Po9zmpHmgHY1DgW3myS02ceeFREBo2epjs+rrA59r6AwkmA+9EXgXiRHvNgb8kZ+h2 YZeyoYqwMixpuIP0GIQjcQfY8i2EuSS9eU+i7T79dTeK8FnTFZ8Qq5WTmzFXshe+3FNB LLKumoIurjTkqhd7zglSnhE/k2a6qdqWd/o0EBYyMJQYQtdavc4br1vIGWMteWlbzGU/ ywq03E3XGk0uyVYdv8hoUcqJAC+MHUzZhJC1BhaRDKw456liHdQhu/v8VAtJUydMN5R2 8Sir2AVZ/XmiO00lDpdm0H9iHYUXrzlsh+pCLX57G5rslddOPi5TeI28CYDRPDI7yIAn Setg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=iMVDtcco; 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-157328-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157328-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 n6-20020a170902f60600b001defa2d6abasi12140082plg.71.2024.04.24.09.34.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 09:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157328-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=iMVDtcco; 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-157328-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157328-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 E61F32870C9 for ; Wed, 24 Apr 2024 16:33:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AD3716C69A; Wed, 24 Apr 2024 16:33:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="iMVDtcco" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (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 8136053372; Wed, 24 Apr 2024 16:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976386; cv=none; b=YciiiTGC5VbH3DQACoiHGkqunTkyU/1ZRs1AIU0Sm9wtwMuX0ChulWm8eVMwd7QkE6Is1kzvB/L5la7VDUUcMGQwo0/9uXbeXTOrmdMsBc+DzLbqdL8u4x5ah1CFTtmQCA2wT8NWxTlvy+hFGz7F+jIJleTdaGVtx9mdg5jL6Fc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713976386; c=relaxed/simple; bh=z3eF70FQlQ72XvDhpe9rqk8ScoUbO1zXys/ZqDSFff8=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=EsJFQDEcLhk0fHrYPYoe9EZiu11tL3ubDWunuN5Qa6QFR1xiKcBtHySOjFoGkuJut66dO+8vITb5V1GVICyLDDkV8LBVck39x+gNMHctX5N2kRXPQywMHJ0ItymxUDczOO14h+SbClZ4jzogUPc6iDMNhNGJUpjykDx4lfdOJWQ= 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=iMVDtcco; arc=none smtp.client-ip=217.70.183.198 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 21B53C000F; Wed, 24 Apr 2024 16:32:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713976375; 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=nVfX6CunHv0QJSiX7CwyfL7fs8TD4zil05zPYCaSh6k=; b=iMVDtccoEjyJoeXjQJLTyW/F8IkBaa/rp9MWSak72TbmK3OD5QfxAjn1in6WE98ZtBUyR5 3P30Xa4NYEDOJWfQc45QcD3YdXvSv1WDXSusY+dtDC2jdM6pibXjIRocRI5egVRjFP2OOy ee13xRwe4nIhFtLSEg+D4hnIG/x9FNg9Y/zCSi8RjeyuNd8Oq5T4u1mYLqcrrN3fg2y5tg Mt8UhDahzyzg/3U7hicTJd9RbTxtnMHLCFR+RR6ZXQS+6gwZsApMHLOAIPN2expFnKgqOX Zi3tqaEjw8QcWzUf0o8XEAtexPfEvmQSk/JdjNpfLv+x9+AZ58jWDqhqAICBGQ== Date: Wed, 24 Apr 2024 18:33:30 +0200 (CEST) From: Romain Gantois To: Serge Semin cc: Romain Gantois , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Russell King , =?ISO-8859-15?Q?Cl=E9ment_L=E9ger?= , Thomas Petazzoni , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, "Russell King (Oracle)" , Maxime Chevallier Subject: Re: [PATCH net-next v4 2/5] net: stmmac: introduce pcs_init/pcs_exit stmmac operations In-Reply-To: Message-ID: <27279f1a-e718-a8cf-ecfc-40f45bf6c500@bootlin.com> References: <20240424-rzn1-gmac1-v4-0-852a5f2ce0c0@bootlin.com> <20240424-rzn1-gmac1-v4-2-852a5f2ce0c0@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 Hi Serge, On Wed, 24 Apr 2024, Serge Semin wrote: > Once again. There is a ready-to-use stmmac_xpcs_setup() method. Which > is currently intended for the XPCS setups. Let's collect all the > PCS-related stuff in a single place there. That will make code cleaner > and easier to read. This was discussed on v3: > > https://lore.kernel.org/netdev/42chuecdt7dpgm6fcrtt2crifvv5hflmtnmdrw5fvk3r7pwjgu@hlcv56dbeosf/ > > You agreed to do that, but just ignored in result. I'll repeat what I > said in v3: Yeah sorry I took a quick look at your merged patches and thought that stmmac_xpcs_setup() had been repurposed in the meantime, but it seems like I was just confused about that. > It doesn't look as that much hard thing to do, but will cause having a > better readable code by providing a single coherent function for all > PCS'es. Sure, I'll get to it in v5. Thanks, -- Romain Gantois, Bootlin Embedded Linux and Kernel engineering https://bootlin.com