Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2998722ybt; Mon, 22 Jun 2020 12:14:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaXIbw218XGqDdLawC9mqrDWd6YSkDw5N+14dyP3xSTKs91YInoe5pq+n8rY2C4ltEpoI3 X-Received: by 2002:a17:906:7103:: with SMTP id x3mr16231259ejj.363.1592853290308; Mon, 22 Jun 2020 12:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592853290; cv=none; d=google.com; s=arc-20160816; b=ZGtffSqLm2yZfCoT8Py4kUDJBfozoGI4dBXEa9vfAABiO/GeMoUfG4cgvEXaSSgVLJ FaLAc1LVF7m4dZDJYPQidWOvisNa0794SLylM45cj5GqPpJLud0P95/mxhLT+C5Ou1Kf nUDFFgNsXU0i4HbPskQytvqZpinQC/3usHxzhX+kvZw+flxGpCkCRmAOZWm09AwwKP7v B8ASL3neQbcYUalhOYF/Gm37aW31F4YavElvJnMxxLTOQGqopy4AtaEreQTVKGgMq91p hZfgVycEXDasU3hgWuOdzuCf7rKBtmkt5pZZfeub3HJzdYOvgd/8u7BQWW2q7/Je9fah sVVw== 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; bh=lD/P7t0MwYC0gimk14P8+t2SEPHZIk1xAZ2wHxwgPgU=; b=xSudoHpXvB17jyRmYqVxOrM2CngtAea0JR1JA3x0Fo4XnsBhKHd/NlkBME36wQiDhG m61UVXuzV4pw7OkLHf/UiP+Rkd0p3+VfMfVpiroGIo8Z2eyNsCqI3lMZIjEENSQHNbhC hd4GZXbvM7mX8qB97a6EpwqyIKuR9dir/9ocvksom4Ss8rfd4Xol4WHbtX8+Tdcn5W2W NG4umk8i6n+CBqq9VObMsjJyVWvBZa3t5yXZu9a3GWADtKovmZiwn1Nkn67MT2+yO0ys dtuOIKFZ75uGuv7s/Y1zD2qYraWflYOl2y50Eutcb0pkklC6sokoMzCUAsbYkvx4RALZ BKIQ== ARC-Authentication-Results: i=1; mx.google.com; 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 u10si10309696edp.574.2020.06.22.12.14.28; Mon, 22 Jun 2020 12:14:50 -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; 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 S1728672AbgFVNQh (ORCPT + 99 others); Mon, 22 Jun 2020 09:16:37 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51938 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgFVNQg (ORCPT ); Mon, 22 Jun 2020 09:16:36 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jnMJ6-001fCY-B8; Mon, 22 Jun 2020 15:16:16 +0200 Date: Mon, 22 Jun 2020 15:16:16 +0200 From: Andrew Lunn To: Bartosz Golaszewski Cc: Florian Fainelli , 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 , Yisen Zhuang , Salil Mehta , Jassi Brar , Ilias Apalodimas , Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , Frank Rowand , Philipp Zabel , Liam Girdwood , Mark Brown , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Fabien Parent , Stephane Le Provost , Pedro Tsai , Andrew Perepech , Bartosz Golaszewski Subject: Re: [PATCH 05/15] net: phy: reset the PHY even if probe() is not implemented Message-ID: <20200622131616.GJ338481@lunn.ch> References: <20200622093744.13685-1-brgl@bgdev.pl> <20200622093744.13685-6-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200622093744.13685-6-brgl@bgdev.pl> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 22, 2020 at 11:37:34AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Currently we only call phy_device_reset() if the PHY driver implements > the probe() callback. This is not mandatory and many drivers (e.g. > realtek) don't need probe() for most devices but still can have reset > GPIOs defined. There's no reason to depend on the presence of probe() > here so pull the reset code out of the if clause. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Lunn Andrew