Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754165Ab0BVTYg (ORCPT ); Mon, 22 Feb 2010 14:24:36 -0500 Received: from saarni.dnainternet.net ([83.102.40.136]:55802 "EHLO saarni.dnainternet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153Ab0BVTYf (ORCPT ); Mon, 22 Feb 2010 14:24:35 -0500 X-Spam-Flag: NO X-Spam-Score: 0.032 From: Anssi Hannula To: Alan Stern Subject: Re: [REGRESSION] "USB: use kfifo to buffer usb-generic serial writes" causes gobi_loader to hang Date: Mon, 22 Feb 2010 21:24:27 +0200 User-Agent: KMail/1.13.0 (Linux/2.6.33-desktop-0.rc8.1mnb; KDE/4.4.0; x86_64; ; ) Cc: Oliver Neukum , Matthew Garrett , dvomlehn@cisco.com, gregkh@suse.de, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201002222124.27777.anssi.hannula@iki.fi> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1147 Lines: 27 On maanantai 22 helmikuu 2010 21:10:33 Alan Stern wrote: > On Mon, 22 Feb 2010, Anssi Hannula wrote: > > I guess that would suggest that the device doesn't allow the > > initialization data to be broken into packets arbitrarily (though some > > differences seem allowed, as the windows driver transmits them > > differently). > > > > Does this mean a tty interface is ill-suited for the microcode upload, > > and instead qcserial should use the kernel's generic microcode upload > > mechanism or the userspace should use libusb to do it? > > I don't know. Didn't the old successful code use a tty interface? Yes, but does the tty interface guarantee that the data of one write call is sent as one packet to the device? If I understood this correctly, it seems the changes have caused it to now concatenate short writes into one packet, which the device doesn't seem to like. -- Anssi Hannula -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/