Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3920320pxk; Tue, 29 Sep 2020 09:24:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4W9nV2IaGKRi3Yn3svmo/xsdViFXxhzWyDvNF0XoQOwCl7Y0pTPK/k258b7JZTFFCIQyo X-Received: by 2002:a05:6402:1d03:: with SMTP id dg3mr4054717edb.249.1601396654465; Tue, 29 Sep 2020 09:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601396654; cv=none; d=google.com; s=arc-20160816; b=SYZ5iWgeA7/ZpzJRnQIFoMshql8MXRyxOxAoTt9SD9hwtMxmPJUmAKyZnIEYfzScYb k9R+85L+U5haCmVhDxyt1J2WdyhRsGggmf2BaB22OBBAMovFVsaeQvxYzr/Ln8dbqfmW GtXmC2fQa94Mnjn755XNQw90ilh7sSmYjHY1VY4WxBBdEX87WMRnoKzDNDR75btgzsXy 0/9jcuxBIxWRiZsMqGPl6jqHwsyAL82uwdDRVLYFkJi4UKmmw/onulJeS4FmtKMny+OO JpFP/CpLDIRRJan9CSO9YtY735E+lKsw2zb+wBKPIScQkMTZQ/aUXPty3yc32ersiOJ6 aSyA== 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=STW4qfY+toGRvJzGte0prV0lryauNJw47pPU/hH2rkc=; b=L0ZZDqNHFCnuEchu33Y/+SkxJH18DuF0RXbxNu3W7AYftkT1oJWeGm2FGuGZgHDMDR lNN74+OHkWtv+44CMgZm0TTiia5cQf/pWURG/ajxXpGTN5cE6mpzFF/XeTFAmvKt89rf ByEmfs/M+ZoLEMSJrT352SvBZTq+B7OY2/ToIkyDzbE2rjOHW+gPCjd94zA2a9eWq2Mo PDPutPDfb+wUZDfKqwXB/5t0i8UVkeat1z3m7G+zoBz15BOZoA/c8XBxCrWC6B9fnSk3 +HMMqmk2zEMgVBAMgRJvvQu3Nll9/Dj9nv4qdymAnhP43Z7izOVJrAmqRLTqekU70Tqq LlrQ== 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 a15si3321410eju.615.2020.09.29.09.23.50; Tue, 29 Sep 2020 09:24: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 S1728571AbgI2QVq (ORCPT + 99 others); Tue, 29 Sep 2020 12:21:46 -0400 Received: from smtp.asem.it ([151.1.184.197]:57393 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgI2QVq (ORCPT ); Tue, 29 Sep 2020 12:21:46 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 6.5.2) with ESMTP id SG000512618.MSG for ; Tue, 29 Sep 2020 18:21:39 +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:21:38 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1979.003; Tue, 29 Sep 2020 18:21:38 +0200 From: Flavio Suligoi To: Andy Shevchenko , Bartosz Golaszewski CC: Andy Shevchenko , "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//91o0A== Date: Tue, 29 Sep 2020 16:21:38 +0000 Message-ID: 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.0A09020C.5F735F12.008F,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 SGkgQW5keSBhbmQgQmFydG9zeiwNCg0KPiA+ID4NCj4gPiA+IEkgbmVlZCB0byBleHBvc2UgdG8g dGhlIHVzZXJzcGFjZSBhIEdQSU8sIHBoeXNpY2FsbHkgY29ubmVjdGVkIHRvIGENCj4gYm9hcmQN Cj4gPiA+IHB1c2gtYnV0dG9uLiBUaGlzIEdQSU8gbXVzdCBleHBvc2UgYSBwcmUtZGVmaW5lZCBu YW1lLCBzdWNoIGFzDQo+ID4gPiAidXNlci1wdXNoLWJ1dHRvbiIsIHNvIHRoYXQgdGhlIHVzZXJz cGFjZSBhcHBsaWNhdGlvbnMgY2FuIHVzZSBpdA0KPiB3aXRob3V0DQo+ID4gPiBrbm93IGFueSBw aHlzaWNhbCBHUElPIGRldGFpbHMuDQo+ID4gPg0KPiA+ID4gSSBjYW4gY3VzdG9taXplIHRoZSBi b2FyZCBCSU9TIGFuZCBzbyBteSBnb2FsIGlzIHRvIGFkZCBhbiBBQ1BJIHRhYmxlDQo+IHdpdGgN Cj4gPiA+IGEgY29udGVudCBsaWtlIHRoaXM6DQo+ID4gPg0KPiA+ID4gLi4uDQo+ID4gPiBTY29w ZSAoXF9TQi5HUE8xKQ0KPiA+ID4gICAgICAgICB7DQo+ID4gPiAgICAgICAgICAgICAgICAgRGV2 aWNlIChCVE5TKQ0KPiA+ID4gICAgICAgICAgICAgICAgIHsNCj4gPiA+ICAgICAgICAgICAgICAg ICAgICAgICAgIE5hbWUgKF9ISUQsICJQUlAwMDAxIikNCj4gPiA+ICAgICAgICAgICAgICAgICAg ICAgICAgIE5hbWUgKF9ERE4sICJHUElPIGJ1dHRvbnMgZGV2aWNlIikNCj4gPiA+DQo+ID4gPiAg ICAgICAgICAgICAgICAgICAgICAgICBOYW1lIChfQ1JTLCBSZXNvdXJjZVRlbXBsYXRlICgpDQo+ ID4gPiAgICAgICAgICAgICAgICAgICAgICAgICB7DQo+ID4gPiAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIEdwaW9JbyAoDQo+ID4gPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIEV4Y2x1c2l2ZSwgICAgICAgICAgICAgICAvLyBOb3Qgc2hhcmVkDQo+ID4gPiAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIFB1bGxOb25lLCAgICAgICAgICAgICAgICAvLyBObyBu ZWVkDQo+IGZvciBwdWxscw0KPiA+ID4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAw LCAgICAgICAgICAgICAgICAgICAgICAgLy8gRGVib3VuY2UNCj4gdGltZW91dA0KPiA+ID4gICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAwLCAgICAgICAgICAgICAgICAgICAgICAgLy8g RHJpdmUNCj4gc3RyZW5ndGgNCj4gPiA+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg SW9SZXN0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