dev: arm: SetScaling commands don't send parameter bytes.
authorGabe Black <gabeblack@google.com>
Tue, 3 Apr 2018 01:20:55 +0000 (18:20 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 10 Apr 2018 11:46:52 +0000 (11:46 +0000)
These are single byte commands which change the mode of the mouse. They don't
take any additional parameters like the SetRate or SetResolution.

Change-Id: I29194916cfed5d3f4893947ef6d6cc636aee2419
Reviewed-on: https://gem5-review.googlesource.com/9701
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/dev/arm/kmi.cc

index 8db925471ab5ae6d4992cfbd64e1721f8dccd9bf..8b373b8194e58c872227ee2cea505d126f788ed3 100644 (file)
@@ -188,8 +188,6 @@ Pl050::processCommand(uint8_t byte)
       case SetResolution:
       case SetRate:
       case SetStatusLed:
-      case SetScaling1_1:
-      case SetScaling1_2:
         rxQueue.push_back(Ack);
         ackNext = 1;
         break;
@@ -211,6 +209,8 @@ Pl050::processCommand(uint8_t byte)
       case Disable:
       case Enable:
       case SetDefaults:
+      case SetScaling1_1:
+      case SetScaling1_2:
         rxQueue.push_back(Ack);
         break;
       case StatusRequest: