]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
hw/ide, scsi-disk: Fix typo on the rotation_rate documentation
authorAlberto Garcia <berto@igalia.com>
Wed, 28 Jan 2026 10:25:46 +0000 (11:25 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 2 Feb 2026 15:43:38 +0000 (16:43 +0100)
Correct values according to the Medium Rotation Rate field from the
Block Device Characteristics VPD page (B1h) of the SCSI specification.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260128102548.224237-1-berto@igalia.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/scsi/scsi-disk.c
include/hw/ide/ide-dev.h

index 0f896c27f47c4f26369eb534a9ef8bf1f675c354..db7d04119e10a112957be524ce03b5ba933e3c25 100644 (file)
@@ -117,7 +117,7 @@ struct SCSIDiskState {
      * 0x0000        - rotation rate not reported
      * 0x0001        - non-rotating medium (SSD)
      * 0x0002-0x0400 - reserved
-     * 0x0401-0xff - rotations per minute
+     * 0x0401-0xfffe - rotations per minute
      * 0xffff        - reserved
      */
     uint16_t rotation_rate;
index 617e8159c7705716a9b57246e582cc689874cc2e..f5eaaf68e65093403b4d3db223d0d8af769d2438 100644 (file)
@@ -160,7 +160,7 @@ struct IDEDevice {
      * 0x0000        - rotation rate not reported
      * 0x0001        - non-rotating medium (SSD)
      * 0x0002-0x0400 - reserved
-     * 0x0401-0xff - rotations per minute
+     * 0x0401-0xfffe - rotations per minute
      * 0xffff        - reserved
      */
     uint16_t rotation_rate;