841-USB-serial-option-add-ZTE-MF286D-modem.patch 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. From 67ae6887854e4b6e736c34d4fd7087540ed31d4e Mon Sep 17 00:00:00 2001
  2. From: Pawel Dembicki <[email protected]>
  3. Date: Tue, 11 Jan 2022 21:59:50 +0100
  4. Subject: [PATCH] USB: serial: option: add ZTE MF286D modem
  5. Modem from ZTE MF286D is an Qualcomm MDM9250 based 3G/4G modem.
  6. T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=5000 MxCh= 0
  7. D: Ver= 3.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1
  8. P: Vendor=19d2 ProdID=1485 Rev=52.87
  9. S: Manufacturer=ZTE,Incorporated
  10. S: Product=ZTE Technologies MSM
  11. S: SerialNumber=MF286DZTED000000
  12. C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=896mA
  13. A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
  14. I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=ff Driver=rndis_host
  15. E: Ad=82(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
  16. I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=rndis_host
  17. E: Ad=81(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  18. E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  19. I:* If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
  20. E: Ad=83(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  21. E: Ad=02(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  22. I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
  23. E: Ad=85(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
  24. E: Ad=84(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  25. E: Ad=03(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  26. I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
  27. E: Ad=87(I) Atr=03(Int.) MxPS= 10 Ivl=32ms
  28. E: Ad=86(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  29. E: Ad=04(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  30. I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan
  31. E: Ad=88(I) Atr=03(Int.) MxPS= 8 Ivl=32ms
  32. E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  33. E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  34. I:* If#= 6 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=usbfs
  35. E: Ad=05(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  36. E: Ad=89(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms
  37. Signed-off-by: Pawel Dembicki <[email protected]>
  38. https://lore.kernel.org/linux-usb/[email protected]/
  39. ---
  40. drivers/usb/serial/option.c | 2 ++
  41. 1 file changed, 2 insertions(+)
  42. diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
  43. index 42420bfc983c..962e9943fc20 100644
  44. --- a/drivers/usb/serial/option.c
  45. +++ b/drivers/usb/serial/option.c
  46. @@ -1649,6 +1649,8 @@ static const struct usb_device_id option_ids[] = {
  47. .driver_info = RSVD(2) },
  48. { USB_DEVICE_INTERFACE_CLASS(ZTE_VENDOR_ID, 0x1476, 0xff) }, /* GosunCn ZTE WeLink ME3630 (ECM/NCM mode) */
  49. { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1481, 0xff, 0x00, 0x00) }, /* ZTE MF871A */
  50. + { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1485, 0xff, 0xff, 0xff), /* ZTE MF286D */
  51. + .driver_info = RSVD(5) },
  52. { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1533, 0xff, 0xff, 0xff) },
  53. { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1534, 0xff, 0xff, 0xff) },
  54. { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1535, 0xff, 0xff, 0xff) },
  55. --
  56. 2.25.1