Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3232487ybi; Mon, 10 Jun 2019 06:52:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBdyQtHOH6vaeQTQQu5UwyNbHIwsZQ38XdGE22nbBA+ZYSTup5LdFZ8R72qq12nU55z2FC X-Received: by 2002:a63:5d45:: with SMTP id o5mr16011317pgm.40.1560174733165; Mon, 10 Jun 2019 06:52:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560174733; cv=none; d=google.com; s=arc-20160816; b=xoEkePgvdLYjLrMUJmJGNFk4KFEY1ZtyJ8NZXHK9lTKzjRZb1dbSo408yMJSdUr6Aj 2T3X0G22/eGPUBuDH7C70FXA8+TyhWji9urRzl7zX33FQ7Et0OaILhtaqsRsttyEQjk6 WIkdYXZhaqJLpqE3mmA302X9gDFYCChqCb7PTGhcZzDeMBqkPlReftRFmaCpDcUkBmzP ktsBaHJmF4gku7lJCm8UEifLYpYE2j0nPl8fCZmVAY6R1+y4hUeoiTWd4my+VK0w8UCs jMQfhRwDJrrQY2+9kHn8uxti71kNWd75iz40BepgQNn2JN6wQKmAiNXpj4UpdURPBERS 5MKg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hEfNOqaaaTWnbf9eFNN6SabYqB3+JzmRsDj6Of3zERM=; b=GK9HZTJwu07GV/Fw5b8SXJSoKZrWH/4tU/gAEk0yqrhUbXmneN7u8+/C9my4I80V1A v6jT5oPxUFOh8+B4CWbsTzZvCW3jFkLrJ5ht/QdXrjkDIrpYgAmWD3aKSA6X9FmS9Fug Mul9AHFWysba2tsgAp28YMLOL+12s06jpJrB9V89wL9u4z6bVX6V3ohZYpW5VkC60Dbt pdQ+ouiAHqSFiZHtCbYV2WkN+iJ3vNPA3mSd4slSDEqGWLdz19PRwOg/JWXeR28UIZ4I dR1sorTzWcPCeyPTbPvOH066zk8s8jB4Bl885cDEy9dafIdOT1XAfkwfSDs2mR9scpWo 8tjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si9881894plp.223.2019.06.10.06.51.58; Mon, 10 Jun 2019 06:52:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390552AbfFJNvT (ORCPT + 99 others); Mon, 10 Jun 2019 09:51:19 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:43071 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390306AbfFJNvS (ORCPT ); Mon, 10 Jun 2019 09:51:18 -0400 X-Originating-IP: 90.88.159.246 Received: from localhost (aaubervilliers-681-1-40-246.w90-88.abo.wanadoo.fr [90.88.159.246]) (Authenticated sender: maxime.ripard@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 22AD7E0004; Mon, 10 Jun 2019 13:51:09 +0000 (UTC) Date: Mon, 10 Jun 2019 15:51:09 +0200 From: Maxime Ripard To: Martin Blumenstingl Cc: Andrew Lunn , netdev@vger.kernel.org, linux-gpio@vger.kernel.org, linux-amlogic@lists.infradead.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, devicetree@vger.kernel.org, Neil Armstrong , khilman@baylibre.com, linux-kernel@vger.kernel.org, davem@davemloft.net, linux-arm-kernel@lists.infradead.org Subject: Re: [RFC next v1 0/5] stmmac: honor the GPIO flags for the PHY reset GPIO Message-ID: <20190610135109.7alkvruvw2jbtwph@flea> References: <20190609180621.7607-1-martin.blumenstingl@googlemail.com> <20190609204510.GB8247@lunn.ch> <20190610114700.tymqzzax334ahtz4@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hlwqgl7jkkjm4sqs" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --hlwqgl7jkkjm4sqs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Martin, On Mon, Jun 10, 2019 at 02:31:17PM +0200, Martin Blumenstingl wrote: > On Mon, Jun 10, 2019 at 1:47 PM Maxime Ripard wrote: > > > > Hi Andrew, > > > > On Sun, Jun 09, 2019 at 10:45:10PM +0200, Andrew Lunn wrote: > > > > Patch #1 and #4 are minor cleanups which follow the boyscout rule: > > > > "Always leave the campground cleaner than you found it." > > > > > > > I > > > > am also looking for suggestions how to handle these cross-tree changes > > > > (patch #2 belongs to the linux-gpio tree, patches #1, 3 and #4 should > > > > go through the net-next tree. I will re-send patch #5 separately as > > > > this should go through Kevin's linux-amlogic tree). > > > > > > Patches 1 and 4 don't seem to have and dependencies. So i would > > > suggest splitting them out and submitting them to netdev for merging > > > independent of the rest. > > > > Jumping on the occasion of that series. These properties have been > > defined to deal with phy reset, while it seems that the PHY core can > > now handle that pretty easily through generic properties. > > > > Wouldn't it make more sense to just move to that generic properties > > that already deals with the flags properly? > thank you for bringing this up! > if anyone else (just like me) doesn't know about it, there are generic > bindings defined here: [0] > > I just tested this on my X96 Max by defining the following properties > inside the PHY node: > reset-delay-us = <10000>; > reset-assert-us = <10000>; > reset-deassert-us = <10000>; > reset-gpios = <&gpio GPIOZ_15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; > > that means I don't need any stmmac patches which seems nice. I'm glad it works for you :) > instead I can submit a patch to mark the snps,reset-gpio properties in > the dt-bindings deprecated (and refer to the generic bindings instead) > what do you think? I already did as part of the binding reworks I did earlier today: http://lists.infradead.org/pipermail/linux-arm-kernel/2019-June/658427.html Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --hlwqgl7jkkjm4sqs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXP5gTQAKCRDj7w1vZxhR xTX2AQDErQs37AlgMjoegkuBtrfya5ARL23dKC2yJPk5bFAPIQEA8brM32gT3g4u 5bbyMYmku0KJTlZo2bHr8P+VKtd70A0= =Jc07 -----END PGP SIGNATURE----- --hlwqgl7jkkjm4sqs--