Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3517308rdb; Wed, 13 Sep 2023 14:46:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKouiIlCz6txL8Ov9i5ggWDJcAJHOt1NKCs7K7jzB92yyIWDTR53SJql3REhKv779pAQRq X-Received: by 2002:aca:1b18:0:b0:3a7:cccd:33e9 with SMTP id b24-20020aca1b18000000b003a7cccd33e9mr4287839oib.41.1694641572886; Wed, 13 Sep 2023 14:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694641572; cv=none; d=google.com; s=arc-20160816; b=HiJzJvXQ+z6m0t0JbOeaqKpjxwnR+ycrm8JXiLFN9RjJxVfPe/q2XEe+NgZlK9dVdR KMmroydrCtfKsUu7BnmGzY135qMsfxHZQlXqLfElvnui1jPOUxAN3Zpphu8x5WXdDRG0 rA151J0On4OaLQVe6/1uwrU9zC81TsBWQMhZG4OXDCpnRG144NrY1dtsfvk5CH+nns2E Vk3b6jei48dQX6YCxKYD4d+EaTf7o/eRMLOJgJdqLXSvk1eKR3lx9HKNb6kBmnS3FPSa aR4Kefi93uMjUS7Hkwc7OQDwoflKpKvxt/UgK7kA7/ZQ4LN/DnwRuv2Cyspf7IB8i5Ct ynGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=/dRlWZ4ip0P9gSRRVNtyMvezGlxc/WATurc5AdssgGA=; fh=rV+MoXjTJgVYTVQFM0TogwH9zmheodDtijJqu3nF0Zk=; b=MvYd5wQtaMLqrOtd+57zkEUJpXN7oIDlI6mkJ5jfHRZ0/OmROQDLdryvfLnNOSlsU9 211VFbHLS5lRx90rJmrdsSJQcKOhpdrFE9sBRFIlymav0eWx5TpVIzpH0snyTsDizW+1 x2o8FKMTSFQDw//jWw3+4WKJPtb0ydOsANAaBpENHrn7tTahr+8GpMW9AvxspBew3LOk zG+e5QbV5Fyw6gejxNAyg7UjS4sQxzcQ4I4d1KtqIbUoJ7AOqQ04xWHQoiC/CaZta22l tR0qWU1w2rS+yVJ7kuCBCnuWMcYLyUOtpia/Jj8CbEHD6KBSKkV+xeJ4n22HDPCQ7gIY 4O2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ow2wxZiM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n5-20020a637205000000b00565eedb1cf8si2697pgc.825.2023.09.13.14.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 14:46:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ow2wxZiM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id AF25E82A4A0F; Wed, 13 Sep 2023 13:23:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232417AbjIMUXw (ORCPT + 99 others); Wed, 13 Sep 2023 16:23:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232167AbjIMUXu (ORCPT ); Wed, 13 Sep 2023 16:23:50 -0400 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A645C1BC8; Wed, 13 Sep 2023 13:23:45 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 7AC2E240009; Wed, 13 Sep 2023 20:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1694636623; 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=/dRlWZ4ip0P9gSRRVNtyMvezGlxc/WATurc5AdssgGA=; b=ow2wxZiMqZilFqKiQdViBBKXgJ10OFn4QutLDJ8h5iKbCLUYsMCpLYwz44g75okO+hVLKP fYAPH+Hipn+rJTW6OyvP5lnO3oBKBsUsGvAQ0BEQ0ZfwJwOKn97N+YEPNXgZx+tVi+QEoM UaTSLemyUL/EQjpuVLvEgCyBrWG2xCkxiwdjZycMqoB+iord0lk4UQWV5M7DtX7kEnFaHD kEfNXSKmxUZyO3fmf798qZoTx2rc8/tti4htwWlIYYKUdSMQrJLoPh/6SWJqWoCZYZrgsW a6SKSmbf6HDufOEoQxAp83NCom5LQ0HSbs2RYME0xMhTOK30Q2SNNixNySpdEw== Date: Wed, 13 Sep 2023 22:23:38 +0200 From: Miquel Raynal To: Linus Walleij Cc: Andy Shevchenko , 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 Subject: Re: [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() Message-ID: <20230913222338.07d1625b@xps-13> In-Reply-To: References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-3-brgl@bgdev.pl> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com 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 (morse.vger.email [0.0.0.0]); Wed, 13 Sep 2023 13:23:56 -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 morse.vger.email Hi Andy, 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: =20 > > > > > > From: Bartosz Golaszewski > > > > > > Use the new, less cumbersome interface for setting the GPIO as > > > active-high that doesn't require first checking the current state. =20 > > > > ... > > =20 > > > * here for older DTs so we can re-use the generic nand_gpio_= waitrdy() > > > * helper, and be consistent with what other drivers do. > > > */ > > > - if (of_machine_is_compatible("qi,lb60") && > > > - gpiod_is_active_low(nand->busy_gpio)) > > > - gpiod_toggle_active_low(nand->busy_gpio); > > > + if (of_machine_is_compatible("qi,lb60")) > > > + gpiod_set_active_high(nand->busy_gpio); =20 > > > > Why not moving this quirk to gpiolib-of.c? =20 >=20 > 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. Thanks, Miqu=C3=A8l