Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3763441rdb; Thu, 14 Sep 2023 01:37:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE9qaYpi8boCiwJB5cS7yfA3jcZBorf0SLf3TVdFyM3bxoiwd17/mRj0pv/mYx1kNrpw9to X-Received: by 2002:a17:902:d4c8:b0:1bb:9c45:130f with SMTP id o8-20020a170902d4c800b001bb9c45130fmr5511332plg.69.1694680641114; Thu, 14 Sep 2023 01:37:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694680641; cv=none; d=google.com; s=arc-20160816; b=UFEAX4QfKP9Boq1RLvg/3cGKgGI/63ZICe7NjpcGBVbQvMchLW45YtjWeE90AkeN02 wJUGgCM5SNjjTwY/dz4vmqSxkEYNtUDuYCqE+ho1RaOHO0gFpQHF9uvJFFbCngQf8T9y vkYLZJW2UYYwcbm/7o8tYUK53DpGrHwFc9jk5H8KSq8FJsTU1Poql9heUIxeTyyOvM4g OD5e+A72uLlqyUb/ccE5qyFm0ft9OUOZmwQ4T0zrULPHpruzHGcdtSyNTSk3txXidu2d YHiHIheNHNN7cYJ+1NG2YrkoCIQM74HT27Q/221HAUhB8zTxarLm9iKbBhf4+KrPvevn XCOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=L3QNlCsd4KrtdLCl8FujpLR9D66KZlMKVr8PFtC9Zj8=; fh=BJGMSluRi8i9iNqHwGDQYcg6VjnxXCum3gcGdCi6Pjo=; b=SNeum4tp2XfrOzr7PQaaLgyoAjabEFF/KF0V/a9LC9KNaMKSdiGEBZZtWio/YUyjcG GRrnItkC/iTYgsRwIqb9NeKZSGtjuGWvldfW9LV5iu8fvLQFeu4DxtUprnyHT8bTmUX+ qW+HyhOHdSMvGXNt0mZ0SS+zQsATMIe/sK4kIdXsC35RN3AtstfouRxCVLSyz97X/rU9 VDLDbigzsTxIr+QLUe8IcNS3YWlmlX1S9hUCJy2rdBWzNbqNKI1r2SLPf37duHsbe7zl 08C2dMTTboDesFqku0NXeayMExMcFEJStAduFOyY1UuSB7iwBHEaQVWFILuqDmOMLvgF pryg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=tIBeXCzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t14-20020a170902e84e00b001c3fbc674bdsi1311063plg.294.2023.09.14.01.37.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 01:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=tIBeXCzm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id EA8B9807515C; Thu, 14 Sep 2023 01:30:26 -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 S236231AbjINIaX (ORCPT + 99 others); Thu, 14 Sep 2023 04:30:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235215AbjINIaW (ORCPT ); Thu, 14 Sep 2023 04:30:22 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E4BCD8; Thu, 14 Sep 2023 01:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1694680215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L3QNlCsd4KrtdLCl8FujpLR9D66KZlMKVr8PFtC9Zj8=; b=tIBeXCzmhsYqsWsjrwpnqguwuBD5fXYC/Eb4uuoG7n3c3EEb7DyvSU4Y9dpM1IUgC0bySP sG97FPryrWMEsDiLl/oJcqji3jRNgnJ6zBwkJCJXtRnpV2RmtcooQ8L6WNXv9o0oMYkE9c SXsy27g2omhA+TmEn9Kgnnz6BYKzv5U= Message-ID: <4de724a1630eda74f4f304dc224dc981eb3b0875.camel@crapouillou.net> Subject: Re: [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() From: Paul Cercueil To: Andy Shevchenko , Miquel Raynal Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Ulf Hansson , 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 Date: Thu, 14 Sep 2023 10:30:13 +0200 In-Reply-To: References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-3-brgl@bgdev.pl> <20230913222338.07d1625b@xps-13> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 01:30:27 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 Hi, Le jeudi 14 septembre 2023 =C3=A0 10:02 +0300, Andy Shevchenko a =C3=A9crit= =C2=A0: > On Wed, Sep 13, 2023 at 11:23=E2=80=AFPM Miquel Raynal > wrote: > > linus.walleij@linaro.org=C2=A0wrote 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: >=20 > ... >=20 > > > > Why not moving this quirk to gpiolib-of.c? > > >=20 > > > That's a better idea here I think, it's clearly a quirk for a > > > buggy device tree. > >=20 > > Agreed, it's just for backward compatibility purposes in a single > > driver. I believe it should stay here. >=20 > I believe Linus was for moving. Which Linus? Because the one who's also the gpio maintainer just wrote above that it was better to keep it in the driver. Cheers, -Paul >=20 > 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