Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3726061rdb; Thu, 14 Sep 2023 00:05:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFegI7IFYbAolS3JPOFYAH4g+E79CH0xi3WlZM1nH52i6Y/eX8WZALaRVHnEo/RdSDdQrlB X-Received: by 2002:a05:6870:2d1:b0:1b7:4521:14b6 with SMTP id r17-20020a05687002d100b001b7452114b6mr5244273oaf.5.1694675155031; Thu, 14 Sep 2023 00:05:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694675154; cv=none; d=google.com; s=arc-20160816; b=rx+sLT4puf5oIk1gaz2jCePUHF3+peqQJDhIxvfdTfNrLZYQw/HonnRWPiXEzunqWR TFXXlUzqKzbxuRzMuDoYvMPhs6691NC+HUfdjQkILLYdox1VMkEL6w+pSwT7mbzmBcgG oBm+8LHi8yBz4GMSdEpYoTj0ikmJz7BeXwvdnxHYJ8fnMmC+jU8SkrTOa4rKgmBN5MZ6 4WpDMKjQRYhjMhT2BXjeFor9M+lAMFor7UM8zizb0LUvQ5rjgayg3Kgv+jQuOaeYE8lH sDlS27f7u2c37gh56Sq2GCnfVLiGLiwceCQK/yhgHsq1PwrmJC2MQDAglRrmf6gavbIc 6lTg== 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=kzTdfD0LggvX1uBlCTC2vRtoepMYQzC2yBdB+oN7NDw=; fh=9R4wcr/ighvfaeRJik6yCyh1Sq7IGDieueaFzFr7MQI=; b=rodUDmO+r4kte1IkkG7/DDmgtlxcy1XFNt0QrUAKcUTbldqqs7u4Xbq/gXbFNcA2ZH khhCblbuN65rncV9XO6wHSJ5bwR2RsvgZoSFRgmNR6zgUqWXXS8L2Xbbr9jEgUl+d/59 n8IKoP1ZiX/W6SNTInQhbcBr1oojfLwsIsiI5tGbd04nppwgsKF6u10f91gpTuKt0kT6 sptJjdp16hJpmf+XfQOFzOp1BXW/UE0LR5+XGEfiUlO/ZIkhy6foPIGYdrCWyZxfwM9b 5l2XQpX9+44RwL/VHI0QC7UhQ9CH3JclB/n8J1gXT4grzDC492Q6UDAUybx7FQ+heDl2 YyDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pUI10C79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w70-20020a638249000000b005706961d4d2si887997pgd.463.2023.09.14.00.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 00:05:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=pUI10C79; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 6050281A7BD9; Thu, 14 Sep 2023 00:05:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235755AbjINHFF (ORCPT + 99 others); Thu, 14 Sep 2023 03:05:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbjINHFD (ORCPT ); Thu, 14 Sep 2023 03:05:03 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45640BB; Thu, 14 Sep 2023 00:04:59 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id 5614622812f47-3aa14d8641cso372872b6e.3; Thu, 14 Sep 2023 00:04:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694675098; x=1695279898; 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=kzTdfD0LggvX1uBlCTC2vRtoepMYQzC2yBdB+oN7NDw=; b=pUI10C79RkUXxD/yVaIHXn6IPHQ7bA22lRHxYbPsUjafKbkR9ezty6ly8T+4Z1mdmJ Gc/kGq40vYZjsuTmDkkcSnIydBO7mT33onwziAdbOjnLMjOIl6anQowwRBph26xEULNs nFLz11rXgUDn0IS9f9Ua/n/VLFi5rjhBeRMfkUQ9UrAiSGMq3KyMaylpq9XaDK5y82Ll h4QTC1lZ8Oq6lNEJu5yg3N0PDGH9NhJIIyZdnW4mTSu6XtykSbblS5uZiS4DhDtA+VdN Hsia23aHJxectydeLWFBoICbIUTaO5HZhiTFEne8yHi/pBP4MgM5Te90LL3KJeBl5wHB w9UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694675098; x=1695279898; 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=kzTdfD0LggvX1uBlCTC2vRtoepMYQzC2yBdB+oN7NDw=; b=J9r8vFwkY7USU2M/wjQRqcCbd2+w7Vd+Hw5hVfzaCALz4jDa2s6mwsJBZxUtJeadnF K+AxuN46FLHgfKdArIQOWhCX8z4XdYPPHcdZqEbSNWYPEeKxMBuGGg2L+ozzplI9+W6a puEub6Xc1tXF+Odgbi4wmSUU80kuB0b7vHX0Ywjk6v0KaRBx+ItiasxhIDPr2TQihVSc fOyvk5c3oxgFKXlSoODDVG6+zUGK6nhEHidezXQRyt0kizZtfZJQIkn81/2Bwud14jZX UqGGCPZA8bSKiQbUVkkzeQ9SamZWrZLDu9wfECTOy8v8ZZddTy138Rpj/lch61vPCDhG rb9g== X-Gm-Message-State: AOJu0Yw+7Sp13inJSHZ7zB2XFVZWr21Sjt5Xci/v3Qi/+UM7RQ3Eiypq pCMXU8Q/rejNkDc3WL3G36ze80YFJ+ADwjpvUG4= X-Received: by 2002:a05:6870:2397:b0:1c5:56f:ac08 with SMTP id e23-20020a056870239700b001c5056fac08mr5612105oap.12.1694675098534; Thu, 14 Sep 2023 00:04:58 -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: From: Andy Shevchenko Date: Thu, 14 Sep 2023 10:04:22 +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 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 00:05:05 -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 pete.vger.email On Thu, Sep 14, 2023 at 10:02=E2=80=AFAM Andy Shevchenko wrote: > > 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 To be clear: "including one for the same issue" > these new (or old) APIs for overriding polarity in many cases > shouldn't be needed if there were no issues with DT or something like tha= t. To be clear: The less we call these APIs from drivers the better. Ideally these APIs shouldn't have existed. --=20 With Best Regards, Andy Shevchenko