All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: qemu-devel@nongnu.org
Cc: Peter Crosthwaite <crosthwaite.peter@gmail.com>,
	patches@linaro.org, Andrew Baumann <Andrew.Baumann@microsoft.com>,
	Alistair Francis <alistair.francis@xilinx.com>,
	qemu-arm@nongnu.org,
	"Edgar E. Iglesias" <edgar.iglesias@gmail.com>
Subject: [Qemu-devel] [PATCH 0/2] sdhci: Implement device reset
Date: Fri, 26 Feb 2016 13:24:02 +0000	[thread overview]
Message-ID: <1456493044-10025-1-git-send-email-peter.maydell@linaro.org> (raw)

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

             reply	other threads:[~2016-02-26 13:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-26 13:24 Peter Maydell [this message]
2016-02-26 13:24 ` [Qemu-devel] [PATCH 1/2] sd.c: Handle NULL block backend in sd_get_inserted() Peter Maydell
2016-02-26 22:35   ` Alistair Francis
2016-02-26 13:24 ` [Qemu-devel] [PATCH 2/2] sdhci: Implement DeviceClass reset Peter Maydell
2016-02-26 17:47   ` Andrew Baumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456493044-10025-1-git-send-email-peter.maydell@linaro.org \
    --to=peter.maydell@linaro.org \
    --cc=Andrew.Baumann@microsoft.com \
    --cc=alistair.francis@xilinx.com \
    --cc=crosthwaite.peter@gmail.com \
    --cc=edgar.iglesias@gmail.com \
    --cc=patches@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.