Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1189146pxk; Fri, 2 Oct 2020 03:30:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEdlxDLrWGgHcOKya4qo2eAjWKJT+m3us8XyWeFYViEc8tSvdRi8HQRjXthdP5KIRb7CPj X-Received: by 2002:a17:906:68cd:: with SMTP id y13mr1529101ejr.132.1601634602571; Fri, 02 Oct 2020 03:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601634602; cv=none; d=google.com; s=arc-20160816; b=yGHzg3vCp6SQkmvF26ZCR/8rumjJB9y9pW9GCSxdiaa6es5C8zWglIYWLktaYt3tHj l/7wX7zCRq6e+/UZUjdfWQ7VRqAIpPA5O4/UhTF10vSCI0L/Ypuuxm9U/uNkvwpD7hjD l7opMihVSLYmuYMzWzEHyQGMDRDg4AV9vTqtOxOVPmR7hfna7xwRju8s5nD8WOeO6tIX 3TRRh+23RDivWTWmu2c1P/ZBmjeyWHE0hRKfRhlHFRcfgaNaZzjc6hfIk9TzBH/vxYxT BmMhgCVSMPhk6S1oMOUbaj8FesECstfH38LWaFHDlBm2hrIUpqwJB+IslaVJZrmLdhz7 szTA== 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-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=DrzsjIS4+t3OuOcwEsAvT5rttGlULR+Ppz2iJrVralc=; b=wfcfgYAVlX8x7M95f0BRVSPiKX/TYYfAWfiVNYs2LW9sMGDtjISP7ShqgI/W7pnJIe xG05qd+cvkakfRFtSCWrzkgBoE5rGJ8+KvxGQO9YRHeg3jvkl64prnDPNluEsIpnx144 2gfyRsnirihUZOsLDxHSEONToqPWZIkBNA5IHoKUbNYQiZy4LJO/EV0W9tZiK1VdwhZI MBOZMrg97UZ/+oHe4RcdoZROmCh4WCkRAD323ocomJAob7FSRk6w91xtJwrPcv1Xashk XSxwLFPM7L1/rOYE+GI++mmfDsAWxOFqkfpqrg0W27EnSeQFmL+e6fWCoFjZ24lUJb5H w6uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=asem.it Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si788935ejf.387.2020.10.02.03.29.39; Fri, 02 Oct 2020 03:30:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=asem.it Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387712AbgJBK0U (ORCPT + 99 others); Fri, 2 Oct 2020 06:26:20 -0400 Received: from smtp.asem.it ([151.1.184.197]:58127 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbgJBK0U (ORCPT ); Fri, 2 Oct 2020 06:26:20 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 6.5.2) with ESMTP id SG000519847.MSG for ; Fri, 02 Oct 2020 12:26:14 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 2 Oct 2020 12:26:12 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1979.003; Fri, 2 Oct 2020 12:26:12 +0200 From: Flavio Suligoi To: Andy Shevchenko CC: Bartosz Golaszewski , "linux-gpio@vger.kernel.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: How to use an ACPI declared GPIO in a userspace ... Thread-Topic: How to use an ACPI declared GPIO in a userspace ... Thread-Index: AdaWdniTedAZ6+9wQdyYYgE5sQ27yP//4UoAgAAGTYD//91o0IAAJ14A//6Yg1CAAsA0gP//s0vAAA+m6wAAAI1qgP/9IHKw Date: Fri, 2 Oct 2020 10:26:11 +0000 Message-ID: <8b6adbc45d134da7b0fd1f9044a37cf6@asem.it> References: <9152bb8be33e4192a7766eb53c6ca9af@asem.it> <22753b53cd7d4dfba4ef3610f71cc462@asem.it> <20200930130113.GQ3956970@smile.fi.intel.com> <2c26adae711145639d0b982a354aff3c@asem.it> In-Reply-To: Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.17.208] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A09020E.5F770044.0078,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQW5keSwNCg0Kd2l0aCBteSBjdXN0b20gU1NEVCB0YWJsZToNCg0KRGVmaW5pdGlvbkJsb2Nr ICgiZ3Bpb19idXR0b24uYW1sIiwgIlNTRFQiLCA1LCAiQVNFTXNwIiwgIkdQSU9fQlROIiwgMSkN CnsNCglFeHRlcm5hbCAoX1NCXy5HUE8xLCBEZXZpY2VPYmopDQoJU2NvcGUgKFxfU0IuR1BPMSkN Cgl7DQoJCURldmljZSAoQlROUykNCgkJew0KCQkJTmFtZSAoX0hJRCwgIkFTRU0wMDA1IikJCS8v IF9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