From patchwork Sun Dec 27 03:17:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 352903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84CC9C433E6 for ; Sun, 27 Dec 2020 03:18:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 524D8221FF for ; Sun, 27 Dec 2020 03:18:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726265AbgL0DSR (ORCPT ); Sat, 26 Dec 2020 22:18:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgL0DSQ (ORCPT ); Sat, 26 Dec 2020 22:18:16 -0500 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3568C061794 for ; Sat, 26 Dec 2020 19:17:30 -0800 (PST) Received: by mail-pf1-x433.google.com with SMTP id h186so4487436pfe.0 for ; Sat, 26 Dec 2020 19:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GYIM+mYtyqY+yCFeee8kL6L8zert0ZB/NFPW/mxtlTk=; b=VbgBrFUmveYY8h4y1bbMn2RhKrS9FALtbLc9FD/ZieS8ZtBEL55Vsm11lczNth7dK5 1P4onFC+lZf9pn6c2hGpYBWMWGwe/NJ+Lk9njYdzsAgJ143iFwL51AblehgEXdUzD5bt Kn5sy5xuE+8imBeipPrtqw1fYUeqdQgZGyMP4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=GYIM+mYtyqY+yCFeee8kL6L8zert0ZB/NFPW/mxtlTk=; b=Oe2vYXngKMFRwFr1AYxzCH95qh3iiqxqOt1lUgIBHb3X6CbsJY4n4ddpr3loBtwAmJ tz1qkT4OUeCtBB8vgXjjnFvYx5j2t8q69pknSHPsucOM+CGkkMnPNY7BLUF/jkR7n1Vg VrP45DLaJz4HE5WYH8NL5jUC1+s34efg4CzCHAUwNcgC0Cfyv+jq8BOVd4IdWUS8krGV cr2lLByUJyL2ckHHo9CKFEqDMin+X6+LluYcDu0mqz5212tFInXEFppmApDFj1uXpjYc oJazikKK0xoY4QzKsHfx5W4Y0FP2XWBAJ7r7kksaQKSFJFza8zmZNcVBxv7CArcq0noT HwRg== X-Gm-Message-State: AOAM531bu6XSBSZlRFBHHo+x96VwpfdV0AN9pzwxj25kWz+0hQmBhYN5 LsvLhQbD//Nkd6Fe1uOrS/IwJA== X-Google-Smtp-Source: ABdhPJzZIGPuHkvDujqDq5tSEYeDpk5rvl8jDRr+9ZnUcAaM4JSKnYq4cztpv2P1BBC46dp4i7b6Ow== X-Received: by 2002:aa7:8f0e:0:b029:19e:5a34:8c85 with SMTP id x14-20020aa78f0e0000b029019e5a348c85mr36090800pfr.22.1609039050020; Sat, 26 Dec 2020 19:17:30 -0800 (PST) Received: from shiro.work (p1268123-ipngn200803sizuokaden.shizuoka.ocn.ne.jp. [118.13.124.123]) by smtp.googlemail.com with ESMTPSA id v10sm8928967pjr.47.2020.12.26.19.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Dec 2020 19:17:29 -0800 (PST) From: Daniel Palmer To: johan@kernel.org, linux-usb@vger.kernel.org Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH] USB: serial: option: add LongSung M5710 module support Date: Sun, 27 Dec 2020 12:17:16 +0900 Message-Id: <20201227031716.1343300-1-daniel@0x0f.com> X-Mailer: git-send-email 2.30.0.rc2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add a vendor id for LongSung and a product id for the M5710 module. Signed-off-by: Daniel Palmer --- drivers/usb/serial/option.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index 2c21e34235bb..2666e061c38d 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -560,6 +560,9 @@ static void option_instat_callback(struct urb *urb); #define WETELECOM_PRODUCT_6802 0x6802 #define WETELECOM_PRODUCT_WMD300 0x6803 +/* LongSung */ +#define LONGSUNG_VENDOR_ID 0x2df3 +#define LONGSUNG_PRODUCT_M5710 0x9d03 /* Device flags */ @@ -2060,6 +2063,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1404, 0xff) }, /* GosunCn GM500 RNDIS */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1405, 0xff) }, /* GosunCn GM500 MBIM */ { USB_DEVICE_INTERFACE_CLASS(0x305a, 0x1406, 0xff) }, /* GosunCn GM500 ECM/NCM */ + /* LongSung devices */ + { USB_DEVICE(LONGSUNG_VENDOR_ID, LONGSUNG_PRODUCT_M5710) }, /* LongSung M5710 */ { } /* Terminating entry */ }; MODULE_DEVICE_TABLE(usb, option_ids);