* [Qemu-trivial] Fwd: [Qemu-devel] [PATCH] hw/pflash_cfi02: Fix lazy reset of ROMD mode
[not found] ` <BANLkTi=_YS-pDSTh85TH6rWURDJzrCa4FA@mail.gmail.com>
@ 2011-04-09 1:47 ` Jordan Justen
0 siblings, 0 replies; only message in thread
From: Jordan Justen @ 2011-04-09 1:47 UTC (permalink / raw)
To: qemu-trivial
Is this a 'trivial patch,' or does hw/pflash_cfi02 have an active maintainer?
Thanks,
-Jordan
---------- Forwarded message ----------
From: Jordan Justen <jordan.l.justen@intel.com>
Date: Sun, Apr 3, 2011 at 13:16
Subject: [Qemu-devel] [PATCH] hw/pflash_cfi02: Fix lazy reset of ROMD mode
To: qemu-devel@nongnu.org
Cc: Jordan Justen <jordan.l.justen@intel.com>
When checking pfl->rom_mode for when to lazily reenter ROMD mode,
the value was check was the opposite of what it should have been.
This prevent the part from returning to ROMD mode after a write
was made to the CFI rom region.
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
---
hw/pflash_cfi02.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pflash_cfi02.c b/hw/pflash_cfi02.c
index 30c8aa4..370c5ee 100644
--- a/hw/pflash_cfi02.c
+++ b/hw/pflash_cfi02.c
@@ -112,7 +112,7 @@ static uint32_t pflash_read (pflash_t *pfl,
target_phys_addr_t offset,
DPRINTF("%s: offset " TARGET_FMT_plx "\n", __func__, offset);
ret = -1;
- if (pfl->rom_mode) {
+ if (!pfl->rom_mode) {
/* Lazy reset of to ROMD mode */
if (pfl->wcycle == 0)
pflash_register_memory(pfl, 1);
--
1.7.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-10 12:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1301861786-6637-1-git-send-email-jordan.l.justen@intel.com>
[not found] ` <BANLkTi=_YS-pDSTh85TH6rWURDJzrCa4FA@mail.gmail.com>
2011-04-09 1:47 ` [Qemu-trivial] Fwd: [Qemu-devel] [PATCH] hw/pflash_cfi02: Fix lazy reset of ROMD mode Jordan Justen
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).