Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3788946rdb; Thu, 14 Sep 2023 02:39:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFm8paaV86BSLAwHF4A4PKltedhEca9B20jXCgC5zwUwfZFEG8HtHmYuNDo5zht1l69Vteo X-Received: by 2002:a17:902:d384:b0:1c1:e818:1e76 with SMTP id e4-20020a170902d38400b001c1e8181e76mr1705866pld.6.1694684398422; Thu, 14 Sep 2023 02:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694684398; cv=none; d=google.com; s=arc-20160816; b=FR9FFXgRN8RABQNxcC8WMiNN2iwmyOTxqBzPozJQypoNaLPt91v8nkHKoYKE6hzQ3W WB3597NR6e1cCUcdQB6En3Qyavsfq0wjkYf2QpB1Oyx5mbzs+4zuS/6k4Up4O7KABxPo tKTVVXV+FaK/R70iFBT1YY9i1iQ2FU+4miqx5PU5hPZHgTy4offEH6askw5hmv7gyG2p VRVacFMLXn7AUxBNy3srKrhXVrulj5rBX2JeS0I2n6SyLLDF0a81QUjRmvHiq0dbTH16 uiqOKRlrmip6WiBl3GsPeWvsZUiPV4dDDjl2z8DMxsEM6N3k7EfBcdkYJdLJncvJFLjz Qt4A== 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=p2ppFbBJ6eSrXngOvBl4Cb6zXMC/U2RNI6NUtLKD4qk=; fh=i/+vhqvP086WMT44Fm4T1BkZa1zvcgbCGRa1PIiHvFs=; b=SdXdpsHdzozlgdEtef3BD/rOTcUydov3yLTsDD9IucuJRuS3b3TxY3CNpK+XojoSGf GiGGVIHk28iTz2Q0w+VbdYZx42BHC2r0fZTSaNqSrXDN1EhnEBCsF4DFJTM3aGpdelll cCUcbZno6wxm6VACtsfxVd8bwK9Y4AlBfwVvOjn9jbDhRC5Yzhv0oY6XE2AX9AvgqaAy sl8nqBmEolVl/cBTfCyVAVUZG74g73a3xzMK0QYzGWf4zDJIB8HxMInNTZZsXNnn/sOF Z2HBhXKMUVQXnWuiKS5oBVxy6XLZnSdAHuYmes/ImXsu0ig1odohqOISmHopJbdecI3Y xK1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=A5qFBXPu; 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 Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id kt11-20020a170903088b00b001bf0b29d935si1271225plb.34.2023.09.14.02.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 02:39:58 -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=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=A5qFBXPu; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 69EF7807C564; Thu, 14 Sep 2023 02:30:25 -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 S235913AbjINJaU (ORCPT + 99 others); Thu, 14 Sep 2023 05:30:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236923AbjINJaS (ORCPT ); Thu, 14 Sep 2023 05:30:18 -0400 Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C039CF3 for ; Thu, 14 Sep 2023 02:30:14 -0700 (PDT) Received: by mail-ua1-x933.google.com with SMTP id a1e0cc1a2514c-7a512434bc9so1217265241.0 for ; Thu, 14 Sep 2023 02:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1694683813; x=1695288613; 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=p2ppFbBJ6eSrXngOvBl4Cb6zXMC/U2RNI6NUtLKD4qk=; b=A5qFBXPuNfXapaDc1ES++K3Rar679LuNluYnHoBx4L14PSGbpK9ddRuMsWEoL7+Vee lP3zM0IkQoM8uljFn+F4dbxumEu0ueiQgIq9/W4yvjXJM33GBy2/1L1yjrM4Ln5c1IZH AvjAeo+h+ZuaKdmy0Aklm3m5XRVm0RyOmpTqwzRjoOOvstR1lQrb7r0vCkO3gmp/t5ie l4wOVi6LbbOIoZGzd8Tv1Kim6pHPelF41P8+6SMPS5JV7ghq4kdx3Tftj/XGv/Jdwapd IViDH4k83ORDqoNusi2GSdur//QOznyHDy7gZZR53WsNi0YeTMyYeWlNVgAO0l06PIfc 0pZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694683813; x=1695288613; 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=p2ppFbBJ6eSrXngOvBl4Cb6zXMC/U2RNI6NUtLKD4qk=; b=OZ5vl2Wnk7wZ7bjWqsqflJFxQrfLESWdBvEaND9BJD04HHSOXuYt/E4VzFS4o0y0Bc hKJ9aFGmxxz5xkVTpbxaKABb8r3YqC/8pv62ksHzQ4bqb8meClQGGoQgf11GIbYbVD1b 5oPhRgrcxnRvjUlui8dqKjA2qLykljAXE8Ul/Q1NzeCSn2Wv7xlTklCSPz5MQaRAYeKN l+KFsoESx3ek/JwijjVzazj+3BklhEq0k0O7k53xTzb6Y/iFyhdqAana5mARNzYGEfUW +44tClqTmd+E0Ag1YKQe3eetIR8dFwVYYmkf9gnxIAi5UxKaUtlJbY3Cmtq/GhNyLfzN wd7g== X-Gm-Message-State: AOJu0YxfpNBOTZOiXQSgRBrqfBLHcvXTtgdOsPj7plkn5HiH34xDn2Qf oOdVxKkIceKvNheGSk3wJfLpXnwyJ5nqzYY2yTT0IA== X-Received: by 2002:a05:6102:3169:b0:450:6ef1:e415 with SMTP id l9-20020a056102316900b004506ef1e415mr582724vsm.13.1694683813313; Thu, 14 Sep 2023 02:30:13 -0700 (PDT) MIME-Version: 1.0 References: <20230913115001.23183-1-brgl@bgdev.pl> <20230913115001.23183-3-brgl@bgdev.pl> <20230913222338.07d1625b@xps-13> <4de724a1630eda74f4f304dc224dc981eb3b0875.camel@crapouillou.net> In-Reply-To: <4de724a1630eda74f4f304dc224dc981eb3b0875.camel@crapouillou.net> From: Bartosz Golaszewski Date: Thu, 14 Sep 2023 11:30:02 +0200 Message-ID: Subject: Re: [PATCH 2/5] mtd: rawnand: ingenic: use gpiod_set_active_high() To: Paul Cercueil , Linus Walleij Cc: Andy Shevchenko , Miquel Raynal , 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 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 02:30:25 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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:30=E2=80=AFAM Paul Cercueil wrote: > > Hi, > > Le jeudi 14 septembre 2023 =C3=A0 10:02 +0300, Andy Shevchenko a =C3=A9cr= it : > > 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. > > Which Linus? Because the one who's also the gpio maintainer just wrote > above that it was better to keep it in the driver. > I'm also under the impression that Linus meant moving it to gpiolib-of.c. L= et's Linus: Could you clarify? Bart > Cheers, > -Paul > > > > > 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. > > >