Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp275397rwd; Wed, 24 May 2023 18:09:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xdXuxAvpBOpU88B9NLBexQMzkcVVW7Ba2yRLCPo8DRUMVSfg/n/9tu0v3OyqLgAUzfKTF X-Received: by 2002:a05:6a20:5483:b0:10b:e90d:13a2 with SMTP id i3-20020a056a20548300b0010be90d13a2mr12860031pzk.36.1684976967567; Wed, 24 May 2023 18:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684976967; cv=none; d=google.com; s=arc-20160816; b=kr3yp7JgQN0TOSegjQGBpNN0jQEtKGLG8lZD0pgIZ1C0O4/pl5SJhONzp+R8dVotMY OGRIlo/2uwQhlBydLyED5pkDafXyWPQEn2pHiuneKQmjDKvT17dXvtt4m0n+6AqX1gjB MbL+8cN5774oGBjsXF1nkWF9Dr5nbDSrPBclHgL7HWEH6mGza7KzpURvLyepAYbFqQq6 d9OZnRjTOUHB97H3qwfkdaRzQ5k+IBxRJWvZFP1Ceufeys0tAmF15DXybKQsHpA/+SAc rQTaVqsmmkPe5yFHMvSoFsCoRDInZ5RKV46Wq2pnpksmWDhoqnUkeNExZQU8ze2n5YYO SWVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=aZBFDPi6Djr1Z9fNprDllT8CaCwGkXUfyrN/ij0abtg=; b=Z8VE1vlTyTk+Y0/RxhUr1xKKlzYaYSct2fd450236x8CjSOI9xTrQ0HYle/5vWNVWt rooGB3nEYHUCHRKyXsXAYL9zOsFTtjsoyIh8N8zuN3hrtbCMhNIwFWLlr6O1qOsc6MP1 C9hAoIvtT4kcLH6bodywEU8vja4iyfurcLXQA7jqQnO0td2qu0RH7ClWGEliaqssIImB Bh9ECoQxAGLBS3WD8ihELC6OGZuopGXYPORW5hThKh1uavZU8HhzriBAWHpLdLXRH58k 8r+lSbhwJ5QarT3FZMpECz7Q78QMAmL0V47hsD62HjLU+wN/zBjZpVbwaKSgI9JUi/q+ CpNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alliedtelesis.co.nz header.s=mail181024 header.b=X9h4vst3; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g19-20020a17090a579300b0024dfb95d54csi241756pji.177.2023.05.24.18.09.10; Wed, 24 May 2023 18:09:27 -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=@alliedtelesis.co.nz header.s=mail181024 header.b=X9h4vst3; 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=QUARANTINE sp=REJECT dis=NONE) header.from=alliedtelesis.co.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229527AbjEXXxS (ORCPT + 99 others); Wed, 24 May 2023 19:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjEXXxR (ORCPT ); Wed, 24 May 2023 19:53:17 -0400 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [IPv6:2001:df5:b000:5::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFE1C99 for ; Wed, 24 May 2023 16:53:14 -0700 (PDT) Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 4161E2C02E0; Thu, 25 May 2023 11:53:13 +1200 (NZST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1684972393; bh=aZBFDPi6Djr1Z9fNprDllT8CaCwGkXUfyrN/ij0abtg=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=X9h4vst3O31GQP4+gnv/vWTL+PUiulzZxWzXWQZckNMLagdTlrjekDkoB0WDk5tQd LBV8pJKzspaXnB2Rc99717UeteMvbEAR2aQqKvjD0VfMIEh7ESSb1QGwRy2qZNcmvh KxxZd4uGboFEQq9/B2dV0JilUE6d0KmzQ4HMA4R/qyOCWh+WH8VHUZSbakGAn9st03 hWML25L6QfDJwkyjOEdHlrO6YAHMWfjT0JeC9UvxmHA4DqR2gFTv0Z2Wb7eqvJouDd jhdw41ef0WdZZsYElfbLm7c6SDER1telMy8CI7MgXnoOzsHi/3xO7pfW3kSaZQaNe2 4jU+xHEZOGPXw== Received: from svr-chch-ex2.atlnz.lc (Not Verified[2001:df5:b000:bc8::76]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 25 May 2023 11:53:13 +1200 Received: from svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) by svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1118.26; Thu, 25 May 2023 11:53:13 +1200 Received: from svr-chch-ex2.atlnz.lc (2001:df5:b000:bc8::76) by svr-chch-ex1.atlnz.lc (2001:df5:b000:bc8::77) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 25 May 2023 11:53:12 +1200 Received: from svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567]) by svr-chch-ex2.atlnz.lc ([fe80::a9eb:c9b7:8b52:9567%15]) with mapi id 15.02.1118.026; Thu, 25 May 2023 11:53:12 +1200 From: Chris Packham To: Kent Gibson CC: "andy.shevchenko@gmail.com" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: using libgpiod to replace sysfs ABI (was Re: [PATCH] gpiolib: Avoid side effects in gpio_is_visible()) Thread-Topic: using libgpiod to replace sysfs ABI (was Re: [PATCH] gpiolib: Avoid side effects in gpio_is_visible()) Thread-Index: AQHZjprmqsS+N7nfWEWkADlDhs1wpA== Date: Wed, 24 May 2023 23:53:12 +0000 Message-ID: References: <72990baf-6964-01ad-d891-7090831d0310@alliedtelesis.co.nz> In-Reply-To: Accept-Language: en-NZ, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.33.22.30] Content-Type: text/plain; charset="utf-8" Content-ID: <7DEA3330C4909344AE981403CE311017@atlnz.lc> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SEG-SpamProfiler-Analysis: v=2.3 cv=cLieTWWN c=1 sm=1 tr=0 a=Xf/6aR1Nyvzi7BryhOrcLQ==:117 a=xqWC_Br6kY4A:10 a=75chYTbOgJ0A:10 a=IkcTkHD0fZMA:10 a=P0xRbXHiH_UA:10 a=pGLkceISAAAA:8 a=go7DDdlL3tKfwstDA4MA:9 a=QEXdDO2ut3YA:10 X-SEG-SpamProfiler-Score: 0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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.monk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