From mboxrd@z Thu Jan 1 00:00:00 1970 From: Philippe Troin Subject: Re: iRiver H100 series and usb-storage issues Date: 07 Jun 2004 12:43:02 -0700 Sender: linux-scsi-owner@vger.kernel.org Message-ID: <87brjvw3w9.fsf@ceramic.fifi.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from tantale.fifi.org ([216.27.190.146]:15516 "EHLO tantale.fifi.org") by vger.kernel.org with ESMTP id S265015AbUFGTnK (ORCPT ); Mon, 7 Jun 2004 15:43:10 -0400 In-Reply-To: List-Id: linux-scsi@vger.kernel.org To: Alan Stern Cc: James Bottomley , USB Storage list , SCSI development list Alan Stern writes: > I just noticed this thread on linux-kernel: > > http://marc.theaimsgroup.com/?l=linux-kernel&m=108372064000188&w=2 > > Apparently under some circumstances the iRiver H100 returns 0 bytes > transferred with GOOD status and residue=512 for a READ(10) command > asking for 1 sector. As far as I know this is legal, and it indicates the > command should simply be retried. That's correct. However, the iRiver H1xx will also commit a USB protocol violation by not returning a CSW (Command Status Wrapper). That's what screws up the transfer. > But apparently the sd driver doesn't realize what has happened and assumes > the transfer was successful. If I'm right then the sd driver should be > fixed, but I'm not sure what is the best thing to do. I am not sure the SCSI layer can recover given that the USB layer is confused... Please note that: 1. I am just repeating what I have been told by various people and claim no knowledge of the USB or SCSI layers. In other words, I could be all wrong :-) 2. I do not own a H1xx anymore, having returned mine. Phil.