login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
21
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Alan Cox <alan@...>
To: Jens Axboe <jens.axboe@...>
Cc: Peer Chen <peerchen@...>, linux-kernel <linux-kernel@...>, jeff <jeff@...>, akpm <akpm@...>, linux-ide <linux-ide@...>
Subject:
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
Date: Friday, September 21, 2007 - 7:27 am
On Fri, 21 Sep 2007 12:31:20 +0200 Jens Axboe <jens.axboe@oracle.com> wrote:
quoted text
> On Fri, Sep 21 2007, Peer Chen wrote: > > According to the description of section 5.2.2.1 and 10.1.2 of AHCI specification rev1_1/rev1_2, GHC.HR shall only be set to ¡®1¡¯ > > by software when GHC.AE is set to ¡®1¡¯. > > > > Signed-off-by: Peer Chen <peerchen@gmail.com> > > --- > > --- linux-2.6.23-rc7/drivers/ata/ahci.c.orig 2007-09-20 11:01:55.000000000 -0400 > > +++ linux-2.6.23-rc7/drivers/ata/ahci.c 2007-09-20 11:07:31.000000000 -0400 > > @@ -834,6 +834,10 @@ static int ahci_reset_controller(struct > > void __iomem *mmio = host->iomap[AHCI_PCI_BAR]; > > u32 tmp; > > > > + /* turn on AHCI mode before controller reset*/ > > + writel(HOST_AHCI_EN, mmio + HOST_CTL); > > + (void) readl(mmio + HOST_CTL); /* flush */ > > + > > /* global controller reset */ > > tmp = readl(mmio + HOST_CTL); > > if ((tmp & HOST_RESET) == 0) { > > I appreciate the readl() flushes, but in this particular case we end up > reading the exact offset again below.
The code above is wrong btw - it is an iomap so both the new and existing code should be using ioread* not readl Alan -
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Peer Chen
, (Fri Sep 21, 1:28 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jeff Garzik
, (Wed Sep 26, 12:03 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Alan Cox
, (Wed Sep 26, 7:23 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jeff Garzik
, (Wed Sep 26, 7:41 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Alan Cox
, (Wed Sep 26, 10:30 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jeff Garzik
, (Wed Sep 26, 10:33 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Alan Cox
, (Wed Sep 26, 12:10 pm)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jeff Garzik
, (Wed Sep 26, 12:20 pm)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jens Axboe
, (Fri Sep 21, 6:31 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Alan Cox
, (Fri Sep 21, 7:27 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Jens Axboe
, (Fri Sep 21, 7:34 am)
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
, Andrew Morton
, (Fri Sep 21, 6:29 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Benjamin Herrenschmidt
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Mariusz Kozlowski
[PATCH 03] drivers/sbus/char/bbc_envctrl.c: kmalloc + memset conversion to kzalloc
Yinghai Lu
[PATCH 02/16] x86: introduce nr_irqs for 64bit v3
git
:
linux-netdev
:
Gerrit Renker
[PATCH 13/37] dccp: Deprecate Ack Ratio sysctl
James Morris
Re: [GIT]: Networking
Jeff Garzik
Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin"
git-commits-head
:
Colocation donated by:
Who's online
There are currently
1 user
and
894 guests
online.
Online users
strcmp
Syndicate