Received: by 10.223.176.5 with SMTP id f5csp3806223wra; Mon, 29 Jan 2018 20:13:18 -0800 (PST) X-Google-Smtp-Source: AH8x226QdwC8vGvI8PYajcbSv2+MVqhe8j1t1j6tyC+zGSnLk8AqxN6nh65j3AekMjVl+/fvR/RW X-Received: by 2002:a17:902:e81:: with SMTP id 1-v6mr23429389plx.235.1517285598575; Mon, 29 Jan 2018 20:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517285598; cv=none; d=google.com; s=arc-20160816; b=OJvUoWYZ2DZ7iQtu4HPK0I9h8ULN9VHDWlRQDa29npz2HXLTDgJqnf0nq2mamc/EBE DvhkgE9FLyhH796pGtUFnKfS6iQLXNqtK5kWExtqaft5R9yyZ1g+i6PUjs02Xa5EF8yp ex3tU0yYnoSQAe7MqevYjNA+GbMCLxrV1SOJv+IHGG/pn/H870rGtCrH3nAsQAm2PK1e aNhlpmwrHXBbHlUjNt7MaYOT05AKassZY62hb47OroHqCRD4+RwFwBFs/fOzKP9GvD9Y Y8EEvMVjLekDDQs1T34LDRO7aHFgGDirBK623kgj1CSa9uHDYf622mahIlm1NnYNo6eI CLFg== 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:arc-authentication-results; bh=hmDKX8iZxGyfjLaQkdq07wGk7qQFieQFWH7J71t6F8I=; b=dRUSwN3f5RGh2ZO++JlzOc2+2bhAKT+goPxJiQGrjPuaD/hmTg169skfGg9P/RCrL6 VEfmje+UmZ8+/6+zQ1nWAeCYXum/87cNcthVaUa3ofiQj1OjUKBCsju1QWI59H74fk+J cF90GhS2FY+vSbdE6y+ILYH2qPAfxHYMhgaeUzARGrPbO6oSCPxlZpwcYu+GqBGOhhZq 5UL7lTQEv6v7ELRZOMccXszzb70DrL9uDuH1jqVlIb6qqmXnlZQi43jjGAXtRRvTees1 cJKPie+/mePjwNmvojvB6bcClSqz05X7UsSnn+nGop/joQir0UWyqv64JLO9b0rZhKlC MMnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=DV+3MHal; 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 s8-v6si10609377plp.33.2018.01.29.20.13.03; Mon, 29 Jan 2018 20:13:18 -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=DV+3MHal; 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 S1752549AbeA3EMk (ORCPT + 99 others); Mon, 29 Jan 2018 23:12:40 -0500 Received: from mail-pf0-f181.google.com ([209.85.192.181]:40375 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752076AbeA3EMi (ORCPT ); Mon, 29 Jan 2018 23:12:38 -0500 Received: by mail-pf0-f181.google.com with SMTP id i66so7553457pfd.7; Mon, 29 Jan 2018 20:12:38 -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:in-reply-to:user-agent; bh=hmDKX8iZxGyfjLaQkdq07wGk7qQFieQFWH7J71t6F8I=; b=DV+3MHalUQvqLjXpOTTGNTf3dEv33/F+8Lz1AuLJUC4YrMcM1GotrPmeFC37yKr+8L q7Vd9zTzarnrj7jBVzIn75zer7VbZjHm10TVZRuJZIBAYJG1Z3lxCK6Maplt0cYZkoQX zO5KAdctQEFI8FGjTi8f1KOx0dVew01hwIT+6svW91Re77wedS6fEOpAS7auTp8NnJNM I+nzsPWX92bQhbIx4lHIV6oppqEy7MxsjZkKbjZ5D/7i6Q5nA9Y+B5iGZdnBo1cuwDAh 2Bq5efydz2YjUTAfBQp9n9xKkpP3tusd6yKnm/uMl5gBTJe4ieIqpLZHablaJRY9pd/F 2Eqg== 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=hmDKX8iZxGyfjLaQkdq07wGk7qQFieQFWH7J71t6F8I=; b=R2kpsnnXtgqqEF6GvBHyN35WRYO6i+DUDVAVn8gOGINTotyHkXZHL1cCAPjdY9DHFb kgJhbR29e3NQl4Oybg+skljzez8l6RymR/NS2VK81GQmBnqpriS6PYN+1ux2FsdsM2FA XFl/ol+8/LPeweR0YZJ2WN1xor1BO3w3tx8UfJn+Mqv1EuDl0i4IjLxTzqANhgE1DHdP 6TYr5Q/gG1NcrVe43kDdS9Q8LPysnOZQ5gD0CUv6dAL2jTZi7Rds0Q7vDzLQfLNtvA6n /z2owyQ6YOsoSuuZ4k4qfvgSUSB61gNYGHQ1H36eketGddi5B0H6/RooG1ZNZKC49t8v 65fQ== X-Gm-Message-State: AKwxytekAiYF8ObZNEcvBw1NOAgM+OJ5IrtVJ992dBt9dNzz4/3q8/Ls 9nKpkL4+UAr7byXiHMx/lp8= X-Received: by 10.101.98.193 with SMTP id m1mr18482986pgv.174.1517285558245; Mon, 29 Jan 2018 20:12:38 -0800 (PST) Received: from pi.iht.com.au ([203.87.124.230]) by smtp.gmail.com with ESMTPSA id u26sm36399204pfk.126.2018.01.29.20.12.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 20:12:37 -0800 (PST) X-Google-Original-Sender: Received: from johan by pi.iht.com.au with local (Exim 4.89) (envelope-from ) id 1egNGw-00016c-60; Tue, 30 Jan 2018 15:11:50 +1100 Date: Tue, 30 Jan 2018 15:11:50 +1100 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, "Ji-Ze Hong (Peter Hong)" Subject: Re: [PATCH 5/5] USB: serial: f81232: fix bulk_in/out size Message-ID: <20180130041150.GC3434@localhost> References: <1516607927-8887-1-git-send-email-hpeter+linux_kernel@gmail.com> <1516607927-8887-5-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: <1516607927-8887-5-git-send-email-hpeter+linux_kernel@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 Mon, Jan 22, 2018 at 03:58:47PM +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 > > 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 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, These fields control the URB buffer sizes and defaults to the corresponding endpoint max-packet size, which would be 16 for all endpoints according to the datasheet above. 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. Johan