Skip to content

Commit 0dadde3

Browse files
andy-shevbroonie
authored andcommitted
spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource
By unknown reason the commit 64bee4d ("spi / ACPI: add ACPI enumeration support") missed the DataBitLength property to encounter when parse SPI slave device data from ACPI. Fill the gap here. Fixes: 64bee4d ("spi / ACPI: add ACPI enumeration support") Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6d75145 commit 0dadde3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
21112111
}
21122112

21132113
lookup->max_speed_hz = sb->connection_speed;
2114+
lookup->bits_per_word = sb->data_bit_length;
21142115

21152116
if (sb->clock_phase == ACPI_SPI_SECOND_PHASE)
21162117
lookup->mode |= SPI_CPHA;

0 commit comments

Comments
 (0)