Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp299716pxa; Wed, 19 Aug 2020 01:23:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSDYC+ZmWWNMA859M+8cgc8TzPkhms5c4sOJbYi/svr3sPdskVlLDKsCDI1pY17YF4lwDY X-Received: by 2002:a17:906:d18c:: with SMTP id c12mr23424091ejz.151.1597825403789; Wed, 19 Aug 2020 01:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597825403; cv=none; d=google.com; s=arc-20160816; b=mTKh8eLvY4740C5Be0Ne2axRqehLTGnN1HyvQrsdS3+giXQnUeuxm3pTQA73zyfi9T x2B5wDTQ591pOuXajWj8r/Ivll0iJ9jYzBUVC1oTF3PrSvSUWtllzSz2OnAMvzSzYc0k bYMD5sf7iKWRPikdmwHBLUujzNstmeAqpBo1bLVtdMBVhGzSRYo47kfwGMi998mPAeQ9 wgJzwBfKlJsZosAgHTDHtprM/IeOT6DsTtdai1iChdnWRzdUbZIbN6DdPPyabz/Pg3O7 FJICKCncJW0QpL46V2llWemb2HW0E3MJSwQVMTaDScWIyAG2qUPcxlicyIJLbhyZpreX g/Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=RykTvXwmQHsplVxP8Po0k5F+2cc6/1GWIm2IYe1nXcs=; b=pBrNuZdGNhkURtxoZST91fU18PLhfC+HHwrImFSxOrmzMiQNv3iLfYVoncugmDG4gx rNH4nraIPLoJqL7ayVcl+4e4bTd8RtUuO+cu5AAIDqXytIlit5JBsRSoc9sdxSMYyJDG PAh846TX0KratH9cFBT4fnSEC0OqtOQ2nJIuLLPeXCnfYuL/3P8MhommRXelk16bn5Q4 UpILVbotibvmRg09IHibRaP4hFFqs1QsvfSX+8uouqbWNcuo1ltQQi90rUZfXZgWe8Ff TfSzRIS7NtxOC9fni7At7S8ykeaDVFHVgfqv+vG+sZVbYtDy8o2Sk7jIfg0QPccegMqi lUaQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si15655161edj.540.2020.08.19.01.22.59; Wed, 19 Aug 2020 01:23:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726342AbgHSITq (ORCPT + 99 others); Wed, 19 Aug 2020 04:19:46 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:56755 "EHLO lizzard.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgHSITp (ORCPT ); Wed, 19 Aug 2020 04:19:45 -0400 Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by lizzard.sbs.de (8.15.2/8.15.2) with ESMTPS id 07J8JXwx010309 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Aug 2020 10:19:33 +0200 Received: from [167.87.31.209] ([167.87.31.209]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 07J8JVu2005181; Wed, 19 Aug 2020 10:19:31 +0200 Subject: Re: [PATCH] usb-serial:cp210x: add support to software flow control To: china_shenglong Cc: Greg KH , johan@kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Wang Sheng Long References: <20200730075922.28041-1-china_shenglong@163.com> <20200730080639.GA216353@kroah.com> <386a30c0.ac88.1739eda0ee5.Coremail.china_shenglong@163.com> From: Jan Kiszka Message-ID: <415e7692-7452-41bb-ec7a-e80c42aa8507@siemens.com> Date: Wed, 19 Aug 2020 10:19:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <386a30c0.ac88.1739eda0ee5.Coremail.china_shenglong@163.com> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30.07.20 10:32, china_shenglong wrote: > Hi, Greg > > Yeah, It mainly adjusts the code style according to the kernel > specification, > and then modifies it according to your previous review comments. > > Thanks, > > BR/ Wang ShengLong > > > At 2020-07-30 16:06:39, "Greg KH" wrote: >>On Thu, Jul 30, 2020 at 03:59:22PM +0800, Sheng Long Wang wrote: >>> From: Wang Sheng Long >>> >>> When data is transmitted between two serial ports, >>> the phenomenon of data loss often occurs. The two kinds >>> of flow control commonly used in serial communication >>> are hardware flow control and software flow control. >>> >>> In serial communication, If you only use RX/TX/GND Pins, you >>> can't do hardware flow. So we often used software flow control >>> and prevent data loss. The user sets the software flow control >>> through the application program, and the application program >>> sets the software flow control mode for the serial port >>> chip through the driver. >>> >>> For the cp210 serial port chip, its driver lacks the >>> software flow control setting code, so the user cannot set >>> the software flow control function through the application >>> program. This adds the missing software flow control. >>> >>> Signed-off-by: Wang Sheng Long >>> --- >>> drivers/usb/serial/cp210x.c | 118 ++++++++++++++++++++++++++++++++++-- >>> 1 file changed, 113 insertions(+), 5 deletions(-) >> >>What changed from the previous version of this patch? That should be >>described below the --- line and this is a v2, right? >> >>thanks, >> >>greg k-h This no longer applies. Shenglong, could you send a rebased version as v3? Please also include a changelog after the "---" separator this time. Thanks, Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux