Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp984205lqd; Thu, 25 Apr 2024 02:36:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhSkvEH+ARFWUSCAG2bl1fgUp14+plR/aZr9ILF9Fj46kJ3nv23ynne8tIq3bHhiNoUMRwpKlMp1bwWwyEO5BKF/mp7PO1clWABYhPQA== X-Google-Smtp-Source: AGHT+IHV04A+90WyI8nMIOnud5pg4dux0Slw4OQb+09LN54kX4y2IKyQlf/ywGv3DpnqQxeZ4i2+ X-Received: by 2002:a17:906:2709:b0:a46:8daa:436f with SMTP id z9-20020a170906270900b00a468daa436fmr3037643ejc.69.1714037767574; Thu, 25 Apr 2024 02:36:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714037767; cv=pass; d=google.com; s=arc-20160816; b=bIcweJwnH/+U4YW5BDM24Zz5BS46lRWqM0YPcIjRfg1l5Wue/1ykp0PNrZs4DuopZ9 49SyvBFgwRd8c5akzY9yYBz9eQCo0uC9YEgb/W2ul0DvrA4K9/uWDhOlvvXeWnPY9zpN em7BbHAzj5PleN37B0DkdS0KftZFX51rT95b6dphyKvnU71LWlVagHEHJV67iu+Z+B5L uVJTJuPYK01xoif2Cz/0TdLjcYm9DDYCpsUUhZK9u61+1POuHqjSEMFSEU8kNvZn/PJA ZOhuflYOt6rK46UHm3cMRxNKJ0k7G5czKSdIpCgtXD98E/Iv6fI+rlMLoRflzJP7GDpO ym3Q== 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:dkim-signature; bh=vnD0omPzrWfWLdKhFymv2hUrXX8nXsK7L5p1vlVD4ng=; fh=HmqNJL4pR09Wen2k/69H8HoF8Ge3KH6IF5aSzMlwTrg=; b=ygNK92eF+W3NwCCdFuNeiv5hjHHrN4KfrH0KiiiUYZJEGLK6dh10Ax+rnr7PoZMe5p nA6UyodNaRIchaxS7Otsrwyizxgjdir27uIViNWdDeXDiTNyvirdpTumEVpZXT2PsuM+ cjfZTZ4WZ9mhjvRNxX67iU2oxzEVrm/0HXXT3ySGOstu64dbl/8DkrbAvX6ZoOaH0D5z JkJB0AfsUNb35LsZ/YXijERKWS0m92dA+lrBznM1XoXx1/fCpFI+CPuWxXLOkgSpD2ey sLXActycR2FCDcNARqgxt+TJuqDkgoFm6Z4APgy/9k1GErZs1YtKwWly7B+2/lmSW8+V ogDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ysu7+YgJ; 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-158308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158308-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. [147.75.80.249]) by mx.google.com with ESMTPS id b26-20020a170906d11a00b00a587844b440si3628296ejz.598.2024.04.25.02.36.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 02:36:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Ysu7+YgJ; 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-158308-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158308-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 E89D41F240E9 for ; Thu, 25 Apr 2024 09:36:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 500FD126F1D; Thu, 25 Apr 2024 09:34:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ysu7+YgJ" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 E6FF5126F06; Thu, 25 Apr 2024 09:34:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714037692; cv=none; b=KOspLiokMDzkFsIuvrBS63QUD3vdIseAmHoSqKzHV3s3kToYn4LcpYtcnZCN4hHfSSW4qGGxXJrTzHTd6G3y5Op5nsX3/HHMg/httsP6vk9rU3BWiaP/ilFEVncED6ofpx7/Nuf2W3zOiiJWns3duMBWbp773iApZMVrMY/izlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714037692; c=relaxed/simple; bh=O9wfJFdvuefwvtqzySphBgFrqWueWAbN+WGq++1wxKs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PJraLjgeO38MakcvBW0HRu8v3m+s5/78oVGNFtMXVophmGgNpwMroBkTfnuYOR75oxHlDluXOeAPS71pnNpFENa9oA+Q2hJjW6zR6KkNxzQYEXs2zUIRt3H34uj90OmNeXmE3SBl6IxGGvskvDWK7OIQyh5dpMCUWk45skm54/c= 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=Ysu7+YgJ; arc=none smtp.client-ip=209.85.167.48 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-lf1-f48.google.com with SMTP id 2adb3069b0e04-516ef30b16eso839775e87.3; Thu, 25 Apr 2024 02:34:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714037689; x=1714642489; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vnD0omPzrWfWLdKhFymv2hUrXX8nXsK7L5p1vlVD4ng=; b=Ysu7+YgJyheznGL9VA9kHXwMAOpGXa3zUkvNEH55VPpP6iV4kdR2ozMKoIE2Q8dpj2 BydR+9FQTj6k7+3Qfsf9Slz4Tlgv2XwX8X2sd+JMywMGlx16pzLnnraolmTkj+Jt7rLe 632SP9rK8u7XkqwVlc8oyjiczoqTrQt/9xxQzkn5S2c0zAuApHsSyChY7qjyLrOSGjEG r0LR7g7YI5JYxi6ImX2HkHGrg1YbeFi48UZlvhPVoTGAHTFmx2+UTCrsXWKat2G2uWAl VEi4ViFG86qKhjDO5PzgvX8LCqcsmUz1TgDQx1O6HOjcRwwU4kjxhRROepcq7X2sb29N ZDPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714037689; x=1714642489; h=in-reply-to: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=vnD0omPzrWfWLdKhFymv2hUrXX8nXsK7L5p1vlVD4ng=; b=mBNjehkGZ9wv8d+RzA3NVCnCOa4BCVzwbVZ5pF+SJ/cnpcaOqLASbMUwjx9iz3CH4A nEOt1/immuW0GPVlBPXxnoiJPiismrlfTW4aKVo7fx2/oZG0ZRif3bhVxRi0vUpSTsyB 1UFJObJTdPeG/NGobbXgRUz5UWVNdUTkfgvPXRQdp43QsdcjYWdZC95SQQI2/XTJuNpO KCefW8VATr6PGeshHAlmDu+cagqkJhrx5LFHkdEJ0A2yPuMFc2qCS473YYRlFr350+Zv dRjqsS8frtY/4P7z1IsAP+JegR/AjVBFIFfAI10nxpa2VZk4xfc515XDTA5n7lfBQJA6 n0RQ== X-Forwarded-Encrypted: i=1; AJvYcCXOi5kVMhIOi7w5b3UGozehaBMcHF0FnVUGYD2qh6ilL0JNRTevd5UaLVwJsjZy7e1WAKIQGPkv1SxtMyII2T0i7GSym72u+SHuvBhxkDEToao4Rul0liVQ4aOPHQDZps5sXC1vKEqJhOmkWRuiXhnZevE3QVMOEI5fnc2hnkGRPFdjphlszFxvDxVaBqbiPLd2PkOb3epbnTBjbrGt25o6/OqK X-Gm-Message-State: AOJu0YzIO0n3Lx5HW2aWKT2bRBIhXUl6b4koHbqaEjrsxzf+ATrlpNeA Yb/kEumS+CvFrVWCTCdQf7kSlD8+yuVWURE8Mii6GCUV1nErvOKT X-Received: by 2002:ac2:598f:0:b0:516:d0e3:9275 with SMTP id w15-20020ac2598f000000b00516d0e39275mr3345368lfn.11.1714037688538; Thu, 25 Apr 2024 02:34:48 -0700 (PDT) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id fc21-20020a056512139500b0051b0703a923sm1545727lfb.131.2024.04.25.02.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 02:34:48 -0700 (PDT) Date: Thu, 25 Apr 2024 12:34:45 +0300 From: Serge Semin To: Romain Gantois Cc: "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 , =?utf-8?B?Q2zDqW1lbnQgTMOpZ2Vy?= , 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 Message-ID: References: <20240424-rzn1-gmac1-v4-0-852a5f2ce0c0@bootlin.com> <20240424-rzn1-gmac1-v4-2-852a5f2ce0c0@bootlin.com> <27279f1a-e718-a8cf-ecfc-40f45bf6c500@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 Content-Disposition: inline In-Reply-To: <27279f1a-e718-a8cf-ecfc-40f45bf6c500@bootlin.com> On Wed, Apr 24, 2024 at 06:33:30PM +0200, Romain Gantois wrote: > 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. Awesome! Thanks. -Serge(y) > > Thanks, > > -- > Romain Gantois, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com