From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76A0DC3DA6E for ; Wed, 3 Jan 2024 15:21:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=TGfK7ijKt9tEcg66tSaMNlThw4XRPgazVVye4t9uc4w=; b=JfPd7zTRRQUF9e ElChlNLgbymko9pX7HAKt6kPb0Kzl91XTkjD5hh7jWJd9dF0i1s9DV7gBV0PFsM3hSw4HvaPG8xmQ YPPzaKnWiK06dkmG+k96u30+8O3jjhxt5H/0oNCCpkFd4kd+9TOpM9dUT/2X8X92UPLLZodiiCNKh L98rymBNGohJU8fNstCRd64vi7quRpefVlL1+fGgkyzxytqNSHH5rY5ZC0P5xYZ72YYdgkGyHF1X/ wxolFFqbKi6r1l/Xb4FRukTrjJ1dVkX3t44RD4JZ115tBxd5ut+rIlb2+5GuEcDwaeu9GK/sbml5y e4Bd+KogIMiRId2kpXcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rL32w-00BEwn-05; Wed, 03 Jan 2024 15:20:42 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rL32t-00BEvy-1D for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2024 15:20:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=m8sac+OI422yNvHd7yq1KwdsQdE6JGin4RzHy40w56s=; b=Kv0YNK7+rps9DdBGGO5WXeGDhB cS+HBcQYXuZCcEZ1ILAqsUv17vyuyM99oIggzYSP1WjPXt1stuAQHjPETsE2paOLu1LXXMr0Cod/F r9mSDrsW3O37Uf0mFwyPe2Y899uuLdsxMFXaRxPDeZ+mtcBTMzcIZ05BD0w/LNfcHkKI3shgm5I7A M6IM92vazLEVB/Q074wQfF5c3IAcH2mPMm7awXq11ZnAh+GlWkYui5NSCkXGivSRsNOZxAK0mAhl2 nEP+dDC/kbku4oHEmenNVHzTjsJN5QbiDglXWHenifScisk5FeGub4uowuKjxZo9JAwpHxRj8Jh1a 0JQEKCkQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:32952) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rL32f-0007dm-2k; Wed, 03 Jan 2024 15:20:25 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rL32f-0006U5-D9; Wed, 03 Jan 2024 15:20:25 +0000 Date: Wed, 3 Jan 2024 15:20:25 +0000 From: "Russell King (Oracle)" To: Maxime Chevallier 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 , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?iso-8859-1?Q?Beh=FAn?= , Piergiorgio Beruto , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= 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: References: <20231221180047.1924733-1-maxime.chevallier@bootlin.com> <20231221180047.1924733-3-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231221180047.1924733-3-maxime.chevallier@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240103_072039_418142_5A52A124 X-CRM114-Status: GOOD ( 18.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel