Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4725601rwb; Tue, 8 Aug 2023 12:49:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHp144wcwEBvt1EE8yw5OWIyO1vu1UCQm9V4fyACOYeaovGGYPqyHWC9gPKtdQCkkCUdjLH X-Received: by 2002:a17:907:780d:b0:992:9a5e:3172 with SMTP id la13-20020a170907780d00b009929a5e3172mr510111ejc.59.1691524163232; Tue, 08 Aug 2023 12:49:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524163; cv=none; d=google.com; s=arc-20160816; b=WH7kBMDmk6BWGcWOYKn5y3XQQtnMXA3g4OLx5Py7+iuW4W+tZutx2KkMtPWJdFhND4 PqzlLSPTJFq3wHW6xUjU/ougxJxiIpNHQsmTjDoeSXtI8kKUYtjX2NVY7A9xYiNV0ocf JC1ao0103zsV11X1djyGhVpQpS0WsZahPzb35afQeOT6p/kxIIiywTBsh683poniEKpC piUkbgE2gmcz6fHywddC3wIMNRtgyBkZGwWOVc2GGAKMzDUAm5pu9vqbrWuiRheDWUwI mFfdoedP0X0lLRmTCq7klnrSxJW1SObAG6Z576NxE8lrXaHH6GuDtFqvqx7O6LLgA410 2WNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=r10h6nVMk04j6nRxoY62Y1rHsX1nNYozakCPbJXDblk=; fh=y7IJB/L9acuG+8IjvpD1OpRZVcPCxvYnJIQz0gn+Kzs=; b=1JDHf5dykM0flFGM4Zin0gtbLlyOp6f8NBNKHlT511ioI5vwoEU+5QpjZkHwTmYl4u 7MDDlABVh40URKtUR6j2QaacZbYQlrfrbvcF8RxjPFiTfKTCsrIUu89pq4M+++/Fr/UN zcHDrxTihYjbksQY2TsSzINpM3LJDOQE8F0+7+6OalWJZNj2vzDVcBjTeM497AB8Xo1Q yo9nFq6SOMlsd80FcB6an2SEuagH/NqBismB4TXuJAZMIB1TXYOpkCnTz8kOKQy3wGAv 2KgUvF6Wg7SvHpbzE5qP8ugH6vAkmTTAkM5N0HPcligMjF8XXLWEXV1++mZ0lLz/a22a KV/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=G0AnBQDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s22-20020a170906355600b00992b54ad681si7988938eja.773.2023.08.08.12.48.59; Tue, 08 Aug 2023 12:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=G0AnBQDN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234477AbjHHT0P (ORCPT + 99 others); Tue, 8 Aug 2023 15:26:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234230AbjHHTZz (ORCPT ); Tue, 8 Aug 2023 15:25:55 -0400 Received: from pandora.armlinux.org.uk (unknown [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 837D180B0; Tue, 8 Aug 2023 11:50:45 -0700 (PDT) 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=r10h6nVMk04j6nRxoY62Y1rHsX1nNYozakCPbJXDblk=; b=G0AnBQDNcml/ZR//sKTnjynE4r 80iRL3AcMWA776SfbTIHkbVQK9yPk08vd1NrwK8Ldc+zL8AdcbA87tN2wNNu8HSiAdL7x+w0Xb2rI 4Bu+QljQkFUgQQuKBwvVGQy7OljI5Fwy7qMhFCiev8lJ8yrHkMJ+64VA8SYIQSzQDm80tgCyli72X fGpsOaMoUUM61OdT4sIWsEtyqnKHyS9qBg2DlDD/rb/7AO2POmVMtMAWv2OJc4NseezFPDWFSwybl 0IM1vqtSyHBh9OAiaKgjzBL7iKLwQAhhMlzyVP0j3J8jlbtWev83mp4aaZEV1ZxuH8S6KN+pWdOuw M5PrwVUA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:36762) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qTOc1-0000HF-2P; Tue, 08 Aug 2023 16:27:09 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qTObz-0008Dn-JR; Tue, 08 Aug 2023 16:27:07 +0100 Date: Tue, 8 Aug 2023 16:27:07 +0100 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Andrew Halaney , Bartosz Golaszewski , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Alex Elder , Srini Kandagatla , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: Re: [PATCH 0/2] net: stmmac: allow sharing MDIO lines Message-ID: References: <20230807193102.6374-1-brgl@bgdev.pl> <54421791-75fa-4ed3-8432-e21184556cde@lunn.ch> <65b53003-23cf-40fa-b9d7-f0dbb45a4cb2@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 08, 2023 at 05:15:45PM +0200, Andrew Lunn wrote: > > > > > Good point, but it's worse than that: when MAC0 is unbound, it will > > > > > unregister the MDIO bus and destroy all PHY devices. These are not > > > > > refcounted so they will literally go from under MAC1. Not sure how > > > > > this can be dealt with? > > > > > > > > unbinding is not a normal operation. So i would just live with it, and > > > > if root decides to shoot herself in the foot, that is her choice. > > > > > > > > > > I disagree. Unbinding is very much a normal operation. > > What do you use it for? > > I don't think i've ever manually done it. Maybe as part of a script to > unbind the FTDI driver from an FTDI device in order to use user space > tools to program the EEPROM? But that is about it. > > I actually expect many unbind operations are broken because it is very > rarely used. rmmod! Particularly useful during driver development, I tend to use it extensively - and it has the advantage of testing those unbind paths! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!