Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3912437pxk; Tue, 29 Sep 2020 09:13:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvQknAUes8qHPfjuni/cAmScXbgi191ksarcuElfgVW7smGRlxJeROAc07tEFIJcI2NVP0 X-Received: by 2002:a17:906:fcc7:: with SMTP id qx7mr4903690ejb.254.1601395994604; Tue, 29 Sep 2020 09:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601395994; cv=none; d=google.com; s=arc-20160816; b=erd4dEfXUDZx2kdGhzPzW7+5KomaA7NpvOYp417rlfck/NwDDgVAraZjnF6J5R0cbX VVSqtNHHevtzk8vvbb33xVYr27HUq0NnLSHZ6Tb7kRyvXfAEiE6Pi4ozDz4/mFaAHtdi 0jXB4CC8DS0Nf+YY056Ng6gxnn1LzBoeUVvCgsGSH03uoL7xAAZJq3VufZSj+0Qa4Pfd +ajUSYhdC5tYwb0Ne7anii0rWIVc5002frzfKO1JaYphnHMIk+PvquPpxnjt5k8t5yTj wLWdG2UcRji67UuMsjkuyLjnspojbUYsNgJvMEH6xzBzlLmGr/HOHZBkAVRcVWzCMfC8 cYFw== 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=F/WFcjRHvScDbr3lt78gTS0oR0DdaJwcWuFBo+mQExw=; b=WDLHzgurq4iNa31VsYqjRAS1GyOAJkCfz9DGZmf4klHN1l8jj6Sfa4ViyoMmsSMuGo lBOwsCh0j7K2Qpl2ystx+1zI9QlV3uloy8Ql/1T/+qyRx4cnFJJhtXSRRmpjzw9M00pK xfACRmgKum0hpEPRz5DkWZM6/a8ExtGwTxuAzQX8SeTpP50ejji4DHAWprKpPtdRFrkN 6ACPU+5st3yerzzTLyeO5FHX1ImD4/yh6JH7u8InnMFTNf2PoiTeSMTJgvn6cQzPITzq KKGeJesOKJtro09eBTi0ZGK/D5F3GZb7vEWDfX1yj54FosMgI/os4eEqQ5d2cmqxVcYE RB+g== 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 h17si2999830ejq.747.2020.09.29.09.12.49; Tue, 29 Sep 2020 09:13:14 -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 S1729528AbgI2QLB (ORCPT + 99 others); Tue, 29 Sep 2020 12:11:01 -0400 Received: from smtp.asem.it ([151.1.184.197]:59429 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725497AbgI2QLB (ORCPT ); Tue, 29 Sep 2020 12:11:01 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 6.5.2) with ESMTP id SG000512599.MSG for ; Tue, 29 Sep 2020 18:10:54 +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; Tue, 29 Sep 2020 18:10:52 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1979.003; Tue, 29 Sep 2020 18:10:52 +0200 From: Flavio Suligoi To: Bartosz Golaszewski , Andy Shevchenko CC: "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//4UoA///YULA= Date: Tue, 29 Sep 2020 16:10:52 +0000 Message-ID: <43a2499484c2435eae63fe372f9b7b17@asem.it> References: <9152bb8be33e4192a7766eb53c6ca9af@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.0A090210.5F735C8D.001A,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 SGkgQmFydG9zeiwNCg0KPiA+IEkgbmVlZCB0byBleHBvc2UgdG8gdGhlIHVzZXJzcGFjZSBhIEdQ SU8sIHBoeXNpY2FsbHkgY29ubmVjdGVkIHRvIGENCj4gYm9hcmQNCj4gPiBwdXNoLWJ1dHRvbi4g VGhpcyBHUElPIG11c3QgZXhwb3NlIGEgcHJlLWRlZmluZWQgbmFtZSwgc3VjaCBhcw0KPiA+ICJ1 c2VyLXB1c2gtYnV0dG9uIiwgc28gdGhhdCB0aGUgdXNlcnNwYWNlIGFwcGxpY2F0aW9ucyBjYW4g dXNlIGl0DQo+IHdpdGhvdXQNCj4gPiBrbm93IGFueSBwaHlzaWNhbCBHUElPIGRldGFpbHMuDQo+ ID4NCj4gPiBJIGNhbiBjdXN0b21pemUgdGhlIGJvYXJkIEJJT1MgYW5kIHNvIG15IGdvYWwgaXMg dG8gYWRkIGFuIEFDUEkgdGFibGUNCj4gd2l0aA0KPiA+IGEgY29udGVudCBsaWtlIHRoaXM6DQo+ ID4NCj4gPiAuLi4NCj4gPiBTY29wZSAoXF9TQi5HUE8xKQ0KPiA+ICAgICAgICAgew0KPiA+ICAg ICAgICAgICAgICAgICBEZXZpY2UgKEJUTlMpDQo+ID4gICAgICAgICAgICAgICAgIHsNCj4gPiAg ICAgICAgICAgICAgICAgICAgICAgICBOYW1lIChfSElELCAiUFJQMDAwMSIpDQo+ID4gICAgICAg ICAgICAgICAgICAgICAgICAgTmFtZSAoX0RETiwgIkdQSU8gYnV0dG9ucyBkZXZpY2UiKQ0KPiA+ DQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgTmFtZSAoX0NSUywgUmVzb3VyY2VUZW1wbGF0 ZSAoKQ0KPiA+ICAgICAgICAgICAgICAgICAgICAgICAgIHsNCj4gPiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgIEdwaW9JbyAoDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICBFeGNsdXNpdmUsICAgICAgICAgICAgICAgLy8gTm90IHNoYXJlZA0KPiA+ICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgUHVsbE5vbmUsICAgICAgICAgICAgICAgIC8vIE5vIG5l ZWQgZm9yDQo+IHB1bGxzDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAwLCAg ICAgICAgICAgICAgICAgICAgICAgLy8gRGVib3VuY2UNCj4gdGltZW91dA0KPiA+ICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgMCwgICAgICAgICAgICAgICAgICAgICAgIC8vIERyaXZl DQo+IHN0cmVuZ3RoDQo+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBJb1Jlc3Ry aWN0aW9uSW5wdXRPbmx5LCAgLy8gT25seSB1c2VkIGFzDQo+IGlucHV0DQo+ID4gICAgICAgICAg IC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