From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751948Ab0CCStS (ORCPT ); Wed, 3 Mar 2010 13:49:18 -0500 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 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=VKMnNEz6kCYwPU+tUbFN9FAY1iEOry4M8s0Uzx86qjMtlEcsLIpiMOPtwPCWQnFLzQ WUvxmwMno4D9IeH5dSuMgdgVIHce9ytYh1WVJMlKPux7p08SukGv6bCfMh/hFcAMwSCu O39ts21I++AOXc2RLF6B4Pa+B0+s91XvpuW+Q= Message-ID: <4B8EAF26.6030609@garzik.org> Date: Wed, 03 Mar 2010 13:49:10 -0500 From: Jeff Garzik User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc11 Thunderbird/3.0.1 MIME-Version: 1.0 To: Anton Vorontsov CC: Sergei Shtylyov , linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] ahci: Get rid of host->iomap usage References: <20100303171713.GA6322@oksana.dev.rtsoft.ru> <20100303171734.GA12362@oksana.dev.rtsoft.ru> <4B8EAE50.2090800@pobox.com> In-Reply-To: <4B8EAE50.2090800@pobox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: 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.