Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13720866pxu; Mon, 4 Jan 2021 02:34:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5sNsQ7bxsNWdJGrXqiUr6WTtyLufSN2j9I5bEWrA6xmdVvM1P2XrYS6D/MALhWkIcesp+ X-Received: by 2002:a17:906:565a:: with SMTP id v26mr65881515ejr.332.1609756473966; Mon, 04 Jan 2021 02:34:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609756473; cv=none; d=google.com; s=arc-20160816; b=E6WeTlam84r8WZvNbmLru+3e0E/tt/kATh7Turv4nOO+zdTZp5trNVfWw+nOrbhh0W aoYWm5GbQTY39zYuEpjSzdiB+pCKluZeGc8SSbBCit1f9GSfMBIjynPLn31Tysv1vaan bqR18y5UjvD5dD1Rl3yHTPjLkyLhyBpY0j7IDQusHMApvpMKk9BiHvnsPZTQGpTc1LSw n8Q8rdKny9CKfCdv3wy+1mApjBTvAA41MJjdGgQhK7NFQ+X+oohrEr3kTUDi8RAbDwbp yByLYQFFmu0UeGhod3hTGAHCb7lSIyvBt8PM2F1DdqY599Nz7tG6YLaLlMdyjtlZtmDm kwtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KYmHGUQvlRDkWJ3HapdC0fesfVHKPaOT0y2KeF1iIvg=; b=AiprNVE+L5JhcXIW6b3yUHc3iitwfYl+Rf963xSfACMu3u+v/GcTDUVyOoHBDL9+2x xW9po02C0XC5BFq3kdo3vW2xS66XcOXji6KFFE6+cKBtYOZEBve/npHHhAOqGbQofgOz J7tnL+2MsGvueOJYYE0rpzdGhi6D7o2zF4/azp1V1zL+VpcZb2ZJ0fHXPGtYRKrdT5ia rWEdAZnjA+ykD8HUOHnxoecr8wtBw2sZ9AExcNJ+s89BOf87YU+cS2yAMfeUUep72r7S eego3edKL6UrLNOec80n97SAoMZ9m76g0nxU4GMlYIa2UJXNOTGb/CAQkH3TlEpawDx3 +g/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rk+dK/Al"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g24si28390030ejh.77.2021.01.04.02.34.09; Mon, 04 Jan 2021 02:34:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="rk+dK/Al"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726603AbhADKdN (ORCPT + 99 others); Mon, 4 Jan 2021 05:33:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:52672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726525AbhADKdM (ORCPT ); Mon, 4 Jan 2021 05:33:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 089C121D93; Mon, 4 Jan 2021 10:32:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609756352; bh=GDEaV/Y9fARhY1SDAGX9Q9b+10jDYcb+/zk9F00tQww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rk+dK/AltgRhhJAS8L3GOMP7UcUiUCRdO7M6Ajuzj+UX6HaJBWkXzybESvPqblhrh H0NgVVL5UqaolzGCk612D6eWVahm/NYrwm8XLsa+NP8TNT750gUaNnDVCTz2KPHj60 vjQcguaKqD16dxKNcReab5qQnjNtzkSWOYgZ6RMnao7wfqUZ1/x6d3LKbRWUBH6prU kYJ/hMuf7UhjqkJl2IZm6G3/KH25q06rXu58LcvilLwuL1T/IoEqetI1TN2Ee20VoJ cUyHf8WdMmrqkje3uyyLvXvayP7f4IHvOveVbp65aK4HpWyrkPo/4PwQLeEERsmO4g BZTh8UG1eIkzw== Received: from johan by xi.lan with local (Exim 4.93.0.4) (envelope-from ) id 1kwNA4-0001Q8-3i; Mon, 04 Jan 2021 11:32:28 +0100 Date: Mon, 4 Jan 2021 11:32:28 +0100 From: Johan Hovold To: Daniel Palmer Cc: johan@kernel.org, linux-usb@vger.kernel.org, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: serial: option: add LongSung M5710 module support Message-ID: References: <20201227031716.1343300-1-daniel@0x0f.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201227031716.1343300-1-daniel@0x0f.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 12:17:16PM +0900, Daniel Palmer wrote: > 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 I'm trying to move away from adding such defines for new devices as they do not really add any value so I dropped them from the patch. > /* 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); Also, would you mind posting the "lsusb -v" output for this device for reference? Do you know what each interface is used for? I've applied this one locally, but I'll await your reply before pushing it out. Johan