Received: by 10.223.176.5 with SMTP id f5csp1088263wra; Sat, 3 Feb 2018 18:06:06 -0800 (PST) X-Google-Smtp-Source: AH8x227+G+06cguMVSBMauNtR980jFUQCujBcxF7OfT5XnexhyUUjMIbKL+T1KoTT4hIikRamF4t X-Received: by 10.99.122.2 with SMTP id v2mr2373012pgc.151.1517709966182; Sat, 03 Feb 2018 18:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517709966; cv=none; d=google.com; s=arc-20160816; b=c4cBXmBkPk5QlEGVkYIP7U5Y76mGp2LNZ70MzbCcCGqfrEyxC5FFvYeA26sNoZh4Cv ucEkCrnAma13V5D+bV815ZPaAmSLzWx6OWRJdlcIdsqU4ddPi8y448c/5M6Dk0ZOWSJ/ gHag1N8Vk48NzpoCsUMBDSQq8TT3AxQTgEFdCjcwsQTiEayapAEwCauktpCVFdWb7Suh XaAhWVRebNCFp6uud+L266wXmWwHQLJcabY6RWVuhLj7N1lZc12RWKIsdJkrHC5hftmo mHKV5Rn/06wp7mwgm44s6C/MN4CCUaeLfFtI3li6DXrh6lpS1tGQ1LHw512Srfq93DG4 nj1Q== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=rkjUQYr5ex5SQKQ9UiwecQWpBtcGhROKrZKH9rEbeSo=; b=l9srLjvClRMXqDXpzk7h+RqgzAWYcnCYAW1IxbTU/TpyaqkFLBJGl82HfmJUMTdcdo Yeg10BbNwGA8nqDkd1Da+/xSqUmBh773rJp+cdNQGUt0exuiFQ+nSPNSPgz06ENkoFHt t0Cn7N5rMbxFPktt2vj8ufCOEaQ0j14UWFER4/cIWwaE3eTiLvMKLh1DD98upvp0RatJ Og0zLIRPwFigLQq3QdZsvpow0C3SuqNk2DoKaGKyCmyUiqeLGuTWkB9dt/7SU/prbD7R Sy3qfPR2hIccuwi2tLCnlF8fheMKjOD/80zrgvwxMjaaOXxDDTZcL9/vqRhud0eUkHWx y5yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fXopzZN7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i35-v6si2539478plg.751.2018.02.03.18.05.51; Sat, 03 Feb 2018 18:06:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=fXopzZN7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751728AbeBDBvZ (ORCPT + 99 others); Sat, 3 Feb 2018 20:51:25 -0500 Received: from mail-pg0-f41.google.com ([74.125.83.41]:43593 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbeBDBvR (ORCPT ); Sat, 3 Feb 2018 20:51:17 -0500 Received: by mail-pg0-f41.google.com with SMTP id f6so4722547pga.10; Sat, 03 Feb 2018 17:51:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=rkjUQYr5ex5SQKQ9UiwecQWpBtcGhROKrZKH9rEbeSo=; b=fXopzZN7Qo8E0OsONeGLTtMavOJ1UnmkAz8tR6liqJl1QKyhatjDbpTURu+/TpGmVV oMqTQwXxHl1bwZG97P8fJnbS//j/vFicrucBB2OT1y5gjcuctO8zX1h2VlfGoNn6Wp+T Ci6ixlxKeP2pGWQ0R4K3nMssPH1syF+h2oAeL7YaVoH1xcvUEf+M98TjrgwF+cRB3t/h 9Vx+MOoemguk8t9HJa5QL9yICV0oBgngZFdM+u05cvBscVQzCDxk7k2DBtZzIKGIQ7N3 BocwFYgjSWxvDpswaPljgx5C4QQ6tfXoFOkgKh6/2Zrmm8ERHWAtrjg+u90Bzz+JTiDo RudA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=rkjUQYr5ex5SQKQ9UiwecQWpBtcGhROKrZKH9rEbeSo=; b=TwM+YLKHtT30ssdctSwM/oH/Vl+by+22iT13q82GvTI6Uf31ZUTNALZT7a+08elBlW vnOZ+aOTY8aYVqZY7Yo0QSEPD1KhrEhOEew5CP/WNsTa/5ZGY40wFYeS0LMIHqCrjbEV KO6HxEVLD4xdxQmaYD3dVPfHSXG/20LOBm8Wp2v3/NDeG68+sFYap5Cae2ZXuZdr0C6M R8wKBkkSsTHhKGydtCV6mDo57HaQUEVqgy2wFMumcRaIPlfqFeWbDhyej73epNd/g2DG s3fxBwjsmv12+EQtt4iOfwWcFwaqPtlJX4/wqoq4Iun2c8h4PDzKvTITPULfhPYxDKGm Aylg== X-Gm-Message-State: APf1xPCG/KKlYhjEt7uJa5MKssmQVuOdB4muD1qRWw9vGFyhIPvS8FM8 KdCrrqFdMGUSCA9zGX/lOQ0= X-Received: by 10.99.109.203 with SMTP id i194mr2583631pgc.4.1517709076564; Sat, 03 Feb 2018 17:51:16 -0800 (PST) Received: from pi.iht.com.au ([203.87.124.230]) by smtp.gmail.com with ESMTPSA id t8sm7135084pgn.93.2018.02.03.17.51.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Feb 2018 17:51:15 -0800 (PST) X-Google-Original-Sender: Received: from johan by pi.iht.com.au with local (Exim 4.89) (envelope-from ) id 1ei9Rq-0006CH-1z; Sun, 04 Feb 2018 12:50:26 +1100 Date: Sun, 4 Feb 2018 12:50:26 +1100 From: Johan Hovold To: "Ji-Ze Hong (Peter Hong)" Cc: Johan Hovold , gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH 5/5] USB: serial: f81232: fix bulk_in/out size Message-ID: <20180204015026.GC28684@localhost> References: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> <1516607927-8887-5-git-send-email-hpeter+linux_kernel@gmail.com> <20180130041150.GC3434@localhost> <840d55b0-9ce2-846d-9bf5-8d0e67b8739e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <840d55b0-9ce2-846d-9bf5-8d0e67b8739e@gmail.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 01, 2018 at 01:50:55PM +0800, Ji-Ze Hong (Peter Hong) wrote: > Hi Johan, > > Johan Hovold 於 2018/1/30 下午 12:11 寫道: > > On Mon, Jan 22, 2018 at 03:58:47PM +0800, Ji-Ze Hong (Peter Hong) wrote: > >> diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c > >> index a054f69446fd..f3ee537d643c 100644 > >> --- a/drivers/usb/serial/f81232.c > >> +++ b/drivers/usb/serial/f81232.c > >> @@ -769,8 +769,7 @@ static struct usb_serial_driver f81232_device = { > >> }, > >> .id_table = id_table, > >> .num_ports = 1, > >> - .bulk_in_size = 256, > >> - .bulk_out_size = 256, > >> + .bulk_out_size = 16, > > > > So it seems you should really be setting bulk_in_size to 64 here (and > > possibly leave bulk_out_size unset) as that would appear to match your > > device buffer sizes. > > Yes, we want to set the bulk_in_size as 64. The public datasheet has > some error with bulk in/out, the correct size is 64. > > We had test the bulk_out_size set the same with internal TX FIFO will > make the best performance in tests, but it's ok to set 64. In my opinion > , I'll prefer to set 16. Having larger URB buffers than the endpoint size is typically more efficient, but sometimes there are hardware issues that needs to be worked around. Johan