Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp104826pxb; Thu, 21 Jan 2021 02:27:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkq+DJ5Qy6PJpfjenH1M5KHWG76+x24koUfXNOyefbzab1+GWxJvtS05IjM8f3o/CudzyD X-Received: by 2002:a17:906:ae42:: with SMTP id lf2mr8324874ejb.487.1611224825008; Thu, 21 Jan 2021 02:27:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611224824; cv=none; d=google.com; s=arc-20160816; b=XGchBaLWraomcfWYJoTwSHm2mtkRscj1T4w03Pj4Ky3uAoMaXdEOqFSpvDnGGe/Lu8 SXPGLIFcT2w6krPvq6zWhgpUrp597H7ZvwmoOfVWcipAcnQ6fLXtsgZib3UZJMfR90N0 0An5ArEhtNid0mey0rqJexvz2xS0XZNQhdRLqtS+oJrAsoVYasASGlQFQGw6qmcDlsBF g2ChbASRPGKGlo1NztnP5R6326nSuWrTj6jjxEfDoDCVEBgZBI8lBpZ1215NE0rmRHGQ ETABXOW+KvPZa93WyLRwN+wHh9oiothw2FbL+/hQg+iHkvff38gJ2dCLYkszMoVfXmDu p6uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ov+I28smKRMSK4cxeMEFLrru85laRpMNhWe7COh3PX0=; b=qFFrp/9m85FMKWrLw4kQkhjgKkOxWW9dy8EGaG3RqnP17lpax1tguXOU8SFvk9066Y L/oEEHkJMuOo9sPyEge6BNjBZqcC0M5YZqxkp1NC++3udkJgWwTYZghjkdROhPpLKkZ6 IBWSH/p0f8s2cMVCb49erw29v8DtmLIoWhV1IJWW7wqEIhyijAFBjBidicF2Sq9Snd38 hjNeXv0C0SBvPHPKWnFNXjZirMzF579Piuyp+MQfjGj2coiPMr1bdciAWrq91bYRP2Hb kqzQMaB59Z15Fv3uH046plakxApbeHAv0NznxEYGShnCYOhHHlREvVgCUKKrri0VHUCf TXSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Y//oif6R"; 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 q4si1587423ejr.478.2021.01.21.02.26.41; Thu, 21 Jan 2021 02:27:04 -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=k20201202 header.b="Y//oif6R"; 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 S1728986AbhAUKZa (ORCPT + 99 others); Thu, 21 Jan 2021 05:25:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:57384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729104AbhAUKYc (ORCPT ); Thu, 21 Jan 2021 05:24:32 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1EF6F23356; Thu, 21 Jan 2021 10:23:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611224629; bh=Vk+g6s1/mECeUrJ4TEUTgxd3IC/yHrCw9bhT4vdIydE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y//oif6RNho7eiB/JWL7uxdyTnNwfe6Ifi9MR5XodbwLLMrMhEK5H8/qaRkrWyHAG aXW67zyO4Od3bbGPy3z4r1/nVh6zgS/QoZpqwQz6W4sZIXZFXLSejsr/5GzQaI52I8 sG+cYCkR0tZSYQcvQxrZxUuadGMHC5SrZMR0Lk03tjXa+CxlcfTlxCF3c8hH8P/EFg lDNWSqqnb2RHiA0GDEbKwIlxGSVQaxhk4y6gUmt0Fpgah2WaioaLmqQylm420hB/Db TnZiYnM1wugBTgtg28bpB4MpHMXMO6pIslQnZTDf1AdNBDQsmXEm9xfp6yGG3UPQv5 9E272uahxLWLQ== Received: from johan by xi with local (Exim 4.93.0.4) (envelope-from ) id 1l2X88-0004VM-4w; Thu, 21 Jan 2021 11:23:56 +0100 Date: Thu, 21 Jan 2021 11:23:56 +0100 From: Johan Hovold To: Manivannan Sadhasivam Cc: johan@kernel.org, gregkh@linuxfoundation.org, 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 Subject: Re: [PATCH v5 3/3] usb: cdc-acm: Ignore Exar XR21V141X when serial driver is built Message-ID: References: <20201122170822.21715-1-mani@kernel.org> <20201122170822.21715-4-mani@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201122170822.21715-4-mani@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 22, 2020 at 10:38:22PM +0530, Manivannan Sadhasivam wrote: > 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. This took a bit of effort to understand, but I think I know what you're referring to now. In ACM mode the device has RTS/CTS flow control enabled, which means TX will be disabled in case CTS isn't wired up correctly. It as nothing to do with line disciplines though. > 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, I've rewritten the commit message and applied this one now. Johan