Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3455379ybt; Tue, 23 Jun 2020 02:44:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwp7UlwLGbnMmIWzXyF5R0TqbxShyg6K9YA2B7lhcb2CAp+BrRdVEPtfdf7gTm94+UMrJ9S X-Received: by 2002:a05:6402:1486:: with SMTP id e6mr20322840edv.99.1592905497425; Tue, 23 Jun 2020 02:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592905497; cv=none; d=google.com; s=arc-20160816; b=kOrI4SJAP9b5dvliWBX4jf+IrfIgmTkLfEXwLvarD0imdjiHE0Y6j6GIK7I+yJDt+u IY4gEaKn7CpH3DCj87wBVIBIDrl1rBeWtYjmjfVIulFkXKiBUbyVUUfMg8lXlo2+aT+t l5ikK2Lozd6AJXz89IFcZWL4XjsS8Tz63xFzgnkDE2Hc5hBnaT72Loe/0veGXwHd7IF+ uvhoGjPcj5M9mBTaTh//1AaDJJtGfiPh7A6od0iABMnkFfYE71Mm4aWMWMlJs/d3W62F 2V9HLdzeX9+yB6rFkWhFVno1xA24LkDzLKVmZrHKlOanjQNtg0UmH8OfUOUpze7A/Ze8 xVyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eYT530/2mRtpAyh0DpDIsFqdUu0RZKvGKhfFQ+olAzg=; b=Abxeooj6Xfj9dsNwdw+Gr6cID56cMRqFITlq+8iAwblm6QH0frSFkXGkE4MRYVrZrS dWlY9FXAjwe9kz0aF1PCrEzpac/DbCeURXpPgsEP01pRuof8D8Jl6KvDUOuN2u6WgzSq Bkye6pBjMefaVhl3EPWs3+OoAndYB4Q0GCRAfqQimiSp+QuwhsZFd+cU/AaAg1plCC+s HD6vuhsutJjePoWGcufx7MXF7Cl/+7Br5nGpBpalD6yGEP8jR7I5wW4Lp1IIKlhzLyyk LFxpeO/cgJa0sSvp1LTcVMnJfEc/VWPRpqKzNheAVRZRBUp2pLqy8nLpkMhH+aIA3deo Zpvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="q/Wwwp8A"; 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 v18si6466325ejw.593.2020.06.23.02.44.34; Tue, 23 Jun 2020 02:44:57 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="q/Wwwp8A"; 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 S1732105AbgFWJlX (ORCPT + 99 others); Tue, 23 Jun 2020 05:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732026AbgFWJlW (ORCPT ); Tue, 23 Jun 2020 05:41:22 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81C4DC061573 for ; Tue, 23 Jun 2020 02:41:22 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id i25so22946885iog.0 for ; Tue, 23 Jun 2020 02:41:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eYT530/2mRtpAyh0DpDIsFqdUu0RZKvGKhfFQ+olAzg=; b=q/Wwwp8A1BT//ycShNsM7XqmB3bG24wQBAirlMbmZaCGJ14WlIrYk1hUeGFPFvFYh9 18AuWxnLJ1U1xdH/pGBPRjrPFyfPQg7q+9IucqCmFfeBCfeps7rxI2SW2DoKIfLUr5up QiSEWrkcSOyboUd9lJ8T7gHRuzsG0YMSv8qg4VHWp/kK/35QhddY4oGB6G4nqgWMrCZh syPjBA05FOD90Sz9u5udUM+MDkSo1wLudZ9Ufcpzj9Ht4F4P+CCs4YMhBoTiJJpc3hEZ C3x7fLzfiu+6I1zCZCYLoB7ldYctRJTYQSe0hOhS8cOtdYjiuOJfUpqpndg4fwtYgwqc 4scA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eYT530/2mRtpAyh0DpDIsFqdUu0RZKvGKhfFQ+olAzg=; b=V4sODiZnn6rtx9ftdZPQEz3LS4vq7TESqWdX7Hv3bVdzHx7sVS92oRCRLrYc6Ih2yz ijB/QrBMmkP1jhVkz0kH9laye3uced3dv0UGoWBO6E8GbQDLLSFcfR3uMRx9b/vUuXRd zRdhK4DawFyd8ETUbUOwvBcIPOI3KD6f8o9F4CFZ3ru9elgoV73NI41Eb1sJ1QMGCGqF aHW+3j4XWbPHTiYz1Yhb9j8ZwDV/F6IVedu9qHVm3qxMgsDDF+jHm1cSnBUgg2iAyxGV P4j5o5ylrYsNUAvrAYDVg3W87yQAG1eOrFCr3LzGviW+EUC/lKbAdBjpJ4SfMHS3jEah WeVw== X-Gm-Message-State: AOAM531ePXf5lDsLi86IgK30K6TlMoB02wRra0IKpiDYuityUsmcH9km NTzkEYUi6QFcGS9AY0nK2gnS1NUVIt2YY0431zLb3g== X-Received: by 2002:a02:cdc4:: with SMTP id m4mr22844233jap.57.1592905281814; Tue, 23 Jun 2020 02:41:21 -0700 (PDT) MIME-Version: 1.0 References: <20200622093744.13685-1-brgl@bgdev.pl> <20200622093744.13685-15-brgl@bgdev.pl> <20200622132921.GI1551@shell.armlinux.org.uk> In-Reply-To: <20200622132921.GI1551@shell.armlinux.org.uk> From: Bartosz Golaszewski Date: Tue, 23 Jun 2020 11:41:11 +0200 Message-ID: Subject: Re: [PATCH 14/15] net: phy: add PHY regulator support To: Russell King - ARM Linux admin Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , Rob Herring , Matthias Brugger , Vladimir Oltean , Claudiu Manoil , Alexandre Belloni , Vivien Didelot , Tom Lendacky , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , Frank Rowand , Philipp Zabel , Liam Girdwood , Mark Brown , netdev , devicetree , Linux Kernel Mailing List , Linux ARM , "moderated list:ARM/Mediatek SoC..." , Fabien Parent , Stephane Le Provost , Pedro Tsai , Andrew Perepech , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 22 cze 2020 o 15:29 Russell King - ARM Linux admin napisa=C5=82(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? Bart