Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2554917ybi; Sun, 9 Jun 2019 14:54:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYSeTOjvOJX9D2hYNZ+eK2Hj6spggI5+KZmwX+SXR2Whb/IXIYzkRL3YeGWiq22cY4JgnU X-Received: by 2002:a17:902:b713:: with SMTP id d19mr68140170pls.123.1560117249673; Sun, 09 Jun 2019 14:54:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560117249; cv=none; d=google.com; s=arc-20160816; b=JENQ2/AZ46N/efyaGUvoMhsPLYUpJyM3zKdOjgCKEltvdJzLZtsSaY7QhxLFhpYxiK Qzi5My9JUPrc9483AlPfvyjxWNpOzZSPRHrcFOGXIBjsoGPpgaDm4QnWgFHw8iH5zO1T aafHq/CRw1vp4Yil2sMrLUtJQiOrlZm8ALffjFlNLqmEVKYQh12+UeIVEv6B5yMP1sAl ac+aSvs/Dcbanr1DHEENkM/OSW1zroIY/A8LCsxqHhQUhKlCGKsDA4Q+/DT6/bfd9hsL 19y0KpJAEcGd1E62yYb7p9iqEADHfoaU+od6Z+uBM9pTizbnnkVCfhg8yr7amYUDkAei 7olw== 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=He8uuSEDC/b/uWidg8RVfT3AGe4hP03AsY17X0DSxgk=; b=SCiwve1z51C+YJUrfJ0Ni6AmYLnMLpEl1urXBTd+XDW0WiD7gBMNGXZxHF7Ka2iymb Ar494C4ko3Cb5olC6obLE4ghGPJYLZ/mTEfFMQ58GPEwdom79lxpnm+SWwksOJy7i8sa o2AcwWZhBzBfchSbbRZAPANTR9nCPlx2WA3n2HVfjQak5ZeCxgJJNfKQsMdo1AqdgVrZ TMhE7AOOq5NkjXPO24QMHPKWB634NWwAneWA6s3Wrx1/bJEVcPJ5MvjxtcwVjESUrGPI lR1geNdiuP/ktuEWS8rk4zFu1OEX5jcbf9am8k/Occo4bkoKVqrJQPP05EcNfZdFaVxy 5XpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zlJsT0l/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si7815219pll.388.2019.06.09.14.53.42; Sun, 09 Jun 2019 14:54:09 -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; dkim=pass header.i=@linaro.org header.s=google header.b="zlJsT0l/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729384AbfFIVua (ORCPT + 99 others); Sun, 9 Jun 2019 17:50:30 -0400 Received: from mail-lf1-f49.google.com ([209.85.167.49]:36309 "EHLO mail-lf1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728868AbfFIVua (ORCPT ); Sun, 9 Jun 2019 17:50:30 -0400 Received: by mail-lf1-f49.google.com with SMTP id q26so5236994lfc.3 for ; Sun, 09 Jun 2019 14:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=He8uuSEDC/b/uWidg8RVfT3AGe4hP03AsY17X0DSxgk=; b=zlJsT0l/3IuyndfDS2BTaHnjJraASu525KwaMplyFARGp91fxTu7ST6SIuVl4iRefh Zw2rTEVnDvjnMuSCPzdUGoVDoRp8QrZ61tK4XFRB4D3Zl0L6VgXr//I766ZqEDgE17BM ARN60spGcN65rNvB7ab14R7DSGuQndhDP7PBCgB3CP8DrR7V+VOu1ATbAAdkQfPQj4IY quGE/acE6nwNwUq5m4i9HC26SOp56AoTeO2Nuk1flxiykzI9jViwQQchw1hlF1ArhsRC N14lVBN37nhxWkXhB1kOBhH6Fg5Nahbz9F5Ozo1lzj8nZbQmTBZ4tBPY5d9h7mtBuiCS cZyA== 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=He8uuSEDC/b/uWidg8RVfT3AGe4hP03AsY17X0DSxgk=; b=Qe9ptUNyh/iWdDrkw0W9Qy+q43YmJEpeCLeB4qqEE7nhKGDr5kXeLlyrUHcPXvAmEf G3yvDpOX7vxk3pdj0OythgXEZC4zc/YUCOdwDrjg2G/gBZ7aWzl7gewwGqpkRFfgbOA+ mqpNnUnQKMsKpR3HnI1DFgxh11JQzoPLaLr+MGmFGu6z/3yDvYxLPnR+l0XftLz/tmzy CRIVvN9Fgsix2n/7cJSgeIqS7QgKGeZCMqbX1Ynrkv1k3SkX+FQMLjWxcXRWnAmcNpDk URl1TocU1fmDCgJOrSNVbMqtctVSfNqgi7gphRntHBR5Nd/pYALWuF5JcczOI2qF3wW1 o/qA== X-Gm-Message-State: APjAAAWP0LchMh/F4zlRRrEPbCKWWrKO4scbGHt08t38X/Cwm8RrkbW3 GdVvpUcFc4vjPuaSrbVH7yphGTOffa8FOi/XY2b3LA== X-Received: by 2002:a19:dc0d:: with SMTP id t13mr9951237lfg.152.1560117028189; Sun, 09 Jun 2019 14:50:28 -0700 (PDT) MIME-Version: 1.0 References: <20190609180621.7607-1-martin.blumenstingl@googlemail.com> <20190609180621.7607-4-martin.blumenstingl@googlemail.com> In-Reply-To: <20190609180621.7607-4-martin.blumenstingl@googlemail.com> From: Linus Walleij Date: Sun, 9 Jun 2019 23:50:21 +0200 Message-ID: Subject: Re: [RFC next v1 3/5] net: stmmac: use GPIO descriptors in stmmac_mdio_reset To: Martin Blumenstingl Cc: netdev , "open list:GPIO SUBSYSTEM" , "open list:ARM/Amlogic Meson..." , Bartosz Golaszewski , Giuseppe CAVALLARO , Alexandre TORGUE , Jose Abreu , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "David S. Miller" , Linux ARM , "linux-kernel@vger.kernel.org" , Kevin Hilman , Neil Armstrong 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 Sun, Jun 9, 2019 at 8:06 PM Martin Blumenstingl wrote: > Switch stmmac_mdio_reset to use GPIO descriptors. GPIO core handles the > "snps,reset-gpio" for GPIO descriptors so we don't need to take care of > it inside the driver anymore. > > The advantage of this is that we now preserve the GPIO flags which are > passed via devicetree. This is required on some newer Amlogic boards > which use an Open Drain pin for the reset GPIO. This pin can only output > a LOW signal or switch to input mode but it cannot output a HIGH signal. > There are already devicetree bindings for these special cases and GPIO > core already takes care of them but only if we use GPIO descriptors > instead of GPIO numbers. > > Signed-off-by: Martin Blumenstingl This is in line with how I want the gpiolib to just swallow all quirks, so: Reviewed-by: Linus Walleij Yours, Linus Walleij