Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp810981pxb; Thu, 2 Sep 2021 16:04:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+wB/cJks/9p4+5rRY/l8V8EnT9lf7Xrxf2n9cdX2DvbjjkBikNLNhZadHQQ/nv4xUU3D5 X-Received: by 2002:a05:6402:198:: with SMTP id r24mr731103edv.93.1630623895893; Thu, 02 Sep 2021 16:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630623895; cv=none; d=google.com; s=arc-20160816; b=xHqo6dJRcw5d/fx9kolmiqesOykgvAHteRPhsCwAudPhuIh8H7FfsZ5aaokeX7aYEk yjdFwHW1kfalbMWobO2k9ZjmDUJbD37DnqbYnw2E3+AvRwNJ0L+pMrBgME8j4EaKCFAD s78QmNTd/TxLjh1xoh/Pg7HLIv078DMykDS2mUYJD0I/AoBs7LhhPLDGuvd1vVF7Ql4/ +CHUdTYXjjKHk7QJcQdsIQjA41Nd2wnPWIKIVdezHMa89SddEBe+MPvPLBydNMG9qplw csutss0dTg7kCIjdAoWYYZ79F7CyL5Kecb+3KydkdBpKgot33/bCV+42RmKOXC0M95ge H/7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OYFToequarzac4GcuUzxdyCTeg1E65wYgDUFdHDP4Uo=; b=mjCqSLvpSCgW16t7FCjg3D4eyIS2HzjJ0kfevpvXqCH+Lt/+eXzmwS+7zOJNJ5U1ib YtYvc77vVzOOMOedIpS3C0l5Liij3VzRcBO18YjO9DY2mayp6O958RkppeUKZgX53bw5 Bu6Ew2kzGvNVcld9zUx+S4OSVmbRgG0fN0YkjQlVO1+IJ9yRSPFIewH4fXY9wW+rNaUM rc0ISqq4gq+jklpvAdqrSdJWD+3bGNzBkfxZHqFrlhNVU7u5mI1HccxgW8ibdU9yyvhD FHbcQ3tFU2z9w2EtAcE5eeDC8cT7bVkhbp7fmYC/vCxctCjYUDYVBVpovBM+ZF/C3hPL wyFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Brb8sRzn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si3400997ejl.88.2021.09.02.16.04.32; Thu, 02 Sep 2021 16:04:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Brb8sRzn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347912AbhIBXDS (ORCPT + 99 others); Thu, 2 Sep 2021 19:03:18 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:54282 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347855AbhIBXDR (ORCPT ); Thu, 2 Sep 2021 19:03:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=OYFToequarzac4GcuUzxdyCTeg1E65wYgDUFdHDP4Uo=; b=Brb8sRznxEqSdqZBTUb1/AgPss Cdfiz/moRjSVVbhoYXQ+U2mDxo4gRpMKwWEbPLPVFixvmZb4lPd73Oh1rV+zTueyJkT6cdOrL9yJ4 wpit+vQ4qgFAwE0tZ3yXnbs2xWA/5s1pqO88QV8cFVyWJpiztsq1vTIf7klgpy3dkd0k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mLvig-0053pN-8j; Fri, 03 Sep 2021 01:02:06 +0200 Date: Fri, 3 Sep 2021 01:02:06 +0200 From: Andrew Lunn To: Vladimir Oltean Cc: "Russell King (Oracle)" , Florian Fainelli , Vladimir Oltean , netdev@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Vivien Didelot , linux-kernel@vger.kernel.org, Linus Walleij , Alvin =?utf-8?Q?=C5=A0ipraga?= , ACPI Devel Maling List , kernel-team , Len Brown Subject: Re: [RFC PATCH net-next 1/3] net: phy: don't bind genphy in phy_attach_direct if the specific driver defers probe Message-ID: References: <20210901225053.1205571-1-vladimir.oltean@nxp.com> <20210901225053.1205571-2-vladimir.oltean@nxp.com> <20210902185016.GL22278@shell.armlinux.org.uk> <20210902213303.GO22278@shell.armlinux.org.uk> <20210902213949.r3q5764wykqgjm4z@skbuf> <20210902222439.GQ22278@shell.armlinux.org.uk> <20210902224506.5h7bnybjbljs5uxz@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210902224506.5h7bnybjbljs5uxz@skbuf> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Note that phylink_destroy() is documented as: > > > > * Note: the rtnl lock must not be held when calling this function. > > ... > > Any other issues besides needing to take rtnl_mutex top-level when > calling phylink_destroy? We should try to keep phylink_create and phylink_destroy symmetrical: /** * phylink_create() - create a phylink instance * @config: a pointer to the target &struct phylink_config * @fwnode: a pointer to a &struct fwnode_handle describing the network * interface * @iface: the desired link mode defined by &typedef phy_interface_t * @mac_ops: a pointer to a &struct phylink_mac_ops for the MAC. * * Create a new phylink instance, and parse the link parameters found in @np. * This will parse in-band modes, fixed-link or SFP configuration. * * Note: the rtnl lock must not be held when calling this function. Having different locking requirements will catch people out. Interestingly, there is no ASSERT_NO_RTNL(). Maybe we should add such a macro. Andrew