Huawei E3276 problem
Bjørn Mork
bjorn at mork.no
Tue Nov 13 03:21:59 PST 2012
Olof Ermis <olof.ermis at gmail.com> writes:
> Hi!
>
> The patch worked, it didn't call the usb_driver_claim_interface.
>
> The echo gives:
>
> root at oloflinux:~/linux# echo '1-1:1.1' >/sys/bus/usb/drivers/cdc_ncm/unbind
> -bash: echo: write error: No such device
Yes, that was for Tommy. You will have to use your usb bus and port
numbers. Doing e.g.
ls -l /sys/bus/usb/drivers/cdc_ncm
will tell you which devices the driver is bound to. You'll see one or
more symlinks like
lrwxrwxrwx 1 root root 0 Nov 13 12:11 2-4:1.8 -> ../../../../devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.8
So to unbind this USB interface from the driver, I would do
echo '2-4:1.8' >/sys/bus/usb/drivers/cdc_ncm/unbind
BTW, after considering the plain symmetry of this, I decided that it is
best to add a test to unbind as well. I'm attaching the (hopefully)
final version of the patch. Does it look OK to you?
Bjørn
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-net-cdc_ncm-add-Huawei-devices.patch
Type: text/x-diff
Size: 3563 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20121113/e097098d/attachment.patch>
More information about the libqmi-devel
mailing list