From patchwork Fri Feb 26 13:28:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12106673 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=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 21D84C433E9 for ; Fri, 26 Feb 2021 13:30:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D06A664EF0 for ; Fri, 26 Feb 2021 13:30:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230203AbhBZNaO (ORCPT ); Fri, 26 Feb 2021 08:30:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:53112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbhBZNaB (ORCPT ); Fri, 26 Feb 2021 08:30:01 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5056664F14; Fri, 26 Feb 2021 13:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614346117; bh=pDZRiHRCbWfi2gnpuv/OSYPozj5G9SfSIdoHNgW532A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FGc0qpwirSZN4O53Aa8g3CkW1xBeKYW9hpcqpXuJORpwQ4BIZL6vKRuWOMzB93Ea6 WveUY2CV1JC8/wDOswoZ218M+rRE+5kgWxnClIGehMbZ4Nd7/6ZfUfxs/3XEvEp9t4 zGhLqZsS3vbXeYTszUkv5+cqhi647p6kcErRv/HxoOd+iMBkRdvDABlyHKzHDWPVJk OtZewgNMAxQ/FCsYCkgd5BY3M+jPCVYhiVan9W/jdUVTxTsVOfbn1NcGprcDx+2DvG CxdDhXo2zX2nNKmN3EegBZhydgqUN6jNle6VIaq5ZPmNHLfPR23bDBC02obhJVO05A l99zH5LcZcE9Q== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1lFdAY-002nc3-Nt; Fri, 26 Feb 2021 14:28:34 +0100 From: Mauro Carvalho Chehab To: Johan Hovold Cc: Mauro Carvalho Chehab , Greg Kroah-Hartman , Oliver Neukum , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH 7/7] USB: cdc-acm: add other non-standard xr_serial models to ignore list Date: Fri, 26 Feb 2021 14:28:33 +0100 Message-Id: <922b6686be927fd1e176852d9cebdd8fca7f42dd.1614345081.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Sender: Mauro Carvalho Chehab Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Now that the xr_serial got support for other models, add their USB IDs as well, as those devices won't work with the standard CDC driver. Signed-off-by: Mauro Carvalho Chehab --- drivers/usb/class/cdc-acm.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 37f824b59daa..bb7e30e9104d 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1902,9 +1902,20 @@ static const struct usb_device_id acm_ids[] = { #endif #if IS_ENABLED(CONFIG_USB_SERIAL_XR) - { USB_DEVICE(0x04e2, 0x1410), /* Ignore XR21V141X USB to Serial converter */ - .driver_info = IGNORE_DEVICE, - }, + /* Ignore MaxLinear/Exar USB UARTs and USB UART bridges */ + { USB_DEVICE(0x04e2, 0x1400), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1401), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1402), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1403), .driver_info = IGNORE_DEVICE,}, + + { USB_DEVICE(0x04e2, 0x1410), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1411), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1412), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1414), .driver_info = IGNORE_DEVICE,}, + + { USB_DEVICE(0x04e2, 0x1420), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1422), .driver_info = IGNORE_DEVICE,}, + { USB_DEVICE(0x04e2, 0x1424), .driver_info = IGNORE_DEVICE,}, #endif /*Samsung phone in firmware update mode */