From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH 01/11] ahci: Get rid of host->iomap usage Date: Wed, 03 Mar 2010 13:49:10 -0500 Message-ID: <4B8EAF26.6030609@garzik.org> References: <20100303171713.GA6322@oksana.dev.rtsoft.ru> <20100303171734.GA12362@oksana.dev.rtsoft.ru> <4B8EAE50.2090800@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from qw-out-2122.google.com ([74.125.92.25]:16826 "EHLO qw-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989Ab0CCStQ (ORCPT ); Wed, 3 Mar 2010 13:49:16 -0500 In-Reply-To: <4B8EAE50.2090800@pobox.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Anton Vorontsov Cc: Sergei Shtylyov , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org On 03/03/2010 01:45 PM, Jeff Garzik wrote: > On 03/03/2010 12:17 PM, Anton Vorontsov wrote: >> Currently the driver uses host->iomap to store all the iomapped BARs >> of a PCI device (while AHCI devices actually use just a single memory >> window). >> >> We're going to teach AHCI to work with non-PCI buses, so there are two >> options to make this work: >> >> 1. "fake" host->iomap array for non-PCI devices, and place the needed >> address at iomap[AHCI_PCI_BAR]; >> 2. Get rid of host->iomap usage, instead introduce a private mmio >> field. >> >> This patch implements the second option. >> >> Signed-off-by: Anton Vorontsov >> --- >> drivers/ata/ahci.c | 34 ++++++++++++++++++++-------------- >> 1 files changed, 20 insertions(+), 14 deletions(-) > > Does platform code not contain any devres support? > > At a minimum, you should be using devm_ioremap(), yes? Nevermind, I see this now in the platform driver.