Skip to contentSkip to conversation

bluetooth: btmtksdio: add MODULE_DEVICE_TABLE()

PATCH In review Bartosz Golaszewski 2 participants 2 messages Nov 7, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: btmtksdio: add MODULE_DEVICE_TABLE()

From: Bartosz Golaszewski <[email protected]>

This adds the missing MODULE_DEVICE_TABLE() for SDIO IDs. While certain platforms using this driver indeed have HW issues causing problems if the module is loaded too early - this should be handled from user-space by blacklisting it or delaying the loading.

---
 drivers/bluetooth/btmtksdio.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/btmtksdio.c +1 -0
index 813338288453..519788c442ca 100644
@@ -57,6 +57,7 @@ static const struct sdio_device_id btmtksdio_table[] = {
 	 .driver_data = (kernel_ulong_t)&mt7668_data },
 	{ }	/* Terminating entry */
 };
+MODULE_DEVICE_TABLE(sdio, btmtksdio_table);
 
 #define MTK_REG_CHLPCR		0x4	/* W1S */
 #define C_INT_EN_SET		BIT(0)
Signature · 1 line
2.23.0
maintainer
#1 lore raw

Hi Bartosz,

Quoted 9 lines

This adds the missing MODULE_DEVICE_TABLE() for SDIO IDs. While certain platforms using this driver indeed have HW issues causing problems if the module is loaded too early - this should be handled from user-space by blacklisting it or delaying the loading.

---
drivers/bluetooth/btmtksdio.c | 1 +

1 file changed, 1 insertion(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel