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:
Jens Axboe <jens.axboe@...>
To: Peer Chen <peerchen@...>
Cc: 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 - 6:31 am
On Fri, Sep 21 2007, Peer Chen wrote:
quoted text
> 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. -- Jens Axboe -
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
:
Ingo Molnar
[bug] block subsystem related crash with latest -git
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg KH
[GIT PATCH] driver core patches against 2.6.24
Adrian Bunk
Re: net/ipv4/fib_trie.c - compile error (Re: 2.6.23-rc3-mm1)
git
:
linux-netdev
:
Gerrit Renker
[PATCH 03/37] dccp: List management for new feature negotiation
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
10 users
and
795 guests
online.
Online users
Yerka85
cordic
adenchamberlin
zeekec
electriccigare
seocompanyztjd
outdoormensmoc
jaymekollarwz
prostatehealqyv
longshowercurt
Syndicate