Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4892088rwr; Mon, 8 May 2023 14:27:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JLL3idoaMnJtkktXRFF3bgy5cCsD3lWwA2k3Ks8/vYNfhTF3nLBVw3u4A2Cc/ZsJBkZTh X-Received: by 2002:a17:90a:508:b0:24b:be0c:6134 with SMTP id h8-20020a17090a050800b0024bbe0c6134mr12626459pjh.33.1683581257754; Mon, 08 May 2023 14:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683581257; cv=none; d=google.com; s=arc-20160816; b=SK6NQ7rR+1+aA/J7YrFtuX29iUGOA7tCmQTyWJbccgQq/5s4m1Vn4AU6iOaRaTh8OR B5FtQkXvBXR9C74OdaeAOYYaqZwVoddIF7VYJzn/W5Wnol3AzTSBBlR7oOp8FSF7C/Ev UVFiZMEP3ETsEEqJ1JwnxumqSbqgfoaBnXKHkGIhMX4zZELWZNkQPs2YUZMwQNrX/Aek fKIF0BPTgkWh13vTF/WW2+1/1AbllA/5jrjugOMhPaar+wvB6NIfwnhx01z5AOSYC42A JICH4jO4wv6SNl2IDXFUjaeZda96v2GCI6LqNWl4IJPkXIpi7A6++nKd9aclX0uP4Dq1 1FLQ== 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=7jGQCX8Vl6J+teZGmxFzw1k6uuzeGq3x6M1Mg+KmvWU=; b=zQ2HVMCfSLzfg1gc38ksF3VfQmQmnKKhf4/3YBljBEVFz9X6DhcY7x9cY6Aq9D4gGK CAUsSnQIa7lvwo4yo2+jJdaFeXp8StRrr9VDsFZkHCtOX+xxF4JTNmbr49DwpRjJVP4Y Ts/D4TYik5ervRKU+sEeV1v0ZPYDAxB1d+BHcKpfK6xtmMPR93NHppowP7YPXXXywzvS /4A5ARNvQKEHCthRB1/4Zu5gBneKSCSxA/fgWn+4lZpB8leAIe7x1od8GV49Q8YWxNKh +VxoxtpcGoq25ivFImXU1aIjmdD0J+7a0nhAha7aOXUwyW95kGEBJcKnBurMZQ3xyW60 2wcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I88Y+UwW; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5-20020a170902c18500b001a6eb86e0bcsi8692683pld.294.2023.05.08.14.27.24; Mon, 08 May 2023 14:27:37 -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=@linaro.org header.s=google header.b=I88Y+UwW; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229457AbjEHVX7 (ORCPT + 99 others); Mon, 8 May 2023 17:23:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229764AbjEHVX5 (ORCPT ); Mon, 8 May 2023 17:23:57 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4F7268A for ; Mon, 8 May 2023 14:23:56 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-b9a6d9dcbebso4491625276.2 for ; Mon, 08 May 2023 14:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683581035; x=1686173035; 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=7jGQCX8Vl6J+teZGmxFzw1k6uuzeGq3x6M1Mg+KmvWU=; b=I88Y+UwW/ecdrdJYEYRQu84hQHEaAlwkBoqcY2OuiSC/fZd9XNJTetBoDsbTnL/mhS ZuE4HjGiHTZs634+rfTp1iWzyZKxHdtSgv1t0C8ngfs2JYKt0bUVW/j15pBp6NAhiKGR YKmwGJJP8/qagETAIGdZY8zpYZupX+SXkHtE5vyFWjBqJto4kUrgIwRuXcz+TO0lUGq8 jMoSb6nX6bsJ4RBVQ5uYeqbPfz4tAm1FZBC0TrKwbGYr/DvRxfNR9D2rEu/sfehNSTkM zB4rT2OYkz5xjtBQkWRiDNoPPlQrctV8Ddiw1tEWVD53tZvZTnDKuAro4Tcxf0urL0Ic bzPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683581035; x=1686173035; 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=7jGQCX8Vl6J+teZGmxFzw1k6uuzeGq3x6M1Mg+KmvWU=; b=H+ZnlOPyZnJHT8CsXKxo+geiamcxCcV710VxOknhXURwP+rcQcU6bKgwMUiovX8dip Q23u57xuvZFTu4bhT0c3oVjQdBUdSSd6GZM0FCVNIlpOoiBAVm9q47Al5O7RTmvQpa6M 6J82OTypAPJUXdg2YKvY4uLeK5Wk5JOD6VIsXcqQyuqwEOdTos2ZTFThLGMsXT6wIAEN I7JGkYarGDmD/G3Yyd1VTF2qj8kiB3FVMUI5vmYz91OTpzDq5M5RmhgbGdNkQBxYozIx D/lce83Op3y2kqKtd5e7DzCM9Ylwbb2ZsTNoPFVE4ZFDHr7H29FlyYY5o1KubdMj3xQX ri5Q== X-Gm-Message-State: AC+VfDxrx/BDUFlJldHcwNe3WYZpmAbpi5hKE4NQrYLULoz94CgcTdur Ck8ZAateOUb7+I31E7pPwotFVqRMCNf6R+/bd7Surw== X-Received: by 2002:a25:215:0:b0:ba2:77e:e5f8 with SMTP id 21-20020a250215000000b00ba2077ee5f8mr12026435ybc.1.1683581035348; Mon, 08 May 2023 14:23:55 -0700 (PDT) MIME-Version: 1.0 References: <20230430-nokia770-regression-v3-0-a6d0a89ffa8b@linaro.org> <20230430-nokia770-regression-v3-1-a6d0a89ffa8b@linaro.org> In-Reply-To: From: Linus Walleij Date: Mon, 8 May 2023 23:23:44 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] Input: ads7846 - Convert to use software nodes To: Dmitry Torokhov 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Fri, May 5, 2023 at 8:08=E2=80=AFPM 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. > 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 Yours, Linus Walleij