Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2912310ybg; Sat, 6 Jun 2020 05:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2/YMWperEgj4xK3BSZ3ffYsk5NNmFAVR8Loabvj6k5iWvTDHWn2w87Fgwmk+uljAzEiFv X-Received: by 2002:a50:e14e:: with SMTP id i14mr13129241edl.279.1591446640812; Sat, 06 Jun 2020 05:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591446640; cv=none; d=google.com; s=arc-20160816; b=eYuThmIeI495j4gfu+FsDMojyhx0IQgTSA1e8IglJowWe1c9zrIbG25frxLKYRKQY/ 8AfCDMOyRDzB/FAoVTkXY8HOh/zKAzJUTbknPoD0NtUUqP9iRLBrlJirJnGsEwFTBjgZ b+g3waJBbWki5un5UHRwBh3VpgwLeJuGfO3aJgRDbQwQdgKRq0XLrbfZRp9WqYyelVVM E0ZVQCtN8wCZ9pzFc/ilYi94m07K0oR/v3JfKkViPVNd1gnrFFqjJuH6p9bhdg2dww7P n4xfDxt+yezbdR/0qUrQrTuzuccH+uYXuklyAgggS6BSlpigcs0HDAyvxB8skaMAGMa4 sujg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/1Q2+lcydVfdeJlZXwXQHR9+MrX/Du5qJYvvqCu/224=; b=wvkQR7X2XWykyJLAXuWFtvPDCXujW0u4cuUdab9bjoT1jclQk+6XSITZmq2Z2kEPyZ O97X+rfSeYTZf0KbbnOKirCYj4eq2OkysPxLyyveZvbJUxdMuhunDbaKf0ErCKWYvOCN t57+UT43WLIQgMz67Iiwl2PRNr2Aj9WH8lw9g8ad1YOQhNXdPoRMpHwPtEccfkyQA0pj EcSiTLT/nHa/cnOtH+MXiJJChwuJYAPLqUq3hzDMs/Pc7+PlyBVICl+JZD75PE9suCoA RcSk6hG7JJCYxOK3ghl6Dv7LAXE+ThT/Eaad6OI5yfIfpDxUwGJPG8uUC/eExdpTsj7o 5d/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="PARj/IYR"; 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 d6si5247957eja.468.2020.06.06.05.30.18; Sat, 06 Jun 2020 05:30:40 -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="PARj/IYR"; 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 S1728796AbgFFM1q (ORCPT + 99 others); Sat, 6 Jun 2020 08:27:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:45722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbgFFM1p (ORCPT ); Sat, 6 Jun 2020 08:27:45 -0400 Received: from Mani-XPS-13-9360 (unknown [157.50.82.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 11509206A2; Sat, 6 Jun 2020 12:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591446465; bh=ML3S8CdEFed2kBmijE/zDiu+99L+DuJ4EM/NIgTJzU4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PARj/IYRAC+7cokvgctBmUVc3neIR7I9whdl/ScFEWGQrdfOMzeOH/mNPFJ6zdq/H 7hwrDsoOJbgWoArYLN7pvaxG/Aci7MPG3xRv2EIV7YyK43sk+7oo0pxt7VfMFj9MBm +F6uJxwibIv/TsKy0OAL/EO93gt9Fq0nMcLG6c1w= Date: Sat, 6 Jun 2020 17:57:35 +0530 From: Manivannan Sadhasivam To: Mauro Carvalho Chehab Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, patong.mxl@gmail.com Subject: Re: [PATCH v3 0/2] Add support for MaxLinear/Exar USB to serial converters Message-ID: <20200606122735.GB31973@Mani-XPS-13-9360> References: <20200430184924.31690-1-mani@kernel.org> <20200605131355.18107dbb@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200605131355.18107dbb@coco.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mauro, On Fri, Jun 05, 2020 at 01:13:55PM +0200, Mauro Carvalho Chehab wrote: > Em Fri, 1 May 2020 00:19:22 +0530 > mani@kernel.org escreveu: > > > From: Manivannan Sadhasivam > > > > Hello, > > > > This series adds support for MaxLinear/Exar USB to serial converters. > > This driver only supports XR21V141X series but it can easily be extended > > to other series in future. > > > > This driver is inspired from the initial one submitted by Patong Yang: > > > > https://patchwork.kernel.org/patch/10543261/ > > > > While the initial driver was a custom tty USB driver exposing whole > > new serial interface ttyXRUSBn, this version is completely based on USB > > serial core thus exposing the interfaces as ttyUSBn. This will avoid > > the overhead of exposing a new USB serial interface which the userspace > > tools are unaware of. > > Hmm... I guess you also need the enclosed patch, to ensure that cdc_acm > won't try to hijack it, when the Kernel is built with both drivers. > Ah right. I will include this patch in next iteration. Many thanks! Regards, Mani > Thanks, > Mauro > > [PATCH] usb: cdc-acm: ignore Exar XR21V141X when serial driver is > built > > 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 > > diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c > index ded8d93834ca..f87288834ded 100644 > --- a/drivers/usb/class/cdc-acm.c > +++ b/drivers/usb/class/cdc-acm.c > @@ -1889,7 +1889,11 @@ static const struct usb_device_id acm_ids[] = { > .driver_info = IGNORE_DEVICE, > }, > #endif > - > +#if IS_ENABLED(CONFIG_USB_SERIAL_XR) > + { USB_DEVICE(0x04e2, 0x1410), /* XR21V141X uses a different rts/cts discipline */ > + .driver_info = IGNORE_DEVICE, > + }, > +#endif > /*Samsung phone in firmware update mode */ > { USB_DEVICE(0x04e8, 0x685d), > .driver_info = IGNORE_DEVICE, >