Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3455549ybt; Tue, 23 Jun 2020 02:45:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKW/H+u8hwzg6vPxb0Sptw9SjuY7S1weKsJlFq8o2/jEAy0R/MEQOrCWdbklhxJJD6hGf6 X-Received: by 2002:a17:906:c44c:: with SMTP id ck12mr1779471ejb.145.1592905516550; Tue, 23 Jun 2020 02:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592905516; cv=none; d=google.com; s=arc-20160816; b=XCJfVt+VXi+st/Jp8nDZFc2mnq3osRssmWI0RbgjDrxmJvrHiRv2bAk4fuvK0XMFR0 w7qCCV272HnbPV/X6gBTDMaidhERDcBICgPuZGi8EpGHwe6YU8ZVXN+vpE+6vJuj6Hda eR/sBz4qOqespGpPVHG0R4Ml4d2wT9KxhMZqX031rbyNSWZWd0x2DR6ZiC91MjW+VVph x+ETDA/cX3HmUmwwbi84kHYsOIBy0FSkbZujAIZRMxHLls/bF1otpIn3Y1dL/E8QUeWJ H+jmyu4tfK/pCWfm8NM5Z2mid0cvJUYuhjl0coffZuznNM99KOHOBh7Wf5H99LCkUiem RICg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XwLVMpP6cYtFVBzdSro7PxdncqYRVnLMVLk9It8eSnA=; b=SXoObj85gx3l7Oz7x0oo1mQn1baeUuL0c5F0EP5sZ7VYPD8N25GBobb0y1Kw9e5QR/ DGCq9DhQ6y3rd7fB6FJEd1nng+b22JdR/0KchrNB/gP+/tlDUG2W1NZpazEKPctHG6dW 7dPgi9ebEqY8B+F52LG3rexUSls4ZZaiczC0Nq3Iyvz4fgp05nJeXtAiCXFiQr6Wgiwd zlDRmfxhW8qYbebhu0nIR96IS/w9t/lNuO9L5Pz0fGNJSvL37OoR717J3XfdRIK22tXj /6zKj0KB+dB6aE0rzzdXugCuAbt5GMEofEoIiszmbTUMIX9ijdYiMoXKDhj3FAe/Qvk/ IVzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tf+1p30e; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si11515196edt.498.2020.06.23.02.44.53; Tue, 23 Jun 2020 02:45:16 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tf+1p30e; 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; 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 S1732163AbgFWJm7 (ORCPT + 99 others); Tue, 23 Jun 2020 05:42:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731935AbgFWJm6 (ORCPT ); Tue, 23 Jun 2020 05:42:58 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A799C061573; Tue, 23 Jun 2020 02:42:58 -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-Transfer-Encoding:Content-Type: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-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=XwLVMpP6cYtFVBzdSro7PxdncqYRVnLMVLk9It8eSnA=; b=tf+1p30e2HRfibZvcGIgWdm64 euHfgRqyIfJz7Z14X4KDLhvTmozwXi1YqbRvoVo5SQkM7ggoaV/Y99/dRdEZJaIHh1OnwrAB5srvi I+Z+7oavGotEH8SpPoeiEwilvM+NIuGKNEj9LXSqjUbxmSAMmwY36mKHP1OwNJv6N0MgpyjPjnLHK 7id5NOZoBZntIPhqMq/OB8L+PQXSRAfl0F7MQ7v62+dbKk/6t+O8J/TRocgljM3EdK3rF0C/MZ+Ba qESqMzjrtcNDj6/wB9iNZwTzSWmBf55iojTnVK+9yICH6SxlweILkm7rh3VkkSvgCobKe9Cr5ZrC9 nmscJw74Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:59010) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jnfSA-0001aO-Th; Tue, 23 Jun 2020 10:42:54 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jnfS8-0000vV-68; Tue, 23 Jun 2020 10:42:52 +0100 Date: Tue, 23 Jun 2020 10:42:52 +0100 From: Russell King - ARM Linux admin To: Bartosz Golaszewski Cc: Andrew Lunn , Alexandre Belloni , devicetree , Vladimir Oltean , Linux Kernel Mailing List , Fabien Parent , Iyappan Subramanian , Quan Nguyen , Frank Rowand , Florian Fainelli , Bartosz Golaszewski , Jakub Kicinski , Vivien Didelot , Tom Lendacky , Andrew Perepech , Stephane Le Provost , Keyur Chudgar , Jassi Brar , Claudiu Manoil , Mark Brown , "moderated list:ARM/Mediatek SoC..." , Matthias Brugger , Linux ARM , netdev , Ilias Apalodimas , Liam Girdwood , Rob Herring , Philipp Zabel , Pedro Tsai , "David S . Miller" , Heiner Kallweit Subject: Re: [PATCH 14/15] net: phy: add PHY regulator support Message-ID: <20200623094252.GS1551@shell.armlinux.org.uk> References: <20200622093744.13685-1-brgl@bgdev.pl> <20200622093744.13685-15-brgl@bgdev.pl> <20200622132921.GI1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:41:11AM +0200, Bartosz Golaszewski wrote: > pon., 22 cze 2020 o 15:29 Russell King - ARM Linux admin > napisaƂ(a): > > > > [snip!] > > > > > This is likely to cause issues for some PHY drivers. Note that we have > > some PHY drivers which register a temperature sensor in the probe > > function, which means they can be accessed independently of the lifetime > > of the PHY bound to the network driver (which may only be while the > > network device is "up".) We certainly do not want hwmon failing just > > because the network device is down. > > > > That's kind of worked around for the reset stuff, because there are two > > layers to that: the mdio device layer reset support which knows nothing > > of the PHY binding state to the network driver, and the phylib reset > > support, but it is not nice. > > > > Regulators are reference counted so if the hwmon driver enables it > using mdio_device_power_on() it will stay on even after the PHY driver > calls phy_device_power_off(), right? Am I missing something? If that is true, you will need to audit the PHY drivers to add that. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!