Skip to contentSkip to conversation

drm/ili9163: Add "1.8-128160EF" to spi_device_id table

PATCH In review Mostafa Weshahy 2 participants 2 messages Nov 16, 2023 – Nov 17, 2023 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 drm/ili9163: Add "1.8-128160EF" to spi_device_id table

drm/ili9163: Add "1.8-128160EF" to spi_device_id table

Currently enabling CONFIG_TINYDRM_ILI9163 driver - regardless of the device tree - results in the below confusing log line:
SPI driver ili9163 has no spi_device_id for newhaven,1.8-128160EF

This commit fixes this false alarm by adding "1.8-128160EF" to spi_device_id table of ili9163 driver.

---
 drivers/gpu/drm/tiny/ili9163.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tiny/ili9163.c +1 -0
index bc4384d410fc..a9ddfe66fa32 100644
@@ -129,6 +129,7 @@ MODULE_DEVICE_TABLE(of, ili9163_of_match);
 
 static const struct spi_device_id ili9163_id[] = {
 	{ "nhd-1.8-128160EF", 0 },
+	{ "1.8-128160EF", 0 },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, ili9163_id);
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#2 lore raw

Mostafa Weshahy <[email protected]> writes:

Hello Mostafa,

Quoted 9 lines

drm/ili9163: Add "1.8-128160EF" to spi_device_id table

Currently enabling CONFIG_TINYDRM_ILI9163 driver - regardless of the device tree - results in the below confusing log line:
SPI driver ili9163 has no spi_device_id for newhaven,1.8-128160EF

This commit fixes this false alarm by adding "1.8-128160EF" to spi_device_id table of ili9163 driver.

It's not actually a false alarm, this is needed if you want the driver module to be automatically loaded. Because the SPI core always reports a MODALIAS of the form "spi:1.8-128160EF" even if the device has been registered by OF.

So this is an actual fix since this driver can be built as a module.

Quoted 2 lines

---

Signature · 5 lines
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat