From 6a3f91f06ec88dcb5cb186de000420d70df7a779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Sat, 26 Mar 2016 19:04:05 +0100 Subject: [PATCH] Update 99-dell5809e.rules --- etc/udev/rules.d/99-dell5809e.rules | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/etc/udev/rules.d/99-dell5809e.rules b/etc/udev/rules.d/99-dell5809e.rules index b7329d8..312755d 100644 --- a/etc/udev/rules.d/99-dell5809e.rules +++ b/etc/udev/rules.d/99-dell5809e.rules @@ -1,6 +1,10 @@ ACTION!="add|change", GOTO="mbim_to_qmi_rules_end" SUBSYSTEM!="usb|drivers", GOTO="mbim_to_qmi_rules_end" +# ignore any device with only one configuration +SUBSYSTEM=="usb", \ + ATTR{bNumConfigurations}=="1", GOTO="mbim_to_qmi_rules_end" + # load qcserial module SUBSYSTEM=="usb", \ ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \ @@ -16,4 +20,14 @@ SUBSYSTEM=="drivers", \ ENV{DEVPATH}=="/bus/usb-serial/drivers/qcserial", \ ATTR{new_id}="413c 81b1" +# load qmi_wwan module +SUBSYSTEM=="usb", \ + ATTR{idVendor}=="413c", ATTR{idProduct}=="81b1", \ + RUN+="/sbin/modprobe -b qmi_wwan" + +# add the new id in the qmi_wwan driver +SUBSYSTEM=="drivers", \ + ENV{DEVPATH}=="/bus/usb-serial/drivers/qmi_wwan", \ + ATTR{new_id}="413c 81b1" + LABEL="mbim_to_qmi_rules_end"