From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61B20C433EF for ; Mon, 1 Nov 2021 19:16:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4998760FE8 for ; Mon, 1 Nov 2021 19:16:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232541AbhKATTR (ORCPT ); Mon, 1 Nov 2021 15:19:17 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:22835 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232505AbhKATTO (ORCPT ); Mon, 1 Nov 2021 15:19:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635794200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vPxF4UHOaFrwq4ubL6S9n5LY4w6t78aRQ2QSJla2WzE=; b=iHQc0ylCsYQHM/YZ7Inan+C4Pk4Fnbh5MG1f3xQEYDQvhBsF4lSefP5cyYx0KPI4IOyyR2 XK7eQXFkfEjjFgldYSav7JiocdeWItKBlookSjnmvotZENYOKIhpLZ8iaoTc59Er3ZQGoy KGLL3G4i6nrTqS7GF2daqNeccs23gY4= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-388-5K2zDSovPCCJbU-kozz2pA-1; Mon, 01 Nov 2021 15:16:39 -0400 X-MC-Unique: 5K2zDSovPCCJbU-kozz2pA-1 Received: by mail-ed1-f72.google.com with SMTP id d11-20020a50cd4b000000b003da63711a8aso16425663edj.20 for ; Mon, 01 Nov 2021 12:16:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=vPxF4UHOaFrwq4ubL6S9n5LY4w6t78aRQ2QSJla2WzE=; b=iwov6mxL65hQ1ZmA/vg+2ILUfzzKAmkP2o6jLjeGPZpo/ywObrT8WC5ROZ9ImnIj26 p8qe7+OmYpckIuWBJI0g7QZPeMhmyYJAgAOLfBL/i1AIgO8MmtxMUiXsAKji+ewS0OHo VUgO3+TcyDuLQZVb4T199IRcZXOh0+0Ngs7KG7OhWgoW0au7EiVj1P5K1MfvJp3lB3hU DwGDAe3svGqdfvVuP9lRoLw8NCDsWw6NZwiciiId48QUVfui6jok6ObQysJyVC0PZjhv 0+B/yJ2naiyAx6q6PPE7/A0FkFnGGs7H81b9H7szArxqvDoxsMB6SaG3SFFnZqmpJReW 8Aog== X-Gm-Message-State: AOAM532MTizo2P8zMOKnXGZdnVbhcHpAsCYPl80Fc62rMzqxWKMUl4id zR5JdxsLZpp8bmvBipvUswf+J0FhGgI98l4rL0n175iRCDWnIbygyIg3wsPw3J9LiwqhvBF22Fr whrmB9FwfmOwkQBesxEwKVi5k X-Received: by 2002:a17:906:9acb:: with SMTP id ah11mr31873284ejc.305.1635794198470; Mon, 01 Nov 2021 12:16:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqRGooy6XZA1Y8t1ql0dlnn+gjO+gI4KXUs5ozQ5VUAaxbAmo9oSU5aRgIi+dcO44lXRA7hQ== X-Received: by 2002:a17:906:9acb:: with SMTP id ah11mr31873261ejc.305.1635794198319; Mon, 01 Nov 2021 12:16:38 -0700 (PDT) Received: from ?IPV6:2001:1c00:c1e:bf00:1054:9d19:e0f0:8214? (2001-1c00-0c1e-bf00-1054-9d19-e0f0-8214.cable.dynamic.v6.ziggo.nl. [2001:1c00:c1e:bf00:1054:9d19:e0f0:8214]) by smtp.gmail.com with ESMTPSA id h10sm9331056edf.85.2021.11.01.12.16.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Nov 2021 12:16:37 -0700 (PDT) Message-ID: Date: Mon, 1 Nov 2021 20:16:37 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [RFC 3/5] gpiolib: acpi: Add a new "ignore" module option Content-Language: en-US To: Andy Shevchenko Cc: "Rafael J . Wysocki" , Mika Westerberg , Mark Gross , Andy Shevchenko , Wolfram Sang , Sebastian Reichel , MyungJoo Ham , Chanwoo Choi , Ard Biesheuvel , Len Brown , ACPI Devel Maling List , Yauhen Kharuzhy , Tsuchiya Yuto , Platform Driver , linux-i2c , Linux PM , Linux Kernel Mailing List , linux-efi References: <20211031162428.22368-1-hdegoede@redhat.com> <20211031162428.22368-4-hdegoede@redhat.com> From: Hans de Goede In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/31/21 20:59, Andy Shevchenko wrote: > On Sun, Oct 31, 2021 at 6:25 PM Hans de Goede wrote: >> >> Add a new "ignore" module option to completely ignore controller@pin combos >> from _AEI lists. >> >> And add a DMI quirk to ignore the interrupt of the BQ27520 fuel-gauge IC >> on the Xiaomi Mi Pad 2. On this device we use native charger + fuel-gauge >> drivers because of issues with the ACPI battery implementation. The _AEI >> listing of the fuel-gauge IRQ is intended for use with the unused ACPI >> battery implementation and is blocking the bq27xxx fuel-gauge driver >> from binding. > > I'm wondering if the idea behind this is something relative to > https://elixir.bootlin.com/linux/latest/source/drivers/acpi/sysfs.c The idea indeed is similar, but there is only one set of GPEs and the GPIO pin-namespace is per GPIO controller, hence the controller-name@pin format used, which is also used for the already existing ignore_wake gpiolib-acpi.c module option and the patches re-use the existing parsing code. But since there seems to be agreement that using a board-file to work around the DSDT deficiencies is the best option this patch will no longer be needed. It is probably still good to keep it archived somewhere in case the functionality turns out to be useful on some other device(s). Regards, Hans