From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Garzik Subject: Re: [PATCH 1/2] sata_mv: use hpriv->base instead of the host->iomap Date: Wed, 20 Feb 2008 12:09:52 -0500 Message-ID: <47BC5EE0.1030303@garzik.org> References: <12029369502995-git-send-email-saeed@marvell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from srv5.dvmed.net ([207.36.208.214]:56926 "EHLO mail.dvmed.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932701AbYBTRJ6 (ORCPT ); Wed, 20 Feb 2008 12:09:58 -0500 In-Reply-To: <12029369502995-git-send-email-saeed@marvell.com> Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Saeed Bishara Cc: mlord@pobox.com, htejun@gmail.com, linux-ide@vger.kernel.org, saeed.bishara@gmail.com, nico@cam.org, byron.bbradley@gmail.com Saeed Bishara wrote: > this fixes crash bug as the iomap table is not valid for integrated controllers. > > Signed-off-by: Saeed Bishara > --- > drivers/ata/sata_mv.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c > index 04b5717..9c9a5b0 100644 > --- a/drivers/ata/sata_mv.c > +++ b/drivers/ata/sata_mv.c > @@ -870,7 +870,7 @@ static void mv_start_dma(struct ata_port *ap, void __iomem *port_mmio, > struct mv_host_priv *hpriv = ap->host->private_data; > int hard_port = mv_hardport_from_port(ap->port_no); > void __iomem *hc_mmio = mv_hc_base_from_port( > - ap->host->iomap[MV_PRIMARY_BAR], hard_port); > + mv_host_base(ap->host), hard_port); > u32 hc_irq_cause, ipending; applied