Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp656921pxx; Thu, 29 Oct 2020 11:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoFeSjflE8VTjFCpAcrYvqjJjomvvpvxN3X/IDJf0nt7q7j/OVOEawzbUNsUM6Mqg+2DmU X-Received: by 2002:aa7:c955:: with SMTP id h21mr5395293edt.315.1603995120037; Thu, 29 Oct 2020 11:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603995120; cv=none; d=google.com; s=arc-20160816; b=Anda2gX/jEt8qZ2BFBCG01V7ZK2UFXhVrlImIe9iaAPBZSLK0VOzGeggjcUVvGCGBo e+Ir/s0FCcY7jLp0J1KiXXRhZvjj5091eZoT5hjgCWSf6qRdRDuk0sCUyQXXTBRHkYJM /1rlHefUPJurjlEIbvZiCQWZY0iKmMZ/cWRzAgmvXLqdma5eASjeXpfumS4HcjA1U0o8 eBTORuM0fQQf99i5FtihdJo+DFHwcS/9L8wAsJROcncE9qUuW3A8G1EPVDQF1gu8ibt8 BRj8NqUvMvKdZzrhY6/RE4IMgVOWU0E0RixYsqwTAcrVkZiD/Bj01gWIzFRK4BCj1X0n afpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=mBUzc9CK7MUBRWLylSHpe2XD8BDUPf6CGZ/koJbns3c=; b=mkbhPrzXngX48A/ZZEqueVSdeaS3/VjRsCW0G/PJKz6RH4Uzo87O7rP4njlW91sFft zKYbP7V+agM8BOHLqFp9tjBr4A5gjGnfLEqFSQ4Rf9KLBoxLmvmxK/7xt/dCi9oEzOud 7F+GC7kUdIJM82lFba4Kk4lIcTz+nUiMrpJcXUpJDCtPxJ5dbzv3jiOrKjFmyExrzMmT AE5Qce0ZGiAfWR1il9olaIGTzibVJfuRyoyz9N3dcWmXdjBFYiTyxv7WZF1sv5hFJckP TwuWKVUPqY43L4TrApb9GYfIu4q6MtV6c/d2mR3BOPS7J0vikAWWAkgp3JpFAqEg5xEP nc2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qYyU4vJ7; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o6si3777755edi.562.2020.10.29.11.11.32; Thu, 29 Oct 2020 11:12:00 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=qYyU4vJ7; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725933AbgJ2SJ5 (ORCPT + 99 others); Thu, 29 Oct 2020 14:09:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbgJ2SJa (ORCPT ); Thu, 29 Oct 2020 14:09:30 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F423C0613D3 for ; Thu, 29 Oct 2020 11:09:00 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id x203so3927441oia.10 for ; Thu, 29 Oct 2020 11:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mBUzc9CK7MUBRWLylSHpe2XD8BDUPf6CGZ/koJbns3c=; b=qYyU4vJ7lIMZB7mVlFC8g9vfsaKue73KJZYbT2ipvTyGxqr3B/Pb1WNfZNCWp0Rz2n VySxQ/9rUoMGieDNBPR/H7OukAl2dCnpp+LkP0WmGeVdsA/J/GGB0HBPRbVGd9fr7Rtl CmPB5S/6/sPoolazQBJWrQiD+/paaFMs2uinPNEs3upQeFEnxKygeOe0XcNsN/fseBhK Kg/0gT4sTYKG70U2nwMGDEGWRlslBuLc4g1XUqy4rP/4jo20J0RqifYGfFEpjmVmi79h 04yfpBFIJk15QqwCC/63x1BEpKt5Odj82zoSfDUJoXUVt4gKQ6/S5Zzhj6FNTJBvxEzQ mL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mBUzc9CK7MUBRWLylSHpe2XD8BDUPf6CGZ/koJbns3c=; b=Cbw6FWjZnTHnbsU4HIvZmAmPH4eGDka+qctGRry5r3Li3GZDq/DXSvPWerUeZ6CTZD apfdleDXVp+NMpiUFAijrIHe5CxsLIx5JhZhmLpmtHbA3mGLW3TTI8aYZS6hCw1hj8yV e18tahytRq+yP4mjQQeltKttXyfbbCbHYdYRDdTv0zT7EmUuWj10Zx8m22CeSOzNP0cT SncHbgaX5WJvoFFcr4D6mIhsTAs45pDoqTl72XTIWm34JWRaqT2MPaBR6RMViSSZeGPy UMX1bcUllQQmBepvOuTvCZiTCPLX5qOgFjxDLt0Vw5us5bm8zoL0dZ0afHecmXwVf9kA 3zCA== X-Gm-Message-State: AOAM533H0oIOGEsnTxY0cAsA6jqQx7Ce7EkECOYrRVUnBqMeKKKVSzLU BGvP+oZLLr9sP9TJFiOKyOlVDa4PcNGFDwG8rTqZHA== X-Received: by 2002:aca:3442:: with SMTP id b63mr321446oia.15.1603994940142; Thu, 29 Oct 2020 11:09:00 -0700 (PDT) MIME-Version: 1.0 References: <20201028171757.765866-1-ribalda@chromium.org> <20201028182744.GZ4077@smile.fi.intel.com> In-Reply-To: From: Ricardo Ribalda Date: Thu, 29 Oct 2020 19:08:47 +0100 Message-ID: Subject: Re: [PATCH] gpiolib: acpi: Support GpioInt with active_low polarity To: Andy Shevchenko Cc: Andy Shevchenko , Mika Westerberg , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , ACPI Devel Maling List , Linux Kernel Mailing List , Tomasz Figa Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding Tomasz in CC in case he wants to share more info about the device. On Thu, Oct 29, 2020 at 6:31 PM Andy Shevchenko wrote: > > On Thu, Oct 29, 2020 at 5:37 PM Ricardo Ribalda wrote: > > On Thu, Oct 29, 2020 at 3:38 PM Andy Shevchenko > > wrote: > > > > > > On Wed, Oct 28, 2020 at 06:17:57PM +0100, Ricardo Ribalda wrote: > > > > On the current implementation we only support active_high polarity for > > > > GpioInt. > > > > > > > > There can be cases where a GPIO has active_low polarity and it is also a > > > > IRQ source. > > > > > > > > De-couple the irq_polarity and active_low fields instead of re-use it. > > > > > > > > With this patch we support ACPI devices such as: > > > > > > Is it real device on the market?! > > > > Yes, it is a chromebook. > > You mean it's already on sale with this broken table?! I do not agree that it is broken. It follows the current standard ;) > > > > This table is broken. _DSD GPIO active_low is only for GpioIo(). > > > > AFAIK the format of the _DSD is not in the ACPI standard. We have > > decided its fields. (please correct me if I am wrong here) > > _DSD is a concept that is part of the spec, but each UUID and its > application is out of scope indeed. > > GPIO application to _DSD is described in the in-kernel documentation. > Thanks for pointing out the issues it has. > > > On the other mail I have described why we need to make use of the > > active_low on a GpioInt() > > > > If there is another way of describing ActiveBoth + inverted polarity > > please let me know and I will go that way. > > I answered it there, please, continue this topic there. > NAK to the proposed change. > > > > If it is a ChromeBook, please fix the firmware. Lets agree what is the best way to describe in acpi my usecase and I will implement it. > > -- > With Best Regards, > Andy Shevchenko -- Ricardo Ribalda