Received: from eggs.gnu.org ([2001:4830:134:3::10]:35456) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZINU-0003yT-D3 for qemu-devel@nongnu.org; Fri, 26 Feb 2016 08:24:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZINT-0006xn-My for qemu-devel@nongnu.org; Fri, 26 Feb 2016 08:24:16 -0500 From: Peter Maydell Date: Fri, 26 Feb 2016 13:24:02 +0000 Message-Id: <1456493044-10025-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 0/2] sdhci: Implement device reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , patches@linaro.org, Andrew Baumann , Alistair Francis , qemu-arm@nongnu.org, "Edgar E. Iglesias" This patchset implements the DeviceClass reset method for the sdhci devices, so that on QEMU system reset they are reset. (Mostly guests didn't notice this was missing I think because they tend to do a commanded reset via the device register as part of driver initialization.) For the reset patch to work and not crash QEMU on startup, we need to fix a missing NULL pointer check in sd.c's sd_get_inserted() function. These patchsets apply on top of Andrew's rpi quirk patchset which is in target-arm.next. Review/testing appreciated. Peter Maydell (2): sd.c: Handle NULL block backend in sd_get_inserted() sdhci: Implement DeviceClass reset hw/sd/sd.c | 2 +- hw/sd/sdhci.c | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) -- 1.9.1