modemmanager: rework udev rules for cellular XBee

After 0e7f5d3a47 both platforms probe both ports,
which is problematic (for example, ttymxc4 is the console in the 6UL based
platforms).

Use more concrete rules to avoid that problem.

https://jira.digi.com/browse/DEL-4199

Signed-off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>off-by: Diaz de Grenu, Jose <Jose.DiazdeGrenu@digi.com>
This commit is contained in:
Diaz de Grenu, Jose 2017-05-17 13:18:10 +02:00
parent 0e7f5d3a47
commit b9d6f4406a
1 changed files with 3 additions and 2 deletions

View File

@ -4,9 +4,10 @@ ACTION!="add|change|move", GOTO="mm_digi_xbee_cellular_modem_end"
# baudrates may be used by setting the ID_MM_TTY_BAUDRATE udev tag. # baudrates may be used by setting the ID_MM_TTY_BAUDRATE udev tag.
# ConnectCore 6 SBC # ConnectCore 6 SBC
DEVPATH=="/devices/*/2100000.aips-bus/21f4000.serial/tty/ttymxc4", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1" DEVPATH=="/devices/soc0/soc.0/2100000.aips-bus/21f4000.serial/tty/ttymxc4", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
DEVPATH=="/devices/soc0/soc/2100000.aips-bus/21f4000.serial/tty/ttymxc4", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
# ConnectCore 6UL SBC Pro # ConnectCore 6UL SBC Pro
DEVPATH=="/devices/*/2100000.aips-bus/21e8000.serial/tty/ttymxc1", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1" DEVPATH=="/devices/platform/soc/2100000.aips-bus/21e8000.serial/tty/ttymxc1", ENV{ID_MM_PLATFORM_DRIVER_PROBE}="1"
LABEL="mm_digi_xbee_cellular_modem_end" LABEL="mm_digi_xbee_cellular_modem_end"