From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aimMN-0001EY-9E for qemu-devel@nongnu.org; Wed, 23 Mar 2016 13:14:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aimMM-0005O7-BT for qemu-devel@nongnu.org; Wed, 23 Mar 2016 13:14:19 -0400 References: <1458221140-15232-1-git-send-email-zhaoshenglong@huawei.com> From: Wei Huang Message-ID: <56F2CEE2.7060903@redhat.com> Date: Wed, 23 Mar 2016 12:14:10 -0500 MIME-Version: 1.0 In-Reply-To: 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: Peter Maydell , Shannon Zhao Cc: "Huangpeng (Peter)" , qemu-arm , QEMU Developers , Shannon Zhao 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. > > 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 > > -- PMM >