Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7265682rdb; Wed, 3 Jan 2024 09:45:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtGC+34v99Lg2zvc//KcVc1BGZPJDpsL4f5YdzSIf3dyS8jdgfN3lOQPoNQzex54IrzrQV X-Received: by 2002:a50:8e17:0:b0:553:45c8:b1dd with SMTP id 23-20020a508e17000000b0055345c8b1ddmr10270062edw.43.1704303944044; Wed, 03 Jan 2024 09:45:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704303944; cv=none; d=google.com; s=arc-20160816; b=TylztsjlOLkKtLF6VyFVkdIXE8EXbS/zNLaJFz6rinpc+AtzzjiVv/3Z3c1a2cr5YS zkOU2C4L+m5SS1uxAgllI35wd+D6P4wS1dwE4SYEFgWxspogfXzZCjMVZWvLO1z4exYm Q04tD6RHG4yVIVREOquhlw/7C3yIGm/85eaiGMKRw5qYOGFbfMrfwJjexdH8gKmnQ676 sffgGYeW4fYlej+KastnKUnujFgjntIJwNfcvswYg/NG/pUHQ2WGGF6z9BTtTBKw/I3S EPz81u1dyFjcvjLIiWMI5YL89yzDY9KyIGlvPT6wY8nZ+Q8rbjzRiz1Ppu9EWmD9BGE3 wV5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=cs8g0KhAOJTfgaQgA8pB+LP2E2avXgkG+OV/pjDzLaE=; fh=WzNAVpBQSAgRX1EqfkIgL2A2UIHdM5OcK/SRRw52y9Q=; b=vIViSXYbiJH+VB/Bhf7r/Udx2WWCAIGXkYZvcVrDEKLnRNZoz6Vdo6dnz5o44yN6I3 wVsOOUDxZEACoXo+gUhtCCyiNuYXBiHY9v4VaFWeeok4DX4cgzfXfNbqqt1ToiHgKo88 eCuIv+wRUxfMJFjoABLtCrC34QsQHeoyB8aLqjJJJfihfjusyL9jww5RtdiJ8U4tdwta l2BCyVtwtrnQAtvY6wA80tdnYh0gmWfRycMLzOkkoPo1sYzjn0wUXnkbmAhspma+gDac TrdB85bi89ORTd8vyJpcrv3DD9s2Dx7z48H+c47RS767Zu7fJRDx3EaL4p79EZvKn/If lb6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Veires6m; spf=pass (google.com: domain of linux-kernel+bounces-15815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bd14-20020a056402206e00b00555a8172c70si5361286edb.364.2024.01.03.09.45.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 09:45:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15815-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=@bootlin.com header.s=gm1 header.b=Veires6m; spf=pass (google.com: domain of linux-kernel+bounces-15815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15815-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C66EE1F2428E for ; Wed, 3 Jan 2024 17:45:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 398CB1C2AF; Wed, 3 Jan 2024 17:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Veires6m" X-Original-To: linux-kernel@vger.kernel.org Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 7FD841CA82; Wed, 3 Jan 2024 17:45:14 +0000 (UTC) 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 56C29240005; Wed, 3 Jan 2024 17:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1704303906; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cs8g0KhAOJTfgaQgA8pB+LP2E2avXgkG+OV/pjDzLaE=; b=Veires6mA8qVJybyozb4tqAFhj632S+ab3KXk7HxxGI9kA0HcSZwNRQeznIVcH7lC/RUj8 S3d2kl+IsJMw9EFA1kgKLwWgDtlbdKAqBCCBCdzV00V3CGuUej0cZ0awnvoYu3yOh91W+k 9M5GLLfk2Zo2KO0UP8I+wwV+lVYnnGdJjRQ49aMKIHIosn93STnefnlQfRA+CQtSXaGn+3 NxPbpzQVlef9KBUClTVID4YiZL88f3eqPyoOh9DzeCWTDhSvDaz3s9LRn52B6nUKoeVlwx vIA+KHaC3FyGopwvR4ayIFzmEagbfKym2TpjaTkAGICVPBLtCbYNmoIgiLCnMQ== Date: Wed, 3 Jan 2024 18:45:01 +0100 From: Maxime Chevallier To: "Russell King (Oracle)" Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman Subject: Re: [PATCH net-next v5 02/13] net: sfp: pass the phy_device when disconnecting an sfp module's PHY Message-ID: <20240103184501.00be82c2@device-28.home> In-Reply-To: References: <20231221180047.1924733-1-maxime.chevallier@bootlin.com> <20231221180047.1924733-3-maxime.chevallier@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.39; x86_64-redhat-linux-gnu) 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-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hi Russell, On Wed, 3 Jan 2024 15:20:25 +0000 "Russell King (Oracle)" wrote: > On Thu, Dec 21, 2023 at 07:00:35PM +0100, Maxime Chevallier wrote: > > Pass the phy_device as a parameter to the sfp upstream .disconnect_phy > > operation. This is preparatory work to help track phy devices across > > a net_device's link. > > > > Signed-off-by: Maxime Chevallier > > --- > > V5: No changes > > V4: No changes > > V3: No changes > > > > drivers/net/phy/phy_device.c | 8 ++++++++ > > drivers/net/phy/phylink.c | 3 ++- > > drivers/net/phy/sfp-bus.c | 4 ++-- > > include/linux/sfp.h | 2 +- > > 4 files changed, 13 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c > > index d7c0812bd107..aad78e3f7894 100644 > > --- a/drivers/net/phy/phy_device.c > > +++ b/drivers/net/phy/phy_device.c > > @@ -266,6 +266,14 @@ static void phy_mdio_device_remove(struct mdio_device *mdiodev) > > > > static struct phy_driver genphy_driver; > > > > +static struct phy_link_topology *phy_get_link_topology(struct phy_device *phydev) > > +{ > > + if (phydev->attached_dev) > > + return &phydev->attached_dev->link_topo; > > + > > + return NULL; > > +} > > + > > static LIST_HEAD(phy_fixup_list); > > static DEFINE_MUTEX(phy_fixup_lock); > > > > This should be in a different patch, it seems unrelated to the remainder > of this patch, and as it's static and no other changes to this file, > this would cause a build warning. Arg looks like I squashed that bit here to the wrong commit while rebasing, it should have been part of commit 03/13 indeed... Sorry for the hiccup. Maxime