[PATCH] nfc: st-nci: Add SPI ID matching DT compatible

Subsystems: nfc subsystem, the rest

STALE1776d

2 messages, 2 authors, 2021-09-23 · open the first message on its own page

[PATCH] nfc: st-nci: Add SPI ID matching DT compatible

From: Mark Brown <broonie@kernel.org>
Date: 2021-09-22 18:31:27

Currently autoloading for SPI devices does not use the DT ID table, it uses
SPI modalises. Supporting OF modalises is going to be difficult if not
impractical, an attempt was made but has been reverted, so ensure that
module autoloading works for this driver by adding the part name used in
the compatible to the list of SPI IDs.

Fixes: 96c8395e2166 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 drivers/nfc/st-nci/spi.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/nfc/st-nci/spi.c b/drivers/nfc/st-nci/spi.c
index a620c34790e6..0875b773fb41 100644
--- a/drivers/nfc/st-nci/spi.c
+++ b/drivers/nfc/st-nci/spi.c
@@ -278,6 +278,7 @@ static int st_nci_spi_remove(struct spi_device *dev)
 
 static struct spi_device_id st_nci_spi_id_table[] = {
 	{ST_NCI_SPI_DRIVER_NAME, 0},
+	{"st21nfcb-spi", 0},
 	{}
 };
 MODULE_DEVICE_TABLE(spi, st_nci_spi_id_table);
-- 
2.20.1

Re: [PATCH] nfc: st-nci: Add SPI ID matching DT compatible

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-09-23 12:00:18

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed, 22 Sep 2021 19:30:37 +0100 you wrote:
Currently autoloading for SPI devices does not use the DT ID table, it uses
SPI modalises. Supporting OF modalises is going to be difficult if not
impractical, an attempt was made but has been reverted, so ensure that
module autoloading works for this driver by adding the part name used in
the compatible to the list of SPI IDs.

Fixes: 96c8395e2166 ("spi: Revert modalias changes")
Signed-off-by: Mark Brown <broonie@kernel.org>

[...]
Here is the summary with links:
  - nfc: st-nci: Add SPI ID matching DT compatible
    https://git.kernel.org/netdev/net/c/31339440b2d0

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help