Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3615407rdb; Wed, 13 Sep 2023 18:45:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfg21V5VqnSGjSh+Bo6BuTYpG8lSZ3/uMW2KB7jyZDrnEO2ebFF8DlVe9Bl7LBje7Syob5 X-Received: by 2002:a05:6870:1690:b0:1b0:57f8:dabf with SMTP id j16-20020a056870169000b001b057f8dabfmr4026580oae.33.1694655949895; Wed, 13 Sep 2023 18:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694655949; cv=none; d=google.com; s=arc-20160816; b=AXpNBFZyr0baP7FvSNfouj36X6zi4uqmv6frCf7ams1SygoyhS5c2B0hNR4nd+5XyW msIclNCrw4SMtDP+Jg/U+eTuE9yh/6+A4mdcHfOxhNOjDd0on3Wl1VerMr+Tz+YCkgqE mQOqAcug7KqSDt3mNG9Ra5P9w+LguMds83y6vokEUD/LldXY2lJUNmvTo0YpLqnRPejX LAA0tRiG+fdxXUDD0LjpkxkEddOMrRELkK9TDWy8wcleSsXycFXwt4uv/Ju0i1dAV5bT R/NtDHK6IgBJTqNW70tcZSx9kYAyq/jLrsb3No0P0sSnOhs4Ud/Zc1b720jyNaFRrUjo 9z/A== 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=mgnusj9WNYseansm6Kr1sUnhgtykfnbfz9TfjOoUKuQ=; fh=hO7l4wBFA1bLuCVqF3HPEolhNqyWqu3/5VtyVefJocc=; b=xVSJMEvFv1OZvoAlyl87hunS5xRCmXztPBv7Ke5JNnT9b/9cpyAolhEk6iQaVarfmi ULgireY2oCqZsWBidOOrLrsobu0Py+EePKhetVlpv//hyBRNU5KTyfuC+RvTSQIxAo5+ kfxZZ8mkdKfQdOEDelfCKeC0IUxbwagWZdGBP8+ZX5a9MxwSPGDifqtTvaFRaOlDOXU8 vOPzrxknaAR39BzavELE/viAdoMb3bjd7FzuxJhId6B/DhL1G5xwjEHe95j+B7MUeTPk b/At9l6w9lezo9yNeE8X4ihbqDmDG52k4vKNuz7kMqlaUwm0GzYuFJrUgW2NQWYVLpP0 G9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=sg5+CtQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l62-20020a639141000000b00569da5e2e5esi394747pge.255.2023.09.13.18.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 18:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=sg5+CtQl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 181F782698CB; Wed, 13 Sep 2023 13:06:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbjIMUF6 (ORCPT + 99 others); Wed, 13 Sep 2023 16:05:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232063AbjIMUF5 (ORCPT ); Wed, 13 Sep 2023 16:05:57 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F21841BC3; Wed, 13 Sep 2023 13:05:53 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-572a7141434so144223eaf.2; Wed, 13 Sep 2023 13:05:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694635553; x=1695240353; 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=mgnusj9WNYseansm6Kr1sUnhgtykfnbfz9TfjOoUKuQ=; b=sg5+CtQlyAZLRAB1atZXHOqxCJhSBMUrLUYpr7pZsxwMqaelYwbMlwGTBHk2F0I2Vi BDrUn96udFImnQhLJZCgSacjwq/LJfKgbypS4RBZqp/M2PoGOrY0DLHtfDYhOU3q4QOr 6aR+RxllmvJ4qw2cVjyYBDMQrCibxqPF8jU5vAFG1X0rRxz+ADV5nd17XWvyruGRCLjx jFCCjpSlw/VEuFp5A/LdqA9rbsDkbtU6eHkK4tS7LIsNl3eBzmBkOB47IeP/U3OGCrli rLVWKDC2zv3xwyNrK3VgRvNhb8VbxWLB4WJb9lOIsXXny4VkroyQzUUHZiKaUYSiD+IR s2og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694635553; x=1695240353; 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=mgnusj9WNYseansm6Kr1sUnhgtykfnbfz9TfjOoUKuQ=; b=mU6lBT4ngu67aBfmB17Dv7pdDmIGCvRpoyX3Z3aYb0d/tPvvxmW2lIDzzB/nTvKiX+ 5tgv+N3ve3fTsCnYkIqMrKZwx85mGyGl11Wj4oMptqx33/Firdq6fdL3iZSxFGm5ZifF 7/OeEQ2XjjeQXSDF6K6CXApMvkR5MMgtZ1e4hid+tA/n4H+9bJlTZOHvWEC4rM9GIlEJ RHElSLFq9QyZIxznkLCJE26+Pm2OhOfPzxy+PgZUYmvnuMDUMUrYf0BlY4oN/MDdpLIZ 2O/DSzLf+Z+rfdZL7tw9RppuoIfoGPRoa795arypEA/butbyK/lSF/cimQPzzmvirzIC G9cQ== X-Gm-Message-State: AOJu0Yz9WbjXAWKQBJ2PAITsX/9d/PEeWU5pcYZo5ZvMezQ1jDSB6zqx 8HPFoD6pQKLfTTfnHHS3qnD6goRWdIXoBCBIeB8= X-Received: by 2002:a05:6870:90d5:b0:1c1:e6da:f88d with SMTP id s21-20020a05687090d500b001c1e6daf88dmr3607766oab.56.1694635553050; Wed, 13 Sep 2023 13:05:53 -0700 (PDT) MIME-Version: 1.0 References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-3-brgl@bgdev.pl> In-Reply-To: <20230913115001.23183-3-brgl@bgdev.pl> From: Andy Shevchenko Date: Wed, 13 Sep 2023 23:05:16 +0300 Message-ID: Subject: Re: [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() To: Bartosz Golaszewski Cc: Linus Walleij , Andy Shevchenko , Ulf Hansson , Paul Cercueil , Harvey Hunt , Miquel Raynal , 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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 13:06:01 -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 lipwig.vger.email On Wed, Sep 13, 2023 at 2:50=E2=80=AFPM Bartosz Golaszewski = wrote: > > 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. ... > * here for older DTs so we can re-use the generic nand_gpio_wait= rdy() > * 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); Why not moving this quirk to gpiolib-of.c? --=20 With Best Regards, Andy Shevchenko