From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW5l1-00034H-Ig for qemu-devel@nongnu.org; Wed, 17 Feb 2016 12:19:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aW5kx-0003eL-Ho for qemu-devel@nongnu.org; Wed, 17 Feb 2016 12:19:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aW5kx-0003eF-CQ for qemu-devel@nongnu.org; Wed, 17 Feb 2016 12:19:15 -0500 From: Wei Huang Date: Wed, 17 Feb 2016 12:19:10 -0500 Message-Id: <1455729552-28026-1-git-send-email-wei@redhat.com> Subject: [Qemu-devel] [PATCH V3 0/2] PL061 device state cleaning List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: wei@redhat.com, peter.maydell@linaro.org, mjt@tls.msk.ru, shannon.zhao@linaro.org, zhaoshenglong@huawei.com, imammedo@redhat.com Current QEMU doesn't reset PL061 device state. As a result the device keeps a stale state after guest reboots. This causes VM fail to recceive GPIO commands (e.g. virsh shutdown/reoot commands) after reboot. This patchset adds reset support for PL061 devices. The second patch removes an unused field. V3: * hook up dc->reset to existing reset function. And stop calling reset in initfn() * add Reviewed-by V2: * derived from V1 after further debug. Now it resets device state instead of using pulse for GPIO IRQ. V1: * initial patch -Wei Wei Huang (2): ARM: PL061: Clear PL061 device state after reset ARM: PL061: Cleaning field of PL061 device state hw/gpio/pl061.c | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) -- 1.8.3.1