Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3801535rdb; Thu, 14 Sep 2023 03:09:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFi73p/rIQ8NTN6527hjO+i3pk4e/CdVCuSQotu71b3VAE3iVEtR3VWdo4a58DADPj1vPzA X-Received: by 2002:a92:c267:0:b0:34f:666e:e116 with SMTP id h7-20020a92c267000000b0034f666ee116mr6242761ild.19.1694686155498; Thu, 14 Sep 2023 03:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694686155; cv=none; d=google.com; s=arc-20160816; b=hnhOGVBcbCuvJpG3m3+qQ8f8rWDm8Psu1MhZL9BY5kquSUKbvnP2BxDFSwmuyT775i 9prFT6sybTTlDQcjrp+hQwQxT7h/bLVpLKcRzYuhY+TloVSbCTiQXoD7Z4iDuD3JGpjx e6QEve7ZSXdDYI+SX7OkR5pBh6rwdJ3Z8i7+m0UTkUmo9CMyZVcm5oKY+kRdAWZL7GVa ifP+2v/kN57/Il8/O/8jXD/yIfQ28JO9ElMObarvB2gUaTbGBE9NZRKovkP4DCZiV1GO uJDi+dm+z/0gNJ3kGEAz5gTtxwq/MGXrtpCTu8KSz7R0/aty3LEiKr8if6lFJEZPcNpj dhkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=30YvJco7VTNawIeVj2mQFLvYk/DMezr2VBhiarmaxjs=; fh=9R4wcr/ighvfaeRJik6yCyh1Sq7IGDieueaFzFr7MQI=; b=oFiuySrfbZdWGPQ7vPxwEYRLE24pj5XBlmNeGpZHf948Ujbv2is/LawOvC/mNYp6aH KGJ1ovXEVEzv+82eRCVKCXHFdrrl3+EaugKoEcethOlPqIvvwbUtsVmeZ7L5gO2nvM1c NYT8WM+rOTnJaIQcz2ar6FRAkr1eoHcUeQsuwNMSTHECwwj9NdQuZywWCOQZxGMeSQLL dCp544FJv7y5KsLtc1IiWnlSvkNroFM93CB31bDGcgACwRfY9iO9G5bDbhODzD3i0cGU 9m5QsxPoChWFM0Nz73hBSOepRFCjz10sIKUyNJgw7vakjptiVzBkk0nVxtpbFSKhYZix PxHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=n8EGzOKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z8-20020a633308000000b00574092cdfedsi1223904pgz.808.2023.09.14.03.09.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:09:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=n8EGzOKd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 859F582AE933; Thu, 14 Sep 2023 00:03:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232119AbjINHDJ (ORCPT + 99 others); Thu, 14 Sep 2023 03:03:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbjINHDH (ORCPT ); Thu, 14 Sep 2023 03:03:07 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 922A2CF3; Thu, 14 Sep 2023 00:03:03 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id 46e09a7af769-6c09f1f9df2so382064a34.2; Thu, 14 Sep 2023 00:03:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694674983; x=1695279783; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=30YvJco7VTNawIeVj2mQFLvYk/DMezr2VBhiarmaxjs=; b=n8EGzOKderE5rofXQQ7J3iHup1q3R1LWtDz7EFdCrAFCt5K6Y68/amQBqoHkkYwyaZ UDhYjcUzbXGi6yZ5E5ZKGpBo0calaLrnWev3pICQrstobaF675/tEAMYrtTNhLXjvQwP 3Fp7O9JtCriPo4sWSNDQGH1rbRHt+gXGGMdPcthgVt4jZNlp8EphcaSF6Juu4WDpRq3P NM2WJXj13sbFn82dWA5teUJ5QVYOykNOMxik8TAcfo3WkXrENIJt3riK7ggfoJ2735hY gQzMSy1sCc5BBwNVRdKVr+ihEhY1Rr/i/wtEEWw/yGbe1SSAHuoT7MIupcPnhSvYSpN3 tJvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694674983; x=1695279783; h=content-transfer-encoding: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=30YvJco7VTNawIeVj2mQFLvYk/DMezr2VBhiarmaxjs=; b=naXAClTRTMcgMPHQeHEceHb2WA9ubY/bchOxFuolkPpSYHw+XtpiAZouTFbid8RiG0 v/uOxdLK6PYpRYXgKpMLSQ52J8sLpuo+6n08NzNsA903hfi/oBwoa1fGh3GyGifpv6wj 9xnOFdkyQcnzV/R8Mog8dU32MEHgJN6cVI44We/0ztqnzX0NKfPv7iD1dQ9NSLszyekw gR2GBuEOVKmj9lNkdo9Buc0mtccOyW8ZmfcwKYTUOeDHEo6ZCHRbBoaBGS8brPj45dA1 phqItLeJds3xBppk5bMv30KwchdubwcqZRS0TvWaZuDj7f6vKqlwaM8FRANDqpnbsxMf xQcQ== X-Gm-Message-State: AOJu0Ywq6ZO1pAYIrspfnfpHaQOODKeWx7lpvBahTylJTS0XaQlkmlQ/ p80JpIBEjC0ZCMHCwUGqg8B6uDRRHdMZ5jLKVgg= X-Received: by 2002:a05:6871:5ca:b0:1d5:a85a:13b6 with SMTP id v10-20020a05687105ca00b001d5a85a13b6mr5395171oan.45.1694674982809; Thu, 14 Sep 2023 00:03:02 -0700 (PDT) MIME-Version: 1.0 References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-3-brgl@bgdev.pl> <20230913222338.07d1625b@xps-13> In-Reply-To: <20230913222338.07d1625b@xps-13> From: Andy Shevchenko Date: Thu, 14 Sep 2023 10:02:26 +0300 Message-ID: Subject: Re: [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() To: Miquel Raynal Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Ulf Hansson , Paul Cercueil , Harvey Hunt , Richard Weinberger , Vignesh Raghavendra , Daniel Scally , Hans de Goede , Mark Gross , Heiner Kallweit , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mips@vger.kernel.org, linux-mtd@lists.infradead.org, platform-driver-x86@vger.kernel.org, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:03:09 -0700 (PDT) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email On Wed, Sep 13, 2023 at 11:23=E2=80=AFPM Miquel Raynal wrote: > linus.walleij@linaro.org wrote on Wed, 13 Sep 2023 22:12:40 +0200: > > On Wed, Sep 13, 2023 at 10:05=E2=80=AFPM Andy Shevchenko > > wrote: > > > On Wed, Sep 13, 2023 at 2:50=E2=80=AFPM Bartosz Golaszewski wrote: ... > > > Why not moving this quirk to gpiolib-of.c? > > > > That's a better idea here I think, it's clearly a quirk for a > > buggy device tree. > > Agreed, it's just for backward compatibility purposes in a single > driver. I believe it should stay here. I believe Linus was for moving. gpiolib-of.c contains a lot of quirks, including this one. Calling these new (or old) APIs for overriding polarity in many cases shouldn't be needed if were no issues with DT or something like that. --=20 With Best Regards, Andy Shevchenko