From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5333DC31E47 for ; Sat, 15 Jun 2019 09:34:52 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1FB3021848 for ; Sat, 15 Jun 2019 09:34:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XjMcxeBu"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zsVylsI+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1FB3021848 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Dy/eGN11bEywVC5ZdvVxC/GmqwD6/3XzV3fX6nVGhz4=; b=XjMcxeBu1O8gg2 h73eApxrbDRmeWRanzUGpzJXouPojD1oW/IYUngrRIJwcgnZpeMV9T+rIKefD9et9kqIT8jQ6O3JS QJne+KCxTZUDHBRkzbS/ShYUwe7bcX4rBP7ZY05u2baHj9gpn9iQOWAsN9nPNl9pS7ZzPJktN/iBJ oekN9zGnk7jvsw8qwVxkSP3pVFDKmlcHf5vwV6QiGs6l6f0M3t6e10WrapWVFhC82t1LwAAPswCFd rLbrLb6N94/vq52zwxPCY1ErOon3iLOj+Kim6uLbbSQ7lCZMhiBz78OzE+ifLg+Ik+wm0o5YTdv9X tT9RJbFyLdX/95b0FOyw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hc55A-00076O-Kd; Sat, 15 Jun 2019 09:34:44 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hc557-000760-Fg for linux-arm-kernel@lists.infradead.org; Sat, 15 Jun 2019 09:34:42 +0000 Received: by mail-lj1-x244.google.com with SMTP id v18so4750647ljh.6 for ; Sat, 15 Jun 2019 02:34:40 -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=S+e3ae3nDo211Phfm6lcT95OA7IYBp3eNuvxr46hQI8=; b=zsVylsI+bnY06zotdYazoqPbnqUS2bZqtx0d0MuPW/bi3FvKVPndysWw/GmsA8nyHT 8OH/NT4ce1fzy5TYJlw+GTkMjV7R1XaROP5ucrGnnw9G+yWfWFxFlIgWx3OVZ0x1I5tl QnwB4lxeWcknPXNyNPm3rS4cHa7P5WmM815esIo4rsIvSI7OdC5YxnnU8It9uAtMks6l K850SbpvjROUXWEPw6SiH2O9omsXoqefhAPei/vVTEUCASiIZYeatcjTMajo59ZtyfWb DWVcboaNAnc11jo7aidKR2y3twNjWkTIb2gO4WO2e7TpPWH+XJkry/tpYuGouE7lLcyR 0c+Q== 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=S+e3ae3nDo211Phfm6lcT95OA7IYBp3eNuvxr46hQI8=; b=kGPyiQCaixrgT3eftBJW6WZUSh18l3hap2edbRKys4TDueVEpj01jyZnhSG74NLlqq 8UQOcsdkVgi43+D8d/mGATwoO3K5eMaaj4t6UowbKfFGueX/iJk+0FFtdk6Yh0EMJ4XS 81PkaZ1Sbg0Mym9DCGkPNaz6ec62Viarnn+MtF1q1dE+kQ8JNd2M8CunaYYRHLT6METr /UdQG9T+PYnWP46Sto3omMBf8x6Rg8QZhjGROSTLhUfFAT/P6h4FAl4uzI1rtw9qkExb tBGQZbtC2vIaKcpHaPusZxcVJfuEE7ujE70J5Wr+J+5vzUTwvjLFUAVmmrCKOIltQGuD /PKg== X-Gm-Message-State: APjAAAUG1fv3yDUgn6ROtSqJxsZBhxRS5sI0i62WsRcq31Frr3f6X+t3 7z6gV7wP/bBXxp84M6dQI012r4D/pzkPBnJFajuEgw== X-Google-Smtp-Source: APXvYqwLTbopvLRNBKb2DO7gOLSSgRDu4W/A9L+CndsAaEJ7YfZQiyyOgo75eSM8f89ms/J7M3hBuD/kna+45G311Jo= X-Received: by 2002:a2e:a0cf:: with SMTP id f15mr23119868ljm.180.1560591279344; Sat, 15 Jun 2019 02:34:39 -0700 (PDT) MIME-Version: 1.0 References: <20190612193115.6751-1-martin.blumenstingl@googlemail.com> <20190612193115.6751-2-martin.blumenstingl@googlemail.com> In-Reply-To: From: Linus Walleij Date: Sat, 15 Jun 2019 11:34:25 +0200 Message-ID: Subject: Re: [PATCH net-next v2 1/1] net: stmmac: use GPIO descriptors in stmmac_mdio_reset To: Martin Blumenstingl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190615_023441_527175_565541D0 X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Alexandre TORGUE , Maxime Ripard , netdev , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , Jose Abreu , Giuseppe CAVALLARO , "David S. Miller" , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Jun 15, 2019 at 11:11 AM Martin Blumenstingl wrote: > I think I finally understand why you want to switch everything over to > GPIO descriptors A bit after-the-fact reasoning, but after I was made aware of an interesting lecture by John Ousterhout I feel the best description of the descriptor refactoring is the idea to make the GPIO API narrow and deep, make it simple for consumers (hence ) and handle as much special cases (polarity inversion, open drain...) as possible behind the scenes. Yours, Linus Walleij _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel