From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aitcH-0005Fi-Ru for qemu-devel@nongnu.org; Wed, 23 Mar 2016 20:59:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aitcH-0007Om-0R for qemu-devel@nongnu.org; Wed, 23 Mar 2016 20:59:13 -0400 Message-ID: <56F33BAC.4070607@huawei.com> Date: Thu, 24 Mar 2016 08:58:20 +0800 From: Shannon Zhao MIME-Version: 1.0 References: <1458221140-15232-1-git-send-email-zhaoshenglong@huawei.com> <56F2CEE2.7060903@redhat.com> In-Reply-To: <56F2CEE2.7060903@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/2] Add gpio_key and use it for ARM virt power button List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Huang , Peter Maydell Cc: "Huangpeng (Peter)" , qemu-arm , QEMU Developers , Shannon Zhao On 2016/3/24 1:14, Wei Huang wrote: > > On 03/23/2016 11:12 AM, Peter Maydell wrote: >> > On 17 March 2016 at 13:25, Shannon Zhao wrote: >>> >> From: Shannon Zhao >>> >> >>> >> There is a problem for power button that it will not work if an early >>> >> system_powerdown request happens before guest gpio driver loads. >>> >> >>> >> Here we add the emulation of gpio_key and use it for ARM virt power >>> >> button. >> > >> > I tweaked the type names to be 'gpio-key' rather than 'gpio_key', >> > and added a comment to briefly describe what the device does: >> > >> > + * Emulate a (human) keypress -- when the key is triggered by >> > + * setting the incoming gpio line, the outbound irq line is >> > + * raised for 100ms before being dropped again. >> > Great. Thanks a lot! >> > Applied to target-arm.next, thanks. > I didn't see the patch series until yesterday. So just to make it > complete, I did test it with both DT and ACPI modes. The patch seemed to > work as intended. > > Tested-by: Wei Huang Thanks, Wei! -- Shannon