Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4260903rwb; Mon, 21 Nov 2022 05:45:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rcCbqK97YdJuDrm+VfA4jHg70j1tP5BX8uwYSC2xkqdyEnkctqYPR4Xmauio/M8KYHmOF X-Received: by 2002:a17:906:c406:b0:7ac:db70:2f90 with SMTP id u6-20020a170906c40600b007acdb702f90mr15576417ejz.297.1669038358934; Mon, 21 Nov 2022 05:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669038358; cv=none; d=google.com; s=arc-20160816; b=JyokvzA5dS8ZVqGkGL3ZYXkULiz3oZBCf9KT0/z+RIYT+WB2z3pA9LnJ7r6zJLlP1n SrUFQf+xCnR1vY7pqUNz+B6dsryg+Tm9CU30QXGhcFw6E9KHBrlWxYa+Uo1sc5M9qDfK gis6CY4YxlZhpyfFApNp2Rwg8cctt94gjC6yIBksMMiBCkOPNARVkCOgZvbM7eBHukCD aNK6UQvAb27k0SNUOnwSxLNQi4CK0tcE1vuDKnqocrdhYm6tMBrIXmRJn+PImtOG9III MMIpGUt956Jjf6QVsXTimVEur01IMgE5XCZMUy+CN0WYTHRLW9U1Sg6KdWl0bcj6vmZ3 Eumw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AkVA2gbeFi41E2HoJZX47IA5XRYqAdo+42G6zXfvCrQ=; b=ts/XNJ9jpG2NCD0dPVw23xC9s2nMRb8Gk3iWKeIxmAJMbjIjQYnie6x33NHw+uD0ch nr3qRW7M+rgRvEqKYfmj/10ppJtH0pKSGUrlKakrDlWad9b/VT6TifX+DQlBCjNzuXdg tQCACjyw+0I1RlMRU3POKfPVDwKiaWW73dOlaQ51mbwe59TYzI9hkzO5V7K8l5q6Gp2F USAD3g1syzm0xGAH4IVwEuOirW5EB06owsGMbIVZ/SFKrD+FyLRoQ186nQ13evUHHlxy REVvt3/HPO5aRzbZNBkRwedMLxsyUgjSBQ7qZoPTlgrdqVyKyHzKsDus/k53oDZdTn8P TnaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i9nqHc5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y18-20020a056402441200b00458ac23f0b8si10209697eda.399.2022.11.21.05.45.32; Mon, 21 Nov 2022 05:45:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i9nqHc5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230165AbiKUNfX (ORCPT + 91 others); Mon, 21 Nov 2022 08:35:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbiKUNfV (ORCPT ); Mon, 21 Nov 2022 08:35:21 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE7A9BA35 for ; Mon, 21 Nov 2022 05:35:19 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-381662c78a9so113405597b3.7 for ; Mon, 21 Nov 2022 05:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AkVA2gbeFi41E2HoJZX47IA5XRYqAdo+42G6zXfvCrQ=; b=i9nqHc5IEDhPKfUr6eMNAh6EdyZR4XMALZr8+66IAoeOPqMfROST8/8XnGVQe0zln+ qv53OnWiNFO23QfMIglLPbz66RSWhqn/9YQXFJg/6WYULqf0rd5Lm3DT/FLnQ9gljs16 l4QhEYH3ZvKgtFrhZi0UPfnry7VBJ+CZ88v6mqLCFk/bFqu1dvQO4lJPQkZw2brAfdfK X6Q1EzIxIA5dWbqSQPBGT1ZFNIkF0i4cWPqjr+Nziau3uyXd5BMk4qn9j07yq9dH/8Qw wzn3R6SCxW5x0kLeyxyalVAG7jHtmENlAMKmM+yM5hVHAOTgP8YGUtFn0O11eRHV0gzY rGEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AkVA2gbeFi41E2HoJZX47IA5XRYqAdo+42G6zXfvCrQ=; b=AMnGA/3TZLf9XGiClfdwOmWPFoeldFVabSyFcnJbrewn2GMe1HeFuf//wHYTIXqVsM OF1KC4e+a5GxVPPPNO0v/n9mYB6dP7SUWFwgD6O8dG6W7Z0NYLAvmAwUlDPMTkm3+4Fh i2GwozYsehE3NjijP6G+eswAMA10weJhKftK1wpqlEAudK+hBCU7IGvaEWo1gz/8Cc7N b4KaxCF3QjH+gocZjaiE8Bwp4PPUrCf6Il8ONGahdxubwT6+pRkYEcgZUio388fEt0iY exWeWtf7VVvothPUw3Q2UD6YGRmZG2/Gzsoi/EybKrAz+iqjHUNNQOcfV6Y2/xuB0Gfu bi5w== X-Gm-Message-State: ANoB5pkZGTb+ecVQFf8lhaTBu3sf5czaLj4PNbPqF49MsK7lowuKY+Rw W0oQOn6yBjklE79tLc6eCMfwh5PdJCvGmYfFeqYWpw== X-Received: by 2002:a0d:fdc7:0:b0:37a:e8f:3cd3 with SMTP id n190-20020a0dfdc7000000b0037a0e8f3cd3mr17064548ywf.187.1669037719041; Mon, 21 Nov 2022 05:35:19 -0800 (PST) MIME-Version: 1.0 References: <20220906204922.3789922-1-dmitry.torokhov@gmail.com> <88VJLR.GYSEKGBPLGZC1@crapouillou.net> In-Reply-To: From: Linus Walleij Date: Mon, 21 Nov 2022 14:35:07 +0100 Message-ID: Subject: Re: [PATCH 1/3] net: davicom: dm9000: switch to using gpiod API To: Dmitry Torokhov Cc: Andrew Lunn , Paul Cercueil , "David S. Miller" , Heiner Kallweit , Bartosz Golaszewski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 18, 2022 at 6:55 PM Dmitry Torokhov wrote: > On Fri, Nov 18, 2022 at 06:50:54PM +0100, Andrew Lunn wrote: > > > > Why is that 1 magically turned into a 0? > > > > > > Because gpiod uses logical states (think active/inactive), not absolute > > > ones. Here we are deasserting the reset line. > > > > This is the same question/answer you had with me. Maybe it is worth > > putting this into the commit message for other patches in your series > > to prevent this question/answer again and again. > > Right... Actually I think I'll go and define that GPIO_STATE_ACTIVE/ > GPIO_STATE_INACTIVE and try to get Linus and Bart to accept it as code > speaks louder than words ;) What I have said about that is that it should be accompanied by some sed or cocinelle script to change this everywhere in the kernel instead of using 0/1 to the gpiod_set/direction etc functions. Then Torvalds can run that toward the end of the merge window to just change this everywhere at once and be done with it. The reason I want it that way is that I am royally tired of changes that begin in one tiny corner and then the change keeps confusing users for years until it is finally fixed up 15 kernel revisions later. Since that has created a support nightmare in the past, I am now advocating an all-or-nothing approach with that type of change. Yours, Linus Walleij