Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp722321ybt; Wed, 24 Jun 2020 09:36:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTkuuHvhYGA2ut8atcqmI1Xw/tVfleua9dxNu+dM/yhZqykz6aIKPtMcw2HBwf5bH0CbbM X-Received: by 2002:a17:906:82d4:: with SMTP id a20mr687007ejy.165.1593016595137; Wed, 24 Jun 2020 09:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593016595; cv=none; d=google.com; s=arc-20160816; b=Ch+tZVDU3JFjDQvMUWbRb7iQqd3XxZFCutzWuCXecpOOawXZyF1eaBByuMPiRbAeox Fv1pfUQuzpP5l7nYOCfN/nJomhGU7f1UwhPaYg/Tbk4+WEmK6ImN2RS2tzr/D6UfyL9G W7DbYnF/u8+4zFQ1IQ0jJ+I0yP9Gkb22Ew8s4YZRj7vWM7OD+4xGD3OVGaCf5IYDHXQN RjslnmGmu26d2lHY+kI1mdNGKOvjrpWpgMEvzf/oYNo9pkceAAasuHlMc0EFMKS8rgV7 iES02UMOqkgdNn+9RJDMF5y9YUkttVLbRc50bhcpVjhbcm1xIgtfOmuePbFuWyxpLYg0 G8jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Sp0WLMHGJPSAAMQoilN1mZe9srYQKmzrBKtnNiwXpVs=; b=hyeYCJXw6nzrucTGxtif7eX0UPTH6H+zmjcYjoukfg8j/EYdKMoBvxpvypR9a3FkiI swBpOGWVG+QfcNRqVZhzMZ06ivDiX1Ll4QrhgvCPUn1sZrPvkDws7m2T+/FrXqeNdC8W IYHWIih7/mHjgwvf3hT76sbFShkPkn/5nPJY+Q3qcPnTe+kkDGi5aWtuYtX6IAhqoe0o T1BGhEhjO8SkdqoFtAGo/5dNkzApdNcHP1RK6etMQtwLakt3n+mpZKlm93n8rif67e06 ZbF+D7fxuMS/xNqDdipOQtpqWFuEI2uWOWu6isShPqzLScqan4+OTPtl6OUyc6GlhMl9 zDng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Gs5a8ysD; 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 e1si13605114ejb.286.2020.06.24.09.36.10; Wed, 24 Jun 2020 09:36:35 -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=Gs5a8ysD; 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 S2404952AbgFXQft (ORCPT + 99 others); Wed, 24 Jun 2020 12:35:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404625AbgFXQft (ORCPT ); Wed, 24 Jun 2020 12:35:49 -0400 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A24AC061795 for ; Wed, 24 Jun 2020 09:35:49 -0700 (PDT) Received: by mail-io1-xd43.google.com with SMTP id v8so2759149iox.2 for ; Wed, 24 Jun 2020 09:35:49 -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; bh=Sp0WLMHGJPSAAMQoilN1mZe9srYQKmzrBKtnNiwXpVs=; b=Gs5a8ysDongBqjpVPsiQWEdpD5YRNoaq5AdJr4nWs/zYkTf9M+ghwGa2A+vl53WV6M JRhhJVQhyuX8Tjd445UrEkqaFeRBOHvtFUzLBeMPO0HX9mrLGqK4lDzsj6o3kvYnXAtP U9yDgHUDz7mk9brV9quovHVYMfYdpE1wplg8iEBwg4dESo1GeYGKG147fTWViUWPXVaS FR6tX7MIy3c334Uz8RjbHxPZg9QBgw0WiGsyG1tVXNjq2ij/nw+U3r3cmvFLDwDYK1qw EoXeQw+M9J5xE1EYWjQsHsb+8MY6uK1Y0nyljUOAVmAheLR3MwqkhUPIAU1EoVLOMvau PLIg== 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; bh=Sp0WLMHGJPSAAMQoilN1mZe9srYQKmzrBKtnNiwXpVs=; b=WuqlveTp0QD8JzeCI1VxcIbapzZD4khsPkNHX83GJnnQdBH9IkkWtonhefReUxUKOI xOsnXC3jwAVP8wB393ryq5hKzDriAUQRTMdiW2gjvydDjyVg1vQFpH0iblcRMhqphzYv RjP/BnkodnzvWN5QUcPf4UWVej7hvGW5RAIKIsn2tL5mBfsQJrDPVi+hCRpc9s18OInF 6ssy8Ok/UQQFK7nbFXify9sYxuU3q0HOOAtM0/VEeYxkez/OGduRVEpHeRGkN91h0X6+ PLjQxkoFOFBbXMGm8Y+1i8xbY22NEn3HpUUr4CLz5oYT2HszuU0gNNS1Z0OmvZ7OF9k1 wIAw== X-Gm-Message-State: AOAM531c9rADHsf8YTCoZ7XVHAEfsZJJHSmtd82eveeUACTgoy5gzaqf NN/SW9KgaUKcKguCYYRqBRhGU7EB4BVPvWfTHVd91w== X-Received: by 2002:a6b:b252:: with SMTP id b79mr32690628iof.31.1593016548397; Wed, 24 Jun 2020 09:35:48 -0700 (PDT) MIME-Version: 1.0 References: <20200622093744.13685-1-brgl@bgdev.pl> <20200622093744.13685-10-brgl@bgdev.pl> <20200622133940.GL338481@lunn.ch> <20200622135106.GK4560@sirena.org.uk> <20200624094302.GA5472@sirena.org.uk> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 24 Jun 2020 18:35:37 +0200 Message-ID: Subject: Re: [PATCH 09/15] net: phy: delay PHY driver probe until PHY registration To: Florian Fainelli Cc: Mark Brown , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , Rob Herring , Matthias Brugger , Microchip Linux Driver Support , 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 , 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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 6:06 PM Florian Fainelli wrote: > [snip!] > > > > This has evolved into several new concepts being proposed vs my > > use-case which is relatively simple. The former will probably take > > several months of development, reviews and discussions and it will > > block supporting the phy supply on pumpkin boards upstream. I would > > prefer not to redo what other MAC drivers do (phy-supply property on > > the MAC node, controlling it from the MAC driver itself) if we've > > already established it's wrong. > > You are not new to Linux development, so none of this should come as a > surprise to you. Your proposed solution has clearly short comings and is > a hack, especially around the PHY_ID_NONE business to get a phy_device > only then to have the real PHY device ID. You should also now that "I > need it now because my product deliverable depends on it" has never been > received as a valid argument to coerce people into accepting a solution > for which there are at review time known deficiencies to the proposed > approach. > Don't get me wrong, I understand that full well. On the other hand a couple years ago I put a significant amount of work into the concept of early platform device drivers for linux clocksource, clock and interrupt drivers. Every reviewer had his own preferred approach and after something like three completely different submissions and several conversations at conferences I simply gave up due to all the bikeshedding. It just wasn't moving forward and frankly: I expect any changes to the core driver model to follow a similar path of most resistance. I will give it a shot but at some point getting the job done is better than not getting it done just because the solution isn't perfect. IMO this approach is still slightly more correct than controlling the PHY's supply from the MAC driver. Bartosz