[Qemu-trivial] lsi_scsi: add support for PPR Extended Message

Message ID a2b410dd-1150-16a4-9376-069117a14c98@oracle.com
State New
Headers show
Series
  • [Qemu-trivial] lsi_scsi: add support for PPR Extended Message
Related show

Commit Message

George Kennedy Dec. 7, 2017, 3:25 p.m.
The LSI 53c895a code does not handle the PPR Extended Message. Add support to handle PPR
Extended Message like SDTR and WDTR are handled. That is, to skip past the message
bytes and ignore the message.

---
  hw/scsi/lsi53c895a.c | 4 ++++
  1 file changed, 4 insertions(+)

Patch

diff --git a/hw/scsi/lsi53c895a.c b/hw/scsi/lsi53c895a.c
index 595c260..1e02a89 100644
--- a/hw/scsi/lsi53c895a.c
+++ b/hw/scsi/lsi53c895a.c
@@ -961,6 +961,10 @@  static void lsi_do_msgout(LSIState *s)
                  DPRINTF("WDTR (ignored)\n");
                  lsi_skip_msgbytes(s, 1);
                  break;
+            case 4:
+                DPRINTF("PPR (ignored)\n");
+                lsi_skip_msgbytes(s, 5);
+                break;
              default:
                  goto bad;
              }