Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1116937pxb; Fri, 20 Nov 2020 01:19:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1bC6ehN4YjA71I7dSaIn8fNH4Xnd+etxQUr8TE72vCNUuW+idlULt91DHFfSt58VhwBUX X-Received: by 2002:a17:906:71d3:: with SMTP id i19mr4741980ejk.187.1605863942278; Fri, 20 Nov 2020 01:19:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605863942; cv=none; d=google.com; s=arc-20160816; b=Av3woEGnDrQAjrKuX6joKDTKECg+Oj8qWvC3VieJnncdpZLY51+fHkSdAhP6tBiJaD v41tzNFdgxb78tEFFaE6hIGOW3hnwh1OYEsiXNoK31uVjD2rpfaiY5hwM3bKk+7ki/H/ S2lBr/1LbxY9kEohCdA/tf4aqGqRdAf4I6mrL/F5v3DI8SPgO3tZtF7nB+Xyqe1zEJzT P2cg1xsV1Wv+kU3SxbLxVYfj5qKoSr5R0vQNn+UHI6usSy0DiSOpQb4voBr4OwPZYHYo SjgiBRhzrl6L4LCdtWxYtZggSbxS9sM43dYVcKX0Pg5JGzuJo0URGC4rTFYXFM/i5XOr tQMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fcNvMotCM1exp3r5B/p5/L6Jzulju5L2C7j0PonYvws=; b=Wf66x04shrJDmwGnUzirV7UrqFbK5IcQYQp5DvYV1Vel4PgqbqHtkY7awcekb8436L U5f2HsAyg/wqlq5oyryKQMLf15MqoRwZ28tYHXoTcTq/LrLOPwCawcNZ+kGwd5xaqgNh uWAPN+8vTPVv+FF1SaHCjClbWOENYCDLcvJuc5ste6uGkeEVuOkIXzT7bVBZR91XnuL1 wg0Lctsmtls2w6mwwA51WzKDHfPAXySup3KDkNxSAX9G6ABDVOnoq+pH4haGx8Tdg/FF 8Yx4X+WXwLlFbF8Hll5peLsQgW3h8borM627wNzeBikU6ek7AKhYevaCh5BHUqXHgtM5 ByKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Bt0OxNh7; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oj19si1340799ejb.384.2020.11.20.01.18.39; Fri, 20 Nov 2020 01:19:02 -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=@chromium.org header.s=google header.b=Bt0OxNh7; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726483AbgKTJOr (ORCPT + 99 others); Fri, 20 Nov 2020 04:14:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgKTJOq (ORCPT ); Fri, 20 Nov 2020 04:14:46 -0500 Received: from mail-ua1-x942.google.com (mail-ua1-x942.google.com [IPv6:2607:f8b0:4864:20::942]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1310AC0617A7 for ; Fri, 20 Nov 2020 01:14:46 -0800 (PST) Received: by mail-ua1-x942.google.com with SMTP id x13so2897531uar.4 for ; Fri, 20 Nov 2020 01:14:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fcNvMotCM1exp3r5B/p5/L6Jzulju5L2C7j0PonYvws=; b=Bt0OxNh7ImKNFNyLTLlhXgiQtJjb1avpqJVw/sQfCWf13hC9zEnABwcA3bIXNBuP6e 99mr1qOMejQQMLuHkm1ITiiv/1cM3vHwapHH3srjgmsRaIjOjXA1mAXAkuCDilBgoAmU 1PTZzr7+dv1mE/gAmQo5FidVG81H2idoks9fQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fcNvMotCM1exp3r5B/p5/L6Jzulju5L2C7j0PonYvws=; b=PtwPquez8q9gdZg+E5Cb1W8A5SVaJCrqc9M6XGVx8lNcSWTdw3u+02fW0He5+PluGp VcdCBUiPrPT9LpDQvBlPUtyVf1eIjSq3WygVdhkKbsC6yeTwmJyd77nJgyFG6FtWy7eH LlnKGQcIbnGjOCrGqIKDL/e2o1Gj7I01Pv0e892cf1T05UJX5jQ+sCbjFGqvJSDWF+Yy 0KFDkq9uDNNsgzFpYu9cAp1++kfZtrIMk8j0wObE0B09E9PvjiRBd2eLJ0B76VZu5YpX TROFLwb5f6BtVYaeM1OHxdWZp2xqCuv3JHKMRNjmVBGwSHhFg9xSiNyH3KyHCzPMDDQp lAKg== X-Gm-Message-State: AOAM5322kR0g2jEK2nWjyWeAtJ4KoAavWl7Iy/Tlhvm8rZ567MVFAigC 7l2KFipAW0JQGqkJ8R40S6TEEK2Pv42e2wB1TDztEA== X-Received: by 2002:ab0:2091:: with SMTP id r17mr1087575uak.102.1605863684678; Fri, 20 Nov 2020 01:14:44 -0800 (PST) MIME-Version: 1.0 References: <20201120090107.502832-1-vpalatin@chromium.org> In-Reply-To: <20201120090107.502832-1-vpalatin@chromium.org> From: Vincent Palatin Date: Fri, 20 Nov 2020 10:14:33 +0100 Message-ID: Subject: Re: [PATCH] usb: serial: option: add Fibocom NL668 variants To: Johan Hovold Cc: Greg Kroah-Hartman , linux-usb@vger.kernel.org, LKML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 10:01 AM wrote: > > From: Vincent Palatin > > Update the USB serial option driver support for the Fibocom NL668 Cat.4 > LTE modules as there are actually several different variants. > Got clarifications from Fibocom, there are distinct products: > - VID:PID 1508:1001, NL668 for IOT (no MBIM interface) > - VID:PID 2cb7:01a0, NL668-AM and NL652-EU are laptop M.2 cards (with > MBIM interfaces for Windows/Linux/Chrome OS), respectively for Americas > and Europe. > > usb-devices output for the laptop M.2 cards: > T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 4 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=ef(misc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > P: Vendor=2cb7 ProdID=01a0 Rev=03.18 > S: Manufacturer=Fibocom Wireless Inc. > S: Product=Fibocom NL652-EU Modem > S: SerialNumber=0123456789ABCDEF > C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA > I: If#= 0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim > I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim > I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) > I: If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none) > I: If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) > > Signed-off-by: Vincent Palatin > --- > drivers/usb/serial/option.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c > index 54ca85cc920d..2a6d59bc0201 100644 > --- a/drivers/usb/serial/option.c > +++ b/drivers/usb/serial/option.c > @@ -2046,12 +2046,13 @@ static const struct usb_device_id option_ids[] = { > .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, > { USB_DEVICE(0x0489, 0xe0b5), /* Foxconn T77W968 ESIM */ > .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, > - { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 */ > + { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 (IOT version) */ > .driver_info = RSVD(4) | RSVD(5) | RSVD(6) }, > { USB_DEVICE(0x2cb7, 0x0104), /* Fibocom NL678 series */ > .driver_info = RSVD(4) | RSVD(5) }, > { USB_DEVICE_INTERFACE_CLASS(0x2cb7, 0x0105, 0xff), /* Fibocom NL678 series */ > .driver_info = RSVD(6) }, > + { USB_DEVICE(0x2cb7, 0x01a0, 0xff) }, /* Fibocom NL668-AM/NL652-EU (laptop MBIM) */ I obviously screw up here. Wrong version of the patch with the wrong macro name I will send the updated one. > > { 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 */ > -- > 2.26.2 >