Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8051488imu; Tue, 4 Dec 2018 02:01:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/UkGH1g6JVNqh3M28vRuFwM2KrueQbwJEVrbt7BpGCiheuzzZYItdyseXVEGVxS5gmGPapm X-Received: by 2002:a17:902:aa82:: with SMTP id d2mr10776676plr.153.1543917660510; Tue, 04 Dec 2018 02:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543917660; cv=none; d=google.com; s=arc-20160816; b=x80QubA7s3nWdZ0/R+s2hoqpxnybJF1NkE8IR8z/e2Vkhndero/SXL3xvJRA3l8Cwt jVNbb7JRpolrbF92niRSkGy5FpjU/NMByG+1iuI/KtKc0SwPuQTFzDtNsV19XnzVhNnW pUN0/c4EzCQdMEDrljcwksrKKZidr/+h1W6iFi5hPp9lUR3t+C3pPmck1n8lU8i+UG6s 0Uu3Cta46Cpe+Ysb3k1YeabSYcXjo/qIpZu/QnihM6a6QD5Vwgdam0wdtdRmxDp9NzIh DOBquNq8NuxBKX2Kyay/OZCU5fs/b/sHnTqndvsCXkJVuzh6sWcIzIQLVVQie9CEubMQ 5wLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version; bh=QyO4CTj2upEHNNjTCdUZCVL39bPe3bnXZFXxup5NZW8=; b=BBdeknnsTqcKH3WBMNX6eMkOCFJ24lbkJjmBxxqdCpR0JeelhAJdLWG0A13TshQNlN qVoNXg0BzAqyBfHLKdOuYxykUviiaqb0LPXM5JPCGgMAvtp8Ep/vKU8Gmkhv2smaLPhX cS+annnnWiLn10qLsgNPVLQM1NWKFY0UJ3SOzbCBwWlJkMpSj/Zv2FeJXIDnAHTb9WeY BYJqVzIb6j2wpoASk9u1qDBPqNqHlzwUg5Y3Gy77QzZq+vNtDUVwMKqIitFHX3n96ktN Fc1TRgcZkc7CCZgQJDHtM3zyuIQ4Wg4o1a6u5GaNFb2JYAWpPx2Z9mM0w2+JAGqHDoMh YsKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34si14429052pgm.318.2018.12.04.02.00.45; Tue, 04 Dec 2018 02:01:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726168AbeLDJ61 (ORCPT + 99 others); Tue, 4 Dec 2018 04:58:27 -0500 Received: from ms.tdt.de ([195.243.126.94]:45755 "EHLO mail.dev.tdt.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725764AbeLDJ61 (ORCPT ); Tue, 4 Dec 2018 04:58:27 -0500 Received: from mail.dev.tdt.de (localhost [IPv6:::1]) by mail.dev.tdt.de (Postfix) with ESMTP id 5EFC621920; Tue, 4 Dec 2018 09:58:24 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 04 Dec 2018 10:58:24 +0100 From: Florian Eckert To: Andy Shevchenko Cc: Linus Walleij , Bartosz Golaszewski , Darren Hart , Andy Shevchenko , Eckert.Florian@googlemail.com, Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Platform Driver Subject: Re: [PATCH v5 0/2] Add device driver for APU2/APU3 GPIOs In-Reply-To: References: <20181127132508.5501-1-fe@dev.tdt.de> <583ca922b4a877a4b0577994e40ddf5f@dev.tdt.de> <70e7b8e2346b9837273b5edce0524584@dev.tdt.de> <51e0d3f36dc23de801f2fdfc990f6c23@dev.tdt.de> Message-ID: <84a2396b0b5ba34a2339d35159a97a89@dev.tdt.de> X-Sender: fe@dev.tdt.de User-Agent: Roundcube Webmail/1.1.5 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.dev.tdt.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> >> Yes i will fix your hints tomorrow and send a v6 of my patchset. >> >> Thank you for your hints and time >> >> It would be nice if you could fix ACPI problemmatik. >> > >> > I would like to see the ACPI dump for that... >> >> See >> https://github.com/openwrt/openwrt/pull/1232#issuecomment-443224576 >> In this comment Michał Żygowski appended to this thread the missing >> files you want to have. > So, let me clarify what we have: > - some platforms are in the wild with old BIOS with broken ACPI tables correct > - you still may fix the things for new BIOS version for all affected > platforms I have seen that this is a lot of work and I didn't think it was so complicated! To get the GPIO support for APU2/APU3 merged into the gpio subsystem. I am little confused what i should do now. By the way I only have one board (APU3). > - you need to support both That is not necessary from my point of view. I am fine if the driver supports at least the current BIOS version. And if the coreboot maintainer fixes the ACPI problem then we could extend the driver and add the ACPI stuff. But this not in my hand, right? > For broken firmware you need to do the following: > - create an MFD driver, which would instantiate GPIO and GPIO keys > support (at least) > - create one of each above drivers w/o any DMI crap (should be done > as a part of MFD driver) I will have a look how to achieve this. If we want to support all BIOS version. And is a must have to get the driver into mainline. > For fixed BIOS you need to add the following (example, not a fully > correct solution) at the level behind SB: I do not understand how I could fix this. I have no idea from ACPI. I have not found any driver where I can inspire myself. > > Scope (SB) > { > Device(GPIO) > { > After updating firmware you would need just an ACPI ID table to be > added to the GPIO driver. MFD driver should not be enumerated at all. That's maybe coming next when the coreboot maintainers have their bios fixed, right?