Skip to contentSkip to conversation

spi/spidev: Convert to use unified device property API

PATCH In review Mika Westerberg 2 participants 4 messages Dec 29, 2014 – Dec 30, 2014 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi/spidev: Convert to use unified device property API

This will allow the driver to match using DT compatible property if the device has ACPI _HID of "PRP0001" and accompanying "compatible" property listed in _DSD.

---
 drivers/spi/spidev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/spi/spidev.c +1 -1
index 6941e04afb8c..f4742fad4307 100644
@@ -700,7 +700,7 @@ static struct spi_driver spidev_spi_driver = {
 	.driver = {
 		.name =		"spidev",
 		.owner =	THIS_MODULE,
-		.of_match_table = of_match_ptr(spidev_dt_ids),
+		.of_match_table = spidev_dt_ids,
 	},
 	.probe =	spidev_probe,
 	.remove =	spidev_remove,
Signature · 6 lines
2.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw
Quoted 3 lines · Mika Westerberg

This will allow the driver to match using DT compatible property if the device has ACPI _HID of "PRP0001" and accompanying "compatible" property listed in _DSD.

Which nobody should be doing since it's already totally broken for something to be using this on the DT side except in the one case of the Rohm device which is listed there. I don't want to merge anything which allows the breakage we're seeing with people putting spidev in their DTs to be propagated into ACPI, at most we should have something that specifically identifies individual devices only.

#2 lore raw
Quoted 11 lines · Mark Brown
Quoted 3 lines · Mika Westerberg

This will allow the driver to match using DT compatible property if the device has ACPI _HID of "PRP0001" and accompanying "compatible" property listed in _DSD.

Which nobody should be doing since it's already totally broken for something to be using this on the DT side except in the one case of the Rohm device which is listed there. I don't want to merge anything which allows the breakage we're seeing with people putting spidev in their DTs to be propagated into ACPI, at most we should have something that specifically identifies individual devices only.

It is pretty convenient for testing SPI bus and that's why I thought it would be good to have possibility to enumerate this in similar way than DT does but I understand your point.

maintainer
#3 lore raw
Quoted 9 lines · Mika Westerberg
Quoted 6 lines · Mark Brown

Which nobody should be doing since it's already totally broken for something to be using this on the DT side except in the one case of the Rohm device which is listed there. I don't want to merge anything which allows the breakage we're seeing with people putting spidev in their DTs to be propagated into ACPI, at most we should have something that specifically identifies individual devices only.

Quoted 3 lines

It is pretty convenient for testing SPI bus and that's why I thought it would be good to have possibility to enumerate this in similar way than DT does but I understand your point.

My intention is to break this for DT, at least make it scream loud warnings when it's used if not actually fail.