From patchwork Wed Mar 24 07:41:11 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: 409274 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.2 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 A40D9C433C1 for ; Wed, 24 Mar 2021 07:42:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6015B619E1 for ; Wed, 24 Mar 2021 07:42:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235714AbhCXHlx (ORCPT ); Wed, 24 Mar 2021 03:41:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:58204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235625AbhCXHlT (ORCPT ); Wed, 24 Mar 2021 03:41:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3ED67619FA; Wed, 24 Mar 2021 07:41:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1616571678; bh=h9+yg+LKCptBrIFFjhsjQQ4j1e01DH+GCFCab0dYLJU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iOXHzMPllBsdO7gKwWq2Irwgzm4lQ28XFJL2j98J9j6+stcfr2FB+oFfalDuF7wWd fxijM+SNFfgi/pxtEfitL1jOeJF2AIKzWlBSsWddeQEUMIJGqR/MPpmcyRqGJNM/qz Mna/EVX0bGV1sWIBFLclOSuSj1xgK2JNEay65xm0240E3AXNZ8nRQ/fu4rMvHCnGH2 LnnLU9aAELB3Hvl+JBoM1d10mNx8cHL4PTvbAFczBpR74JewkJH5V1WsXDiWsdF9Q1 GyFLz26/73D6TclhGbGDCbTHyDn1NtK1myl8VVfXeMgBxJHDroPQQuyU1eVqDpZSes CGlcgNAn/EoVQ== Received: by mail.kernel.org with local (Exim 4.94) (envelope-from ) id 1lOy8i-000umk-09; Wed, 24 Mar 2021 08:41:16 +0100 From: Mauro Carvalho Chehab To: Johan Hovold , Greg Kroah-Hartman Cc: Mauro Carvalho Chehab , Oliver Neukum , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [PATCH v2 7/7] USB: cdc-acm: add other non-standard xr_serial models to ignore list Date: Wed, 24 Mar 2021 08:41:11 +0100 Message-Id: <5155887a764cbc11f8da0217fe08a24a77d120b4.1616571453.git.mchehab+huawei@kernel.org> X-Mailer: git-send-email 2.30.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 39ddb5585ded..839b80093478 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 */