[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [PATCH 0/2] Add gpio_key and use it for ARM virt power bu
From: |
Peter Maydell |
Subject: |
Re: [Qemu-arm] [PATCH 0/2] Add gpio_key and use it for ARM virt power button |
Date: |
Wed, 23 Mar 2016 16:12:46 +0000 |
On 17 March 2016 at 13:25, Shannon Zhao <address@hidden> wrote:
> From: Shannon Zhao <address@hidden>
>
> 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.
-- PMM