login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
26
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:
Jeff Garzik <jeff@...>
To: Alan Cox <alan@...>
Cc: Peer Chen <peerchen@...>, linux-kernel <linux-kernel@...>, akpm <akpm@...>, linux-ide <linux-ide@...>
Subject:
Re: [PATCH] ahci: enable GHC.AE bit before set GHC.HR
Date: Wednesday, September 26, 2007 - 7:41 am
Alan Cox wrote:
quoted text
> On Wed, 26 Sep 2007 00:03:19 -0400 > Jeff Garzik <jeff@garzik.org> wrote: > >> 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 */ >> applied the attached patch, inspired by yours. > > > NAK - mmio is an iomap so writel and readl are the wrong things to use
The patch is consistent with the rest of the driver. You are welcome to submit a patch to convert ahci to using ioremap. Jeff -
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
:
Thomas Gleixner
Re: Linux 2.6.21-rc1
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
James Bottomley
[Ksummit-2008-discuss] Fixing the Kernel Janitors project
James Morris
Re: LSM conversion to static interface
git
:
linux-netdev
:
Natalie Protasevich
[BUG] New Kernel Bugs
Christoph Hellwig
Re: [PATCH 06/32] IGET: Mark iget() and read_inode() as being obsolete [try #2]
Linus Torvalds
Re: [GIT]: Networking
Jarek Poplawski
[PATCH take 2] pkt_sched: Protect gen estimators under est_lock.
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
476 guests
online.
Syndicate