Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4908123rwr; Mon, 8 May 2023 14:46:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nkyM5+Lt6Hoc9FC5jmM2gZ5MB1nkP6v9oshoxjss/Dqu/QfYxAsOGg2ZyTkKtiSFbiwJy X-Received: by 2002:a05:6a21:1012:b0:ec:8859:7aa7 with SMTP id nk18-20020a056a21101200b000ec88597aa7mr10645412pzb.62.1683582393145; Mon, 08 May 2023 14:46:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683582393; cv=none; d=google.com; s=arc-20160816; b=ex5oz0GbyRGHzGIXi/lyljjuIOOA294G/ZteYIfmdQO6NCdkY33qcoeFmMmSGWqbSC GlElzqWiOTKWfwmLb5fwfIQY0yuxFbN+7NBckpYMzeg9EjIxjlNe9hSCcdNWP0braFfE KVilx2KOQGMYMqe0BLolxF0iAcTgBtmZRkQ8h4QQKZp2v+mNktuCjrwA+a5PyEAPT1ju 3jsEesYcsVeCgebJSdNKlxmG5kWpOmPwH23fXYqhDJEboxmu6v4kZ2CwfjZuav3boole t/ZCdI6SosvKL9I3GLcslnJISg6ee4M/7wn6lhmhzU7FjR641ur8SFUZMRw4FLq8AEy6 9mnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CBp9p/uYaxi06hfRt45Jfs/gvw/XMrWCbWQr51fRckI=; b=dDlbNKlswk5e6P4f/q2kq/cZzhW5jqVT4Hp+qVqLiesPRUW1UGV7odqSzKpkUPzwZM V7Ii/nrAYuJTqHJ6M6tZ8M2nNnS/1MyIT7igzr6RmP7gZwuOxVrkBYu7nt9JBjIKMjaf 0fLOSfLKvZB7kAKKH+C/2qdhUmUV7YU6OsWB/6iLp4FKv3DMIM/IPfkFm1lcEItqwhE0 Ot1CpfGK1/GUg5B/LTfDpdKjLgUJACVs9NMXsDCNTMQLVimZ2lX7NA0qMQ24o8WSYOJ1 O97wi1G5V6QIsS7zyfNNVYVLSCNB3E3MTDPx5eAxJsXYLqKAVl4s3bd9skCz07LQiDcJ inPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=G+jtUkmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o30-20020a637e5e000000b00524b3efc31asi9128183pgn.737.2023.05.08.14.46.18; Mon, 08 May 2023 14:46:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=G+jtUkmJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232692AbjEHV2Y (ORCPT + 99 others); Mon, 8 May 2023 17:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbjEHV2W (ORCPT ); Mon, 8 May 2023 17:28:22 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536461BC9; Mon, 8 May 2023 14:28:08 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-51452556acdso3269664a12.2; Mon, 08 May 2023 14:28:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683581287; x=1686173287; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=CBp9p/uYaxi06hfRt45Jfs/gvw/XMrWCbWQr51fRckI=; b=G+jtUkmJEGKtOIVlB1RLnusjVD7s5WH8jEykBI3T+p3wREB6Hz7cddVts23Rk9aenL XoXxoQOKK5CspEKZ9YgTwXtSX8Ggara9foZC11GZhmPDCJzrWCRYWXSwyubdOXzVSHWM ftnwFgcGAeyMrP1VA51kR5vUlAxFvsbXBQ+ogyCGSfzGTAyTHlc3a85ujRd0nP/Akg+g hUDc8bgPWakGrLPBIdziZpqnPp2aPO6qHtY5LskY1H9Ufzo/7if59XlgnH2qU8lGU7E2 1OSxXrsAUX80sO1KkU8iUVZVxcGQJLG/dBQs3GODDg1tYGRPXThJN5QAfwPxUStfyJZ+ euxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683581287; x=1686173287; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=CBp9p/uYaxi06hfRt45Jfs/gvw/XMrWCbWQr51fRckI=; b=XCV4yPKsTkjV48tAZ6fI6GviEc2eDSzv+vZpX3e8+Hx+GYZrAdT81eQ6iH3PUlxBLM 1YoVSLp8eMFzg0704oxhM212kXZK00N44pK+6XheLb9AbUaWVfR9Jzau3IQPNy+FB1HC SBQtunBpOAH8J7CYblPoOcZLxtqx8/ZuKiVr9SE7OoDKiM4FWYuvImh/n/hmPmtqh2/a Q2KJCzwYieV+up2RO2J/f74BBNZvAkwhhqK5js0e56LSqSAXKUI4JpKSPm/uCRjwUr7n Fqo44hKsKyqjp+nY03nyJHV7b7Q18zhFG212ZPKtodx02QHu3kMHktgEyWgmBbKivOBL IMGA== X-Gm-Message-State: AC+VfDz7XZPFc5h6FgH4GTvAo4zzKvA2hkCYvhg6vMURVWWuLKPu3FxJ LOwqoq2XsMzJ9msajfihzJA= X-Received: by 2002:a17:90a:b401:b0:23b:2c51:6e7 with SMTP id f1-20020a17090ab40100b0023b2c5106e7mr12079044pjr.21.1683581287314; Mon, 08 May 2023 14:28:07 -0700 (PDT) Received: from google.com ([2620:15c:9d:2:4d1:db5a:dbba:cd34]) by smtp.gmail.com with ESMTPSA id g24-20020a17090a579800b0024dee5cbe29sm14992974pji.27.2023.05.08.14.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 14:28:05 -0700 (PDT) Date: Mon, 8 May 2023 14:28:01 -0700 From: Dmitry Torokhov To: Linus Walleij Cc: Aaro Koskinen , Janusz Krzysztofik , Tony Lindgren , Russell King , Daniel Mack , Haojian Zhuang , Robert Jarzmik , Thomas Bogendoerfer , Mark Brown , Bartosz Golaszewski , Andreas Kemnade , Helge Deller , Ulf Hansson , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mmc@vger.kernel.org Subject: Re: [PATCH v3 1/3] Input: ads7846 - Convert to use software nodes Message-ID: References: <20230430-nokia770-regression-v3-0-a6d0a89ffa8b@linaro.org> <20230430-nokia770-regression-v3-1-a6d0a89ffa8b@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 08, 2023 at 11:23:44PM +0200, Linus Walleij wrote: > On Fri, May 5, 2023 at 8:08 PM Dmitry Torokhov > wrote: > > > > - return !gpio_get_value(ts->gpio_pendown); > > > + return !gpiod_get_value(ts->gpio_pendown); > > > > This needs to be > > > > return !gpiod_get_value_raw(ts->gpio_pendown); > > There is no such function. The gpio descriptor runpath simply assumes that > device trees can be trusted. Sorry, this was supposed to be gpiod_get_raw_value(): https://elixir.bootlin.com/linux/latest/source/drivers/gpio/gpiolib.c#L2854 > > > I looked at various DTSes we have and they use a mix of active high and > > active low annotations, so we have to go with the "raw" variant for now, > > and then update to normal one once we update bad DTSes. > > I just sighed and fixed all the device trees :D Yeah, we we can land the DT fixes ahead of the driver change that would be great. Otherwise we need a temporary application of gpiod_get_raw_value(). > > Yours, > Linus Walleij -- Dmitry