Message ID | 20220623085644.13105-1-macpaul.lin@mediatek.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 15b694e96c31807d8515aacfa687a1e8a4fbbadc |
Headers | show |
Series | [v2] USB: serial: option: add Quectel RM500K module support | expand |
On Thu, Jun 23, 2022 at 04:56:44PM +0800, Macpaul Lin wrote: > Add usb product id of the Quectel RM500K module. > > RM500K provides 2 mandatory interfaces to Linux host after enumeration. > - /dev/ttyUSB5: this is a serial interface for control path. User needs > to write AT commands to this device node to query status, set APN, > set PIN code, and enable/disable the data connection to 5G network. > - ethX: this is the data path provided as a RNDIS devices. After the > data connection has been established, Linux host can access 5G data > network via this interface. > > "RNDIS": RNDIS + ADB + AT (/dev/ttyUSB5) + MODEM COMs > > usb-devices output for 0x7001: > Co-developed-by: Ballon Shi <ballon.shi@quectel.com> > Signed-off-by: Ballon Shi <ballon.shi@quectel.com> > Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com> > Cc: stable@vger.kernel.org > --- > Change for v2: > - Update USB interfaces descriptions in the commit message. > - Fix typo, format and contributers in the commit message. > - Update PID definition in numeric order. Thanks for the update. Now applied. Johan
diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index ed1e50d83cca..5b94519c790b 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -256,6 +256,7 @@ static void option_instat_callback(struct urb *urb); #define QUECTEL_PRODUCT_RM500Q 0x0800 #define QUECTEL_PRODUCT_EC200S_CN 0x6002 #define QUECTEL_PRODUCT_EC200T 0x6026 +#define QUECTEL_PRODUCT_RM500K 0x7001 #define CMOTECH_VENDOR_ID 0x16d8 #define CMOTECH_PRODUCT_6001 0x6001 @@ -1147,6 +1148,7 @@ static const struct usb_device_id option_ids[] = { .driver_info = ZLP }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200S_CN, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM500K, 0xff, 0x00, 0x00) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_6001) }, { USB_DEVICE(CMOTECH_VENDOR_ID, CMOTECH_PRODUCT_CMU_300) },