From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753151AbZASSgR (ORCPT ); Mon, 19 Jan 2009 13:36:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752185AbZASSfz (ORCPT ); Mon, 19 Jan 2009 13:35:55 -0500 Received: from earthlight.etchedpixels.co.uk ([81.2.110.250]:60930 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752036AbZASSfy (ORCPT ); Mon, 19 Jan 2009 13:35:54 -0500 Date: Mon, 19 Jan 2009 18:36:07 +0000 From: Alan Cox To: Sergei Shtylyov Cc: Bartlomiej Zolnierkiewicz , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/6] ide: move SFF I/O code to ide-io-sff.c Message-ID: <20090119183607.5ee804e1@lxorguk.ukuu.org.uk> In-Reply-To: <4974C030.5020509@ru.mvista.com> References: <20090119130309.24745.40877.sendpatchset@localhost.localdomain> <20090119130322.24745.76137.sendpatchset@localhost.localdomain> <49748B95.9080105@ru.mvista.com> <200901191523.15240.bzolnier@gmail.com> <49748E43.4030009@ru.mvista.com> <20090119173701.13fd24c6@lxorguk.ukuu.org.uk> <4974C030.5020509@ru.mvista.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.12; x86_64-redhat-linux-gnu) Organization: Red Hat UK Cyf., Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, Y Deyrnas Gyfunol. Cofrestrwyd yng Nghymru a Lloegr o'r rhif cofrestru 3798903 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > BTW if you moved to ioreadX you could get rid of almost all the readb/inb > > special casing. > > And burden the driver code with function calls ISO in/out instructions, at > least on x86. It's somewhat arguable move. And exactly how do you think the IDE accessors in the file get called ? It's already making function calls, without the benefit of inlining and sharing common paths across architectures that can handle more than just PIO v MMIO but also other addressing modes.