From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Date: Wed, 21 Apr 2010 14:15:12 +0000 Subject: Re: System hangs when using USB 3.0 HD with on Ubuntu Message-Id: <1271859312.2893.60.camel@mulgrave.site> List-Id: References: <593030.61801.qm@web31804.mail.mud.yahoo.com> <4BCF0310.4000906@pobox.com> <1271858694.2893.47.camel@mulgrave.site> <4BCF06E5.1080302@pobox.com> In-Reply-To: <4BCF06E5.1080302@pobox.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Mark Lord Cc: ltuikov@yahoo.com, Alan Stern , Sarah Sharp , Jonas Schwertfeger , Dinh.Nguyen@freescale.com, Sergei Shtylyov , Kay Sievers , David Zeuthen , linux-hotplug@vger.kernel.org, linux-usb@vger.kernel.org, USB Storage List , Matthew Dharm , linux-scsi@vger.kernel.org, Lennart Poettering , Douglas Gilbert On Wed, 2010-04-21 at 10:08 -0400, Mark Lord wrote: > On 21/04/10 10:04 AM, James Bottomley wrote: > > > > But this isn't a userspace problem. By the time we present the device > > to userspace, we already know what it is ... so you can go by device > > type and only use ATA_12 for disk devices. > .. > > Did you instead mean to say "use ATA_12 for non-disk devices" ? No ... ATA_12 is opcode 0xa1 which is BLANK to MMC devices, hence we should only use it for non-mmc devices. However, the point I was making is that actually only disk devices should use ATA. ATAPI is really SCSI encapsulation over ATA, so it doesn't really make sense to send ATA over SCSI encapsulation to ATAPI devices, we should just send plain SCSI (crosses fingers and hopes MMC devices never do smart). James