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 A63C0C47077 for ; Wed, 3 Jan 2024 17:45:42 +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:MIME-Version:References:In-Reply-To: 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=m7I/nhrb2sM671SfZ1wKqYWLtlhvLkBSNeEtMlPqepE=; b=DFluCxMKvDz+Ha IrsklRfU3d12KuTjno5a+ZYMIQzG7Hlzl9nTHKSoCcWiQXdHzRk7QpGAHx324xpjri3S8M1dMQRZR 4nHQpxJY0DjkWz6Iq84kYRIksf76+lS2CcGHe67B7WPJYb5mcKOP3XCBU475pccmAmUXWCqlnHre5 qLeyBRQGU1SJ6U18LKKCqpVuCf//0/l0HtHixqPkIIfgBIe+8YWEuea8k0xnzv3QMQrf5XF+pakAf Xn+6nzYPYna+dzqlMwzbT/rbI1y8bPQBkNbZUxA1PtN5McZOBZSWzdvdBNvAMIox3VlGTlSUS0UKw Ino/c3uJikdh9c5id2UQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rL5Io-00BZe9-0y; Wed, 03 Jan 2024 17:45:14 +0000 Received: from relay1-d.mail.gandi.net ([217.70.183.193]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rL5Ik-00BZcF-1F for linux-arm-kernel@lists.infradead.org; Wed, 03 Jan 2024 17:45:12 +0000 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) MIME-Version: 1.0 X-GND-Sasl: maxime.chevallier@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240103_094510_844881_E2ED698C X-CRM114-Status: GOOD ( 21.56 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel