spi/spidev: Convert to use unified device property API
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
@@ -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
Mark Brown
maintainerQuoted 3 lines · Mika Westerberg
This will allow the driver to match using DT compatible property if the device has ACPI
_HIDof "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.
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
_HIDof "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.
Mark Brown
maintainerQuoted 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.