qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection


From: Jan Kiszka
Subject: Re: [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection
Date: Tue, 03 Feb 2015 21:21:26 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

On 2015-02-03 19:03, Peter Maydell wrote:
> On 30 January 2015 at 20:19, Jan Kiszka <address@hidden> 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.

Indeed, read this too quickly. Let's see if modeling this more correctly
will also improve the detection reliability.

Jan


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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