linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource
@ 2020-04-13 18:04 Andy Shevchenko
  2020-04-14 11:40 ` Applied "spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource" to the spi tree Mark Brown
  2020-04-17 16:09 ` [PATCH v1] spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Shevchenko @ 2020-04-13 18:04 UTC (permalink / raw)
  To: Mark Brown, linux-spi; +Cc: Andy Shevchenko

By unknown reason the commit 64bee4d28c9e
  ("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: 64bee4d28c9e ("spi / ACPI: add ACPI enumeration support")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index c92c89467e7e..e0e27fe06878 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -2111,6 +2111,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
 			}
 
 			lookup->max_speed_hz = sb->connection_speed;
+			lookup->bits_per_word = sb->data_bit_length;
 
 			if (sb->clock_phase == ACPI_SPI_SECOND_PHASE)
 				lookup->mode |= SPI_CPHA;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-17 16:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-13 18:04 [PATCH v1] spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource Andy Shevchenko
2020-04-14 11:40 ` Applied "spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource" to the spi tree Mark Brown
2020-04-17 16:09 ` [PATCH v1] spi: Respect DataBitLength field of SpiSerialBusV2() ACPI resource Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).