Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3904007imm; Wed, 5 Sep 2018 07:47:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYFzgP6c3lqnNRixBgXFb8wdIn8QOziSvb5wmRm4h09Xhv1e7tDnY6r+ZjfBOGyn3QOPzRA X-Received: by 2002:a65:6654:: with SMTP id z20-v6mr31989469pgv.186.1536158872682; Wed, 05 Sep 2018 07:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536158872; cv=none; d=google.com; s=arc-20160816; b=f6gcAUZkXjFCZR7uGIYgfVZYl8K6P69vuYdBv5IxJAiT588YjjUBEOLxRpwfe6ndiF LuhBwqUd19PK0i0ISSV9sERt5iv+BpuKyY3wsah7oGavtGUMOCgdquWTQi+0nfDbC2Xb ZoUJ4tREjXpYS9u4/+5zfzvJWrARm5h8GffqZtq2bFqXAFrKw1genU9brK15i3jUEogL 7LtQLnbmKK5ia6kuSU2t8Qe24QXTVPdpJ83Prb4FVINkcZpfGZzRa7r9CTdV/cV0Yi07 DF82opQOgdyPMw6fHH/CiLfoGMed7AcErVsvkvOSbbjztNA6a4vATmiwTpwhI1AJOW/X 4rMw== 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=3sNEmK4usobyWhWY4E+ODRFZIkmI5F5V5ExPiLxOrgQ=; b=RzeTh97cCje03IbjNi1IoFLTi28t2g7UZdRE1sI5soO7Xtip4WLDL8mJnuHHAVs18L D98P9wylmdKrZ5B6Tm6nMWoOr8gf7Z9EKq+ILad+j0QHnr2LzW+6drUXXfXsB8YWwWli ay+ZbPMWEAZTcUNZfbKiFvGtAvAL94VqJMu/0xq7LG1V9mVT8f7gdxmpTkW5WgYThh6B JrGwJIcoiwSQWZJKM5rPdjnyt2moE8cdxuD+Fm28961fO4F2AXvxVLGa0NHNPpUv3twa SdxeVMza3yE3wwAm13gduH3sAG2LZGn3LGJfWkFlGx39EvysJq+x/RVrFvRJj5eAlDI0 eBAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="P6/UwqAO"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg2-v6si1977628plb.243.2018.09.05.07.47.36; Wed, 05 Sep 2018 07:47:52 -0700 (PDT) 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="P6/UwqAO"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727598AbeIETQv (ORCPT + 99 others); Wed, 5 Sep 2018 15:16:51 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38776 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726366AbeIETQu (ORCPT ); Wed, 5 Sep 2018 15:16:50 -0400 Received: by mail-lj1-f194.google.com with SMTP id p6-v6so6491445ljc.5; Wed, 05 Sep 2018 07:46:18 -0700 (PDT) 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:in-reply-to:user-agent; bh=3sNEmK4usobyWhWY4E+ODRFZIkmI5F5V5ExPiLxOrgQ=; b=P6/UwqAO56FknOkIqqw4clYGJZyI+DN9mlKyMnVv/hbDEIsBfkrpr/2Tp72lCGH7Dc Z34ciVhjcqHyFfsx1oftrV4qtK99lq7VEmMB6nvOuEi/enpws8XWR4T/7dC/3nRBGHNj 1cwFLyULXz4/4fy84GAmG3U3TRl72tCbRZZacOw2CSWG5S03qZ+/mdmDKAA9NbKyiiVQ ClzVmpfSuXKL/ZWq3XxWxBOdtkK1m8RmjkCeREunuaf/qbCkJjFsO7YEBXRM+xnzm2ox wR2q2ygq+2p2XxL1Up+l0hjfYr6t1CMWqTzeiW+PMvvH/ZD64OsuIThOvcdwTYsBdDTx rLCg== 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:in-reply-to:user-agent; bh=3sNEmK4usobyWhWY4E+ODRFZIkmI5F5V5ExPiLxOrgQ=; b=WC6wyH1Sr8g7Vyj8JOkZHP26ciA9kluDJPyl/cciZsgpnITGo7N7/4wwXXQTd31ysw UR/pHOppDzgkrVTIRDjjtewornbdyf5ETXZIGV2dZl2+ejDkGOJnjA+jQpqrL/XJ6lYu qEHA5ktl63ESYNMv59KafnylIPCJ7B8UzFVEGBWDeX1LbB6QeU0mxDfFB4qi+5dK3p8Y r58qwIPohSGC4pAEa35xKDE64leB7XK/K3uWosVztnC3g76S00+XnwgqIVcFMV1Hsy2s C1UTbuUaghscC8pfuDEZ/rNnVh723fcnhCIfGaK7ob4Wmry5bGSCdbXRmbkDDZ7ntMcv Htzg== X-Gm-Message-State: APzg51CQYqb6ZrLVI8/M3rctGzN+2Q0GUNWPrhs1/Vm/YZikqUvze/Hy yrHS/6AhqLtNerx1v2zIi/0= X-Received: by 2002:a2e:93c4:: with SMTP id p4-v6mr23354569ljh.150.1536158778187; Wed, 05 Sep 2018 07:46:18 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id n17-v6sm349990ljb.82.2018.09.05.07.46.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 07:46:17 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1fxZ4e-0004ft-Ra; Wed, 05 Sep 2018 16:46:28 +0200 Date: Wed, 5 Sep 2018 16:46:28 +0200 From: Johan Hovold To: "Ji-Ze Hong (Peter Hong)" Cc: johan@kernel.org, gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, peter_hong@fintek.com.tw, hpeter+linux_kernel@gmail.com Subject: Re: [PATCH V2 4/4] USB: serial: f81232: fix bulk_in/out size Message-ID: <20180905144628.GE1089@localhost> References: <1535593634-22004-1-git-send-email-hpeter+linux_kernel@gmail.com> <1535593634-22004-6-git-send-email-hpeter+linux_kernel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1535593634-22004-6-git-send-email-hpeter+linux_kernel@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 30, 2018 at 09:47:14AM +0800, Ji-Ze Hong (Peter Hong) wrote: > Fix Fintek F81232 bulk_in/out size to 64/16 according to the spec. > http://html.alldatasheet.com/html-pdf/406315/FINTEK/F81232/1762/8/F81232.html I know we've discussed this before, but please explain here in the commit message why you want to do this. The bulk_in/out_size fields only set the buffer sizes used by the driver and using buffers larger than the endpoint size is typically only more efficient even if there may be hardware reasons for not wanting to use that. You said last time, you datasheets were incorrect and that the devices were in fact using 64 b endpoints, right? > Signed-off-by: Ji-Ze Hong (Peter Hong) > --- > drivers/usb/serial/f81232.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/usb/serial/f81232.c b/drivers/usb/serial/f81232.c > index 863430d7535f..e3ab1646a693 100644 > --- a/drivers/usb/serial/f81232.c > +++ b/drivers/usb/serial/f81232.c > @@ -785,8 +785,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, > .open = f81232_open, > .close = f81232_close, > .dtr_rts = f81232_dtr_rts, Johan