From patchwork Sun Jun 7 16:08:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 214942 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=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,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 87A19C433E0 for ; Sun, 7 Jun 2020 16:08:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E24720723 for ; Sun, 7 Jun 2020 16:08:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aFBmN6c3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726914AbgFGQIi (ORCPT ); Sun, 7 Jun 2020 12:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726888AbgFGQIg (ORCPT ); Sun, 7 Jun 2020 12:08:36 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AD98C08C5C3 for ; Sun, 7 Jun 2020 09:08:36 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id s23so6087927pfh.7 for ; Sun, 07 Jun 2020 09:08:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5Q9umbjaNyLJJbHLsFd2bWboEFhcvRaO3ScYxQZJ+ho=; b=aFBmN6c3g3lxrVen3aXTH25OAqgPnEotLREV7gHBiADOnziI4gVj13YMDVeBIueS8y Vq/rzqAmDjilIEGhndGVYVmklyPAHXvyh9bPksJ8374iMiJYjDMcAntQdt8nBNOYOdVR myzgdHUVg1+ABYaivy1vPH8gbfiuK3fA9WDiEUsus1pwcg4ipdCWjbyP4v2uPy8q6Hi8 L5+AIIzLuQ/VpfLdr8kAIqL4C1L3aa9fsDkGBLPvK07wOijvO/ax/4+att7dndNAL/v0 c4oxZzqGUG8AWGPSa8lGql7tHzWlXdEf2pHcjjbf3UgylptOdpG4LabkW+j9YQjvXlFu I+Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5Q9umbjaNyLJJbHLsFd2bWboEFhcvRaO3ScYxQZJ+ho=; b=HJJCd5wIEPSoT3A16B/D2Pn6QDQWOHZOFIbyvi8WxEuUfOU3PE5wGEG/bQVvEdvxSm JmTw77TomY+Yz4I07ZOCwJ+qs/ZLtGs1bTH5nqERXZqeLrJmLqpRRkYnRnLOwHQ8guiT eUqUf43wOH6yDEDRvI+3vku0khoWyrQKeR9oKxPoq6pbLiAA1JysNvXh6Q6c0HmJK7i8 myQ5sOssN5VxjMorXlxg9QdvH1S08eq8c8QFXD1rHfKxB7YEvq5XLzD9N31NYiMnWdJH i/g4RImQdCQe9koEEMbxGCaQvKuNmww8injeH4cqA99S8NjUV4OD7fqiJtytVjBei5pB aLLg== X-Gm-Message-State: AOAM5337Rogn0R5WkQ+8EWi33ECjJIZQbRqIPfUi69W9vySpfH7Ab5E+ zrQDlvVrnz9Zc/3nNEdNVStq X-Google-Smtp-Source: ABdhPJxFSdQLIiTkUSxdQUi8exHZeC48UYQ2lGufteC+HhdjlKQEgKMfZkMlFObtHBc0P28eg6cJ2A== X-Received: by 2002:a62:b40b:: with SMTP id h11mr17321031pfn.183.1591546116017; Sun, 07 Jun 2020 09:08:36 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:6e9a:8b0a:3d5e:1902:f17d:d125]) by smtp.gmail.com with ESMTPSA id r202sm4739449pfr.185.2020.06.07.09.08.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jun 2020 09:08:35 -0700 (PDT) From: Manivannan Sadhasivam X-Google-Original-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: [PATCH v4 3/3] usb: cdc-acm: Ignore Exar XR21V141X when serial driver is built Date: Sun, 7 Jun 2020 21:38:09 +0530 Message-Id: <20200607160809.20192-4-mani@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200607160809.20192-1-mani@kernel.org> References: <20200607160809.20192-1-mani@kernel.org> Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@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,