]> git.baikalelectronics.ru Git - kernel.git/commit
USB: qcserial: Fix support for HP lt4112 LTE/HSPA+ Gobi 4G Modem
authorBjørn Mork <bjorn@mork.no>
Mon, 16 Nov 2015 12:15:46 +0000 (13:15 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 16 Nov 2015 17:29:07 +0000 (18:29 +0100)
commitea47f2fe19915382a8c976f761fa89734710d4bf
tree1a440447e5f06059cc50bf16a310f6d5e34c9b0c
parente0aa0cc954361ddff32bf6e80e058d760cc51fe9
USB: qcserial: Fix support for HP lt4112 LTE/HSPA+ Gobi 4G Modem

The DEVICE_HWI type was added under the faulty assumption that Huawei
devices based on Qualcomm chipsets and firmware use the static USB
interface numbering known from Gobi devices.  But this model does
not apply to Huawei devices like the HP branded lt4112 (Huawei me906e).
Huawei firmwares will dynamically assign interface numbers. Functions
are renumbered when the firmware is reconfigured.

Fix by changing the DEVICE_HWI type to use a simplified version
of Huawei's subclass + protocol scheme: Blacklisting known network
interface combinations and assuming the rest are serial.

Reported-and-tested-by: Muri Nicanor <muri+libqmi@immerda.ch>
Tested-by: Martin Hauke <mardnh@gmx.de>
Cc: <stable@vger.kernel.org>
Fixes: 64bca42edc0e ("USB: qcserial: Add support for HP lt4112 LTE/HSPA+ Gobi 4G Modem")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/qcserial.c