From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754836AbYDISJY (ORCPT ); Wed, 9 Apr 2008 14:09:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755937AbYDISJK (ORCPT ); Wed, 9 Apr 2008 14:09:10 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:22997 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753266AbYDISJI (ORCPT ); Wed, 9 Apr 2008 14:09:08 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent:sender; b=pk9QScG79PmINMHZ8ilMxA/F1uKsDn87KbAlcgswt2bz7o38vuoIz+OpFmY/qJ1c2T58jm3eVpzfdeGOJB7WjvUAmjUyQBvBa1HdZx3UVVpmAPbZR6LzBhSNUwer0YUdyofDwEmRPWTLah0TDWF0CHorj7vUqPMIT/yHvGsdltg= Date: Wed, 9 Apr 2008 20:13:14 +0200 From: Richard Zidlicky To: Michael Schmitz Cc: Bartlomiej Zolnierkiewicz , Geert Uytterhoeven , linux-ide@vger.kernel.org, Linux Kernel Development , Linux/m68k , Michael Schmitz Subject: Re: [PATCH 5/5] falconide/q40ide: add ->atapi_*put_bytes and ->ata_*put_data methods Message-ID: <20080409181314.GA999@linux-m68k.org> References: <200803301714.04527.bzolnier@gmail.com> <200803302134.42569.bzolnier@gmail.com> <200804072113.42441.bzolnier@gmail.com> <20080408094029.GA1005@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-06) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 09, 2008 at 03:40:34AM +0200, Michael Schmitz wrote: > > However, not only FS data is byteswapped, complete disk including partition > > table and everything else is. Will "rq->cmd_type == REQ_TYPE_FS" also catch > > all these cases? > > IIRC only identify data (and perhaps ATAPI data) need to be byteswapped > twice (or not at all), so REQ_TYPE_FS should catch all other cases. my main worry is whether REQ_TYPE_FS is set even when using raw disk access, eg reading partition table or raw partitions. The partition table initialisation is one of the reasons why using dmapper would be a major pain btw. > (Good catch about ATAPI there, BTW - I never thought about that, and ISTR > that IDE CD-ROMs never worked in Linux. That would be the reason why..) IDE CDROM works perfectly on the Q40? Richard