On 17 March 2016 at 13:25, Shannon Zhao <zhaoshengl...@huawei.com> wrote: > From: Shannon Zhao <shannon.z...@linaro.org> > > 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