qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Peter Maydell <peter.maydell@linaro.org>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection
Date: Tue, 3 Feb 2015 18:03:17 +0000	[thread overview]
Message-ID: <CAFEAcA_thcX6wEpbkCxdOEDECwAE5n4xBDgXh4mGgVomLEituQ@mail.gmail.com> (raw)
In-Reply-To: <54CBE747.8060600@siemens.com>

On 30 January 2015 at 20:19, Jan Kiszka <jan.kiszka@siemens.com> wrote:
> This allows to use MMC emulation with the Integrator/CP model. Well,
> mostly. There seems to be timing issues with Linux so that the card is
> not always detected (but most of the time).
>
> Note that the read-only pin is intentionally left unconnected because
> the PIC model could deliver it incorrectly as interrupt to the guest
> while the spec says that this pin is just for status reading.

I'm not sure what you mean here. The WPROT signal isn't wired
up to the SIC at all as far as I can see -- it's just a read-only
bit in the CP_INTREG register in what we model as "icp_control".

Your patch doesn't seem to do anything with the icp_control at all,
which doesn't look right, because the docs say that to clear the
'card insert' interrupt reported by the SIC you need to write
to the CP_INTREG register.

The gpio out line from the PL181 is just a status line (high when
a card is present, low if not); there needs to be a latch somewhere
in here that gets reset by the CP_INTREG write, the PL181 line
isn't just wired directly to the SIC.

thanks
-- PMM

  reply	other threads:[~2015-02-03 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 20:19 [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection Jan Kiszka
2015-02-03 18:03 ` Peter Maydell [this message]
2015-02-03 20:21   ` Jan Kiszka

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=CAFEAcA_thcX6wEpbkCxdOEDECwAE5n4xBDgXh4mGgVomLEituQ@mail.gmail.com \
    --to=peter.maydell@linaro.org \
    --cc=jan.kiszka@siemens.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).