Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758263AbYCaVlr (ORCPT ); Mon, 31 Mar 2008 17:41:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756812AbYCaVlk (ORCPT ); Mon, 31 Mar 2008 17:41:40 -0400 Received: from smtp-vbr15.xs4all.nl ([194.109.24.35]:4402 "EHLO smtp-vbr15.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756698AbYCaVlk (ORCPT ); Mon, 31 Mar 2008 17:41:40 -0400 To: Alan Cox Subject: Re: [PATCH 5/5] falconide/q40ide: add ->atapi_*put_bytes and ->ata_*put_data methods Cc: Geert Uytterhoeven , Bartlomiej Zolnierkiewicz , linux-ide@vger.kernel.org, Linux Kernel Development , Linux/m68k , Michael Schmitz Content-Disposition: inline From: Roman Zippel Date: Mon, 31 Mar 2008 22:41:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200803312341.08271.zippel@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 798 Lines: 21 Hi, On Monday 31. March 2008, Alan Cox wrote: > > Yes, the data on the disk is stored byte-swapped. > > So it's only the drive ID and packet commands that should be swapped. > > If you are storing the data on disk byte swapped then reverse the logic > in the driver so you don't need hacks for un-swapping commands and write > a bytesewap device mapper layer in the right place. Then you can even > move disks around. That would require an additional data copy and a double byteswap on machines which are not that fast in first place... bye, Roman -- 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/