Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp322248pxu; Sun, 22 Nov 2020 09:13:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzumGyWDfgLveOxI97KQM0F9sXC70VZFtRMVTZDwvIQVHHJgPfKUOMIe3Xs5poYBsLgh6Z/ X-Received: by 2002:aa7:d615:: with SMTP id c21mr44330430edr.23.1606065218592; Sun, 22 Nov 2020 09:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606065218; cv=none; d=google.com; s=arc-20160816; b=gzBDO7zs+rJH2ahxalWWSMAJoXTACHeQCGvQNRbl4KersTXxwa4wKBBhXA0CVo8kSv fG0qNgZKOGwYGMUyRHcgt8vlOrtYhVuT+dEjj6HNtz0FZnMCAaOhFzCQh1BvGsMnjUTO roClQ7oOTDAejb5wKXmmNwztZZRp2RHAdWqTG5U8kyY0fLFEiQDcsiaHnULVh7vURi9+ j9PltWFp0f+1nAd8jN1r6RSgRDOVGQWQuEnNmZVvyY6KLpB3icb/kWK2ruFN9bsRictB AQtYuO+cJt5VU0dGj5hHGycaHwcKc70Cfxg0oJebb0CFuD/fn+bEl1LeM/TUCkaDRVfm Ub7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ybmPdz6fnsT5zvPJBa0meIngjFAA1PF79kRKKt2NmSc=; b=TMmK2wx7MeUAGQIqEbCQNK1cMlefx6HY5iR/iiTHYGwBGhKSgqnKt/zgSgjaFZ6m9g JwpNfNJUekinY9qt9DwNf1RM4gWb/dof/uNZASldfWQ3s6/wmGJG8pu+AGH8wlQR/W3h qSGVwgaovM3tCfQwDdRE91Wpku9nXLJKsINCA7vyusKdzXpdAh5tEl9A11DasZhaKr7L a2kED+E9ktnS+F4jdHgYGCCr/tJAj8nCAFQjpzfSskHKW5Hq/Qj4Cswt5M0BMRcF0Cwp ADoBHNiFb4k6faIQpxVESA4kWwXgdnRZMQtZNfl4qawE9olM8IRlYM3Oiv0BQGcg6aXv rTbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Sd5PCXih; 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 p3si4992980ejd.639.2020.11.22.09.13.14; Sun, 22 Nov 2020 09:13:38 -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=default header.b=Sd5PCXih; 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 S1728124AbgKVRIx (ORCPT + 99 others); Sun, 22 Nov 2020 12:08:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:58166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728112AbgKVRIx (ORCPT ); Sun, 22 Nov 2020 12:08:53 -0500 Received: from localhost.localdomain (unknown [157.51.147.79]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BADDE2078D; Sun, 22 Nov 2020 17:08:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606064932; bh=8PuEzUTxYMVvwrtl32gf9xz5576uUtYRrUUoSUterio=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Sd5PCXihLjlIgJ0V2ssFm7ozF4SWyx3zwdMYlhwoL+94Zm1ow7baqU41ZLST+VmO5 rENxLwq0yWzIH71LoFC+KPBKoHDiIWPnPLEHYFmYO5cILK6HKBO0S+k/dJxrzHjLR9 ifqzBFXhL86ow/cJnPMIFnKBtOoTB28M8CXYLbko= From: Manivannan Sadhasivam To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, patong.mxl@gmail.com, linus.walleij@linaro.org, mchehab+huawei@kernel.org, angelo.dureghello@timesys.com, Manivannan Sadhasivam Subject: [PATCH v5 3/3] usb: cdc-acm: Ignore Exar XR21V141X when serial driver is built Date: Sun, 22 Nov 2020 22:38:22 +0530 Message-Id: <20201122170822.21715-4-mani@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201122170822.21715-1-mani@kernel.org> References: <20201122170822.21715-1-mani@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mauro Carvalho Chehab The RTS/CTS line discipline for this device doesn't follow the standard. So, in order to properly support TX, a separate driver is needed. Ensure that cdc_acm will ignore it during probe time, if the Kernel is built with support for it. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Manivannan Sadhasivam --- drivers/usb/class/cdc-acm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index 30ef946a8e1a..719829e6b6db 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1890,6 +1890,12 @@ 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, + }, +#endif + /*Samsung phone in firmware update mode */ { USB_DEVICE(0x04e8, 0x685d), .driver_info = IGNORE_DEVICE, -- 2.25.1