[PATCH 10/14] telit,udev: single 'usb' subsystems check and simplified single vendor check

Aleksander Morgado aleksander at aleksander.es
Sat Aug 6 08:43:46 UTC 2016


On Thu, Jul 28, 2016 at 12:14 AM, Aleksander Morgado
<aleksander at aleksander.es> wrote:
> ---
>  plugins/telit/77-mm-telit-port-types.rules | 8 ++------
>  1 file changed, 2 insertions(+), 6 deletions(-)
>

Pushed to git master.

> diff --git a/plugins/telit/77-mm-telit-port-types.rules b/plugins/telit/77-mm-telit-port-types.rules
> index 398047c..695246c 100644
> --- a/plugins/telit/77-mm-telit-port-types.rules
> +++ b/plugins/telit/77-mm-telit-port-types.rules
> @@ -1,12 +1,9 @@
>  # do not edit this file, it will be overwritten on update
>
>  ACTION!="add|change|move", GOTO="mm_telit_port_types_end"
> +SUBSYSTEMS!="usb", GOTO="mm_telit_port_types_end"
>  SUBSYSTEM!="tty", GOTO="mm_telit_port_types_end"
> -
> -SUBSYSTEMS=="usb", ATTRS{idVendor}=="1bc7", GOTO="mm_telit_vendorcheck"
> -GOTO="mm_telit_port_types_end"
> -
> -LABEL="mm_telit_vendorcheck"
> +ATTRS{idVendor}!="1bc7", GOTO="mm_telit_port_types_end"
>
>  # UC864-E, UC864-E-AUTO, UC864-K, UC864-WD, UC864-WDU
>  ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="1003", ATTRS{bInterfaceNumber}=="00", ENV{ID_MM_TELIT_PORT_TYPE_MODEM}="1"
> @@ -49,5 +46,4 @@ ATTRS{idVendor}=="1bc7", ATTRS{idProduct}=="0036", ENV{ID_MM_TELIT_TAGGED}="1",
>  # NOTE: Qualcomm Gobi-based devices like the LE920 should not be handled
>  # by this plugin, but by the Gobi plugin.
>
> -GOTO="mm_telit_port_types_end"
>  LABEL="mm_telit_port_types_end"
> --
> 2.9.0
>



-- 
Aleksander
https://aleksander.es


More information about the ModemManager-devel mailing list