qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hw/block: m25p80: Fix fast read for SST flashes
@ 2020-11-30  2:50 Bin Meng
  2020-12-02 19:40 ` Alistair Francis
  0 siblings, 1 reply; 22+ messages in thread
From: Bin Meng @ 2020-11-30  2:50 UTC (permalink / raw)
  To: Alistair Francis, Kevin Wolf, Max Reitz, qemu-block, qemu-devel; +Cc: Bin Meng

From: Bin Meng <bin.meng@windriver.com>

SST flashes require a dummy byte after the address bits.

Signed-off-by: Bin Meng <bin.meng@windriver.com>
---

 hw/block/m25p80.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c
index 483925f..9b36762 100644
--- a/hw/block/m25p80.c
+++ b/hw/block/m25p80.c
@@ -825,6 +825,9 @@ static void decode_fast_read_cmd(Flash *s)
     s->needed_bytes = get_addr_length(s);
     switch (get_man(s)) {
     /* Dummy cycles - modeled with bytes writes instead of bits */
+    case MAN_SST:
+        s->needed_bytes += 1;
+        break;
     case MAN_WINBOND:
         s->needed_bytes += 8;
         break;
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2021-01-14 13:52 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-30  2:50 [PATCH] hw/block: m25p80: Fix fast read for SST flashes Bin Meng
2020-12-02 19:40 ` Alistair Francis
2020-12-02 23:09   ` Bin Meng
2020-12-02 23:14     ` Alistair Francis
2020-12-03  8:38   ` Francisco Iglesias
2020-12-04  7:52     ` Bin Meng
2020-12-04 10:46       ` Francisco Iglesias
2020-12-04 10:52         ` Bin Meng
2020-12-04 11:28           ` Francisco Iglesias
2020-12-11  6:07             ` Bin Meng
2020-12-11 15:16               ` Francisco Iglesias
2020-12-11 15:29                 ` Bin Meng
2020-12-11 16:11                   ` Francisco Iglesias
2020-12-12  8:16                     ` Bin Meng
2020-12-12  9:24                       ` Francisco Iglesias
2020-12-12  9:44                         ` Bin Meng
2020-12-15 16:40                           ` Francisco Iglesias
2020-12-16 10:11                             ` Bin Meng
2020-12-22  1:40                               ` Bin Meng
2021-01-06 14:21                                 ` Bin Meng
2021-01-12  1:10                                   ` Bin Meng
2021-01-14 13:38                                     ` Bin Meng

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