From patchwork Sun Dec 25 20:52:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Garrett X-Patchwork-Id: 637235 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 00491C3DA7A for ; Sun, 25 Dec 2022 21:02:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbiLYVCB (ORCPT ); Sun, 25 Dec 2022 16:02:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229514AbiLYVCA (ORCPT ); Sun, 25 Dec 2022 16:02:00 -0500 Received: from cavan.codon.org.uk (cavan.codon.org.uk [176.126.240.207]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CAB02AD2; Sun, 25 Dec 2022 13:01:54 -0800 (PST) Received: from x2100.. (unknown [IPv6:2607:f598:b99a:480:2da1:ebcf:44f5:35ad]) by cavan.codon.org.uk (Postfix) with ESMTPSA id ED76E424AD; Sun, 25 Dec 2022 20:52:47 +0000 (GMT) From: Matthew Garrett To: johan@kernel.org, bjorn@mork.no Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org, Matthew Garrett Subject: [PATCH 3/3] USB: serial: option: Add Novatel MiFi 8800L diag endpoint Date: Sun, 25 Dec 2022 12:52:24 -0800 Message-Id: <20221225205224.270787-4-mjg59@srcf.ucam.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221225205224.270787-1-mjg59@srcf.ucam.org> References: <20221225205224.270787-1-mjg59@srcf.ucam.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org The Novatel MiFi 8800L can be configured into exposing additional endpoints by sending four bytes of 0s to the HID endpoint it exposes by default. One of the additional exposed endpoints is a Qualcomm DIAG protocol interface. Add the information for that in order to allow it to be used. Signed-off-by: Matthew Garrett --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index edbb6054de91..17ea4e48afb7 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -161,6 +161,7 @@ static void option_instat_callback(struct urb *urb); #define NOVATELWIRELESS_PRODUCT_U620L 0x9022 #define NOVATELWIRELESS_PRODUCT_G2 0xA010 #define NOVATELWIRELESS_PRODUCT_MC551 0xB001 +#define NOVATELWIRELESS_PRODUCT_8800L 0xB023 #define UBLOX_VENDOR_ID 0x1546 @@ -1055,6 +1056,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E362, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_E371, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_U620L, 0xff, 0x00, 0x00) }, + { USB_DEVICE_AND_INTERFACE_INFO(NOVATELWIRELESS_VENDOR_ID, NOVATELWIRELESS_PRODUCT_8800L, 0xff, 0xff, 0xff) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01) }, { USB_DEVICE(AMOI_VENDOR_ID, AMOI_PRODUCT_H01A) },