From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25629 invoked by alias); 16 Oct 2010 19:30:22 -0000 Received: (qmail 25619 invoked by uid 22791); 16 Oct 2010 19:30:22 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Oct 2010 19:30:20 +0000 Received: from localhost (hagrid.ecoscentric.com [127.0.0.1]) by mail.ecoscentric.com (Postfix) with ESMTP id 0E2B32F78001 for ; Sat, 16 Oct 2010 20:30:18 +0100 (BST) Received: from mail.ecoscentric.com ([127.0.0.1]) by localhost (hagrid.ecoscentric.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PmcalALaoauu; Sat, 16 Oct 2010 20:30:01 +0100 (BST) From: bugzilla-daemon@bugs.ecos.sourceware.org To: ecos-patches@ecos.sourceware.org Subject: [Bug 1001024] STM32 USB driver and proposed USB API change X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Patches and contributions X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: chris@zynaptic.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: john@dallaway.org.uk X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Attachment #994 is obsolete In-Reply-To: References: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Sat, 16 Oct 2010 19:30:00 -0000 Message-Id: <20101016193000.C6A1A2F78005@mail.ecoscentric.com> Mailing-List: contact ecos-patches-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-patches-owner@ecos.sourceware.org X-SW-Source: 2010-10/txt/msg00014.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001024 Chris Holgate changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #994 is|0 |1 obsolete| | --- Comment #22 from Chris Holgate 2010-10-16 20:29:58 BST --- Created an attachment (id=1000) --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1000) STM32 USB driver package fixing double buffering configuration bug. The bug which was causing alternate bulk transfer packets to fail was due to misconfiguration of the receive bulk transfer endpoint. My own class driver masked the bug because of the particular order in which it configured the endpoints. The updated USB driver package should fix this problem for the serial port class driver. A couple of points to note: 1) When using the serial port class driver, the variable length bulk transfer option must be deselected. This option may benefit from another descriptive name in order to avoid confusion. 2) To avoid buffer overflow conditions on large transfers, all calls to the serial port receive functions should specify a buffer which is a multiple of the bulk transfer message size for the bulk transfer endpoint (usually 64 bytes). -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.