aboutsummaryrefslogtreecommitdiff
path: root/src/77-mm-platform-serial-whitelist.rules
diff options
context:
space:
mode:
Diffstat (limited to 'src/77-mm-platform-serial-whitelist.rules')
-rw-r--r--src/77-mm-platform-serial-whitelist.rules14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/77-mm-platform-serial-whitelist.rules b/src/77-mm-platform-serial-whitelist.rules
new file mode 100644
index 0000000..b62d0a6
--- /dev/null
+++ b/src/77-mm-platform-serial-whitelist.rules
@@ -0,0 +1,14 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION!="add|change", GOTO="mm_platform_device_whitelist_end"
+SUBSYSTEM!="platform", GOTO="mm_platform_device_whitelist_end"
+
+# Be careful here since many devices connected to platform drivers on PCs
+# are legacy devices that won't like probing. But often on embedded
+# systems serial ports are provided by platform devices.
+
+# Allow atmel_usart
+DRIVERS=="atmel_usart", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
+
+LABEL="mm_platform_device_whitelist_end"
+