From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933030AbcBPPjG (ORCPT ); Tue, 16 Feb 2016 10:39:06 -0500 Received: from mail-ob0-f176.google.com ([209.85.214.176]:32808 "EHLO mail-ob0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932392AbcBPPjD convert rfc822-to-8bit (ORCPT ); Tue, 16 Feb 2016 10:39:03 -0500 MIME-Version: 1.0 In-Reply-To: <56C316E8.4090002@huawei.com> References: <1454653542-122055-1-git-send-email-qiujiang@huawei.com> <56C316E8.4090002@huawei.com> Date: Tue, 16 Feb 2016 16:38:43 +0100 Message-ID: Subject: Re: [RFC PATCH] GPIO/ACPI: DesignWare: Add GPIO-signaled ACPI events support for power button From: Linus Walleij To: qiujiang Cc: Mika Westerberg , Alexandre Courbot , "linux-gpio@vger.kernel.org" , ACPI Devel Maling List , "linux-kernel@vger.kernel.org" , linuxarm@huawei.com, haifeng.wei@huawei.com, charles.chenxin@huawei.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2016 at 1:32 PM, Jiang Qiu wrote: > 在 2016/2/16 2:25, Linus Walleij 写道: >> Mika can you help out looking at this patch. Tell me if you need a copy >> of the whole patch, I'm not smart with ACPI. >> >> On Fri, Feb 5, 2016 at 7:25 AM, qiujiang wrote: >> >>> This patch modifies the DesignWare GPIO controller driver to >>> support the GPIO-signaled ACPI Events. This is used for power >>> button function on ARM server. >>> >>> To make it work, the _AEI and _EVT object must be defined in >>> the corresponding GPIO driver's dsdt table in UEFI. At the same >>> time, ACPI daemon component is also necessary. >>> >>> Signed-off-by: qiujiang >> >> (...) >>> --- a/drivers/gpio/gpio-dwapb.c >>> +++ b/drivers/gpio/gpio-dwapb.c >>> @@ -23,6 +23,11 @@ >>> #include >>> #include >>> #include >>> +#include >>> +#include >> >> You should only need > Here, I don't understand well. I used driver.h instead acpi.h and > gpio.h, but it came to compile failed. Argh sorry. Yours, Linus Walleij