From c06ca6df3f096a53665611b26b4add933317e873 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 13 Oct 2021 13:36:24 +0200 Subject: qcom-soc: require udev tag for ports Since the 'wwan' subsystem addition to the qcom-soc plugin, the rules to say a modem is handled by this plugin are too broad, and the plugin attempts to support any kind of device exposed by the WWAN subsystem, not just those from Qualcomm SoCs. Update the plugin to require a new ID_MM_QCOM_SOC udev tag that is set in the plugin udev rules, given that these rules already check for the expected SoC drivers (bam-dmux, ipa, qcom-q6v5-mss). --- plugins/qcom-soc/mm-plugin-qcom-soc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/qcom-soc/mm-plugin-qcom-soc.c') diff --git a/plugins/qcom-soc/mm-plugin-qcom-soc.c b/plugins/qcom-soc/mm-plugin-qcom-soc.c index 35b5981b..58743a8d 100644 --- a/plugins/qcom-soc/mm-plugin-qcom-soc.c +++ b/plugins/qcom-soc/mm-plugin-qcom-soc.c @@ -68,6 +68,10 @@ G_MODULE_EXPORT MMPlugin * mm_plugin_create (void) { static const gchar *subsystems[] = { "wwan", "rpmsg", "net", "qrtr", NULL }; + static const gchar *udev_tags[] = { + "ID_MM_QCOM_SOC", + NULL + }; return MM_PLUGIN ( g_object_new (MM_TYPE_PLUGIN_QCOM_SOC, @@ -75,6 +79,7 @@ mm_plugin_create (void) MM_PLUGIN_ALLOWED_SUBSYSTEMS, subsystems, MM_PLUGIN_ALLOWED_AT, TRUE, MM_PLUGIN_ALLOWED_QMI, TRUE, + MM_PLUGIN_ALLOWED_UDEV_TAGS, udev_tags, NULL)); } -- cgit v1.2.3-70-g09d2