]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPICA: fix I2C LVR item count in the conversion table
authorAkhil R <akhilrajeev@nvidia.com>
Wed, 27 May 2026 17:58:29 +0000 (19:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 May 2026 18:18:45 +0000 (20:18 +0200)
For ACPI_RSC_MOVE8, the 'Value' field in struct acpi_rsconvert_info
is the item count count and not a bit position like for the
bitflags. Set 'Value' as '1' to fix this.

Conversion still works coincidentally with '0' because
item_count is not reset between table entries, and the previous
count value was taking effect.

Link: https://github.com/acpica/acpica/commit/70082dc8fc84
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/6164740.MhkbZ0Pkbq@rafael.j.wysocki
drivers/acpi/acpica/rsserial.c

index 7d7ee3af7272ea8c70252aa4814d6f09c5053cf4..5ab41e9b90390e62e0f372d86da67a40ec76b7e2 100644 (file)
@@ -394,7 +394,7 @@ struct acpi_rsconvert_info acpi_rs_convert_i2c_serial_bus[18] = {
        /* Read LVR from Type Specific Flags, bits[15:8] */
        {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.i2c_serial_bus.lvr),
         AML_OFFSET(i2c_serial_bus.type_specific_flags) + 1,
-        0},
+        1},
 
        {ACPI_RSC_MOVE32, ACPI_RS_OFFSET(data.i2c_serial_bus.connection_speed),
         AML_OFFSET(i2c_serial_bus.connection_speed),