udev: remove ID_MM_PLATFORM_DRIVER_PROBE tag

This tag is completely redundant because users can whitelist the
platform TTY ports to use with the more generic ID_MM_DEVICE_PROCESS
tag, which is part of the explicit whitelist filter rule.
This commit is contained in:
Aleksander Morgado
2019-08-07 15:13:00 +02:00
committed by Aleksander Morgado
parent 118b19bb75
commit f6d5490eeb
4 changed files with 3 additions and 30 deletions

View File

@@ -121,12 +121,8 @@ mm_filter_port (MMFilter *self,
!g_strcmp0 (physdev_subsystem, "pci") ||
!g_strcmp0 (physdev_subsystem, "pnp") ||
!g_strcmp0 (physdev_subsystem, "sdio"))) {
if (!mm_kernel_device_get_global_property_as_boolean (port, ID_MM_PLATFORM_DRIVER_PROBE)) {
mm_dbg ("[filter] (%s/%s): port filtered: port's parent platform driver is not whitelisted", subsystem, name);
return FALSE;
}
mm_dbg ("[filter] (%s/%s): port allowed: port's parent platform driver is whitelisted", subsystem, name);
return TRUE;
mm_dbg ("[filter] (%s/%s): port filtered: tty platform driver", subsystem, name);
return FALSE;
}
/* Default allowed? */