Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp3751463ybg; Sun, 7 Jun 2020 09:27:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk4pThFNdw2g0Z734t9WlFVmKmlgUbissVyk8nlbdAuXRTW3oGIwAt35Q2qG40enaYyKQm X-Received: by 2002:a17:906:55c9:: with SMTP id z9mr18383994ejp.276.1591547234948; Sun, 07 Jun 2020 09:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591547234; cv=none; d=google.com; s=arc-20160816; b=c18imTXz4VOcQoyig0jX399GOXh3W+PUuDIx60Pa+3otxrFFrVTamQWapXNokp7IqV UFjONDZlmwjn1oLxzji7CBLezJUhroqZXHzkZ4xJtkV5+wU78iJC3vLNF/+k3LWEanG0 77Tb5AaNCFVdo9aN0baCnw49/BgcBF2s+EuiiXriMrTT7Pk0WLO4OjjjXh+mAAbW84Xz EWmmCsNN4rPxwDhymFKxBDOKAdgWN0AWcnro6EZxDRVH8lgVsOecaMQAqsddEYmN4eZ1 mSx4Jr9KZNWLCiWM2cCZuPfe371xAbQ0g2+CJ4yOXAWiFdQZbswv/6RWuA/xmF1KjKte sOQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=5Q9umbjaNyLJJbHLsFd2bWboEFhcvRaO3ScYxQZJ+ho=; b=GZV3CJdOehBcUeivWEpEdqwyr0z/wvBhvMc6iIXPfTaqcKDh9330vtswJmApSywNca coHU5oIpIb633oJfWHpM+kfjGRX6pejlf3VyLp8MGkv2g9+NtGuuPlEkfzAFMoae3Fy1 XqEP6fwf5bNcH9uHbZf2w0x0gP3nz4z0g6+iApeOY4dMma9XKUxmrTtQr1EeS7UGJOR7 lcm40HSxGi0ktegfJtpGs1z6ZHDEPPFEccmCzh4/Ja8P4yISYxGDvHDMSP5Zc2a6Jqxo W5gtjS+vtqo5LjTgQV2tDr4K6WTuPw/5Gu4yoBd+rybNSY1QaTyhTVJedI62Tm4jxLpg jp6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YWNlZmox; 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 u16si7054406eja.123.2020.06.07.09.26.52; Sun, 07 Jun 2020 09:27:14 -0700 (PDT) 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=YWNlZmox; 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 S1727011AbgFGQYY (ORCPT + 99 others); Sun, 7 Jun 2020 12:24:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:49836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgFGQYX (ORCPT ); Sun, 7 Jun 2020 12:24:23 -0400 Received: from localhost.localdomain (unknown [157.51.228.97]) (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 642D42067B; Sun, 7 Jun 2020 16:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591547063; bh=fFoDKeB402RPaZ30lWRnaWtGGIGIaStgUveP8+V815U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YWNlZmoxDenF24Xvqgxo0uTUV28Ocb+71oZ/6eCX2hAVh9Sk3epHLXrKEQWAFYacu x9d7VBL62l0fGD1pMWfy6Jza0bMGx1xRGOjRIhPAQJ7lnq8fHUim6bgYwsD6W2EqLK +z+esVgpuQ6d7s0MCWxybNdKCRB7SItq34GtG8cU= 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, Manivannan Sadhasivam Subject: [RESEND PATCH v4 3/3] usb: cdc-acm: Ignore Exar XR21V141X when serial driver is built Date: Sun, 7 Jun 2020 21:53:50 +0530 Message-Id: <20200607162350.21297-4-mani@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200607162350.21297-1-mani@kernel.org> References: <20200607162350.21297-1-mani@kernel.org> Sender: linux-kernel-owner@vger.kernel.org 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 84d6f7df09a4..30e20d06d044 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1864,6 +1864,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.17.1