[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-arm] [PATCH 0/2] sdhci: Implement device reset

From: Peter Maydell
Subject: [Qemu-arm] [PATCH 0/2] sdhci: Implement device reset
Date: Fri, 26 Feb 2016 13:24:02 +0000

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(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]